Module: Ccd::USRealmPatientNamePTNUSFIELDEDTemplate

Included in:
USRealmPatientNamePTNUSFIELDED
Defined in:
lib/ccd/templates/us_realm_patient_name_ptnusfielded_template.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/ccd/templates/us_realm_patient_name_ptnusfielded_template.rb', line 2

def self.included(base)
  base.class_eval do
    extend ::Ccd::Dsl
    
    # SHALL contain exactly one [1..1] family (CONF:7159).
    constraint 'family', {:cardinality=>"1..1"}
    
    # SHALL contain at least one [1..*] given (CONF:7157).
    constraint 'given', {:cardinality=>"1..*"}
  end
end