health-data-standards 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,11 @@
14
14
  <low <%= value_or_null_flavor(entry.admit_time || entry.start_time) %>/>
15
15
  <high <%= value_or_null_flavor(entry.discharge_time || entry.end_time) %>/>
16
16
  </effectiveTime>
17
+ <% if entry.discharge_disposition.present? -%>
18
+ <sdtc:dischargeDispositionCode code="<%= entry.discharge_disposition['code'] %>"
19
+ codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.discharge_disposition['codeSystem'] || entry.discharge_disposition['code_system']) %>"/>
20
+ <% end -%>
21
+
17
22
  <% if entry.respond_to?(:facility) && entry.facility.present? -%>
18
23
  <participant typeCode="LOC">
19
24
  <!-- Facility Location template -->
@@ -47,10 +52,7 @@
47
52
  </participantRole>
48
53
  </participant>
49
54
  <% end -%>
50
- <% if entry.discharge_disposition.present? -%>
51
- <sdtc:dischargeDispositionCode code="<%= entry.discharge_disposition['code'] %>"
52
- codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.discharge_disposition['codeSystem'] || entry.discharge_disposition['code_system']) %>"/>
53
- <% end -%>
55
+
54
56
  <% if entry.reason.present? -%>
55
57
  <entryRelationship typeCode="RSON">
56
58
  <observation classCode="OBS" moodCode="EVN">
@@ -7,14 +7,15 @@
7
7
  <id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
8
8
  <%== code_display(entry, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
9
9
  <statusCode code="completed"/>
10
+ <effectiveTime>
11
+ <low <%= value_or_null_flavor(entry.start_time) %>/>
12
+ </effectiveTime>
10
13
  <author>
11
14
  <time <%= value_or_null_flavor(entry.as_point_in_time) %>/>
12
15
  <assignedAuthor>
13
16
  <id root="<%= UUID.generate %>"/>
14
17
  </assignedAuthor>
15
18
  </author>
16
- <effectiveTime>
17
- <low <%= value_or_null_flavor(entry.start_time) %>/>
18
- </effectiveTime>
19
+
19
20
  </act>
20
21
  </entry>
@@ -22,7 +22,6 @@
22
22
  <participantRole classCode="MANU">
23
23
  <playingEntity classCode="MMAT">
24
24
  <%== code_display(entry, 'preferred_code_sets' => ['RxNorm', 'SNOMED-CT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
25
- <text><%= entry.description %></text>
26
25
  </playingEntity>
27
26
  </participantRole>
28
27
  </participant>
@@ -16,7 +16,7 @@
16
16
 
17
17
  <% if entry.respond_to?(:anatomical_structure) && entry.anatomical_structure.present? -%>
18
18
  <targetSiteCode code="<%= entry.anatomical_structure['code'] %>"
19
- codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.anatomical_structure['codeSystem']) %>"/>
19
+ codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.anatomical_structure['code_system']) %>"/>
20
20
  <% end -%>
21
21
  <participant typeCode="DEV">
22
22
  <participantRole classCode="MANU">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-data-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: