2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/ccd/templates/continuity_of_care_document_ccd_template.rb', line 2
def self.included(base)
base.class_eval do
extend ::Ccd::Dsl
constraint 'template_id', {:cardinality=>"1..1"}
constraint 'template_id.root', {:cardinality=>"1..1", :value=>"2.16.840.1.113883.10.20.22.1.2"}
constraint 'code', {:cardinality=>"1..1", :value=>{:code=>"34133-9", :display_name=>"Summarization of Episode Note", :code_system=>"2.16.840.1.113883.6.1"}}
constraint 'author', {:cardinality=>"1..*"}
constraint 'author.assigned_author', {:cardinality=>"1..1"}
constraint 'documentation_of', {:cardinality=>"1..1"}
constraint 'documentation_of.service_event', {:cardinality=>"1..1"}
constraint 'documentation_of.service_event.class_code', {:cardinality=>"1..1", :value=>"PCPR"}
constraint 'documentation_of.service_event.effective_time', {:cardinality=>"1..1"}
constraint 'documentation_of.service_event.effective_time.low', {:cardinality=>"1..1"}
constraint 'documentation_of.service_event.effective_time.high', {:cardinality=>"1..1"}
end
end
|