generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ORU_R01-base.yml
42 lines (37 loc) · 1.36 KB
/
ORU_R01-base.yml
1
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
40
41
42
hl7Type: ORU_R01
hl7Version: 2.5.1
constants:
# Prefix for RS custom extension URLs
rsext: '"https://reportstream.cdc.gov/fhir/StructureDefinition/"'
elements:
- name: message-headers
condition: >
Bundle.entry.resource.ofType(MessageHeader).exists() and
Bundle.entry.resource.ofType(Provenance).exists() and
Bundle.entry.resource.ofType(Provenance).activity.coding.code = 'R01'
resource: 'Bundle.entry.resource.ofType(MessageHeader)'
required: true
schema: base/message-header
- name: software-segment
condition: 'Bundle.entry.resource.ofType(MessageHeader).exists()'
resource: 'Bundle.entry.resource.ofType(MessageHeader)'
schema: base/software
- name: patient-information
resource: 'Bundle.entry.resource.ofType(Patient)'
condition: '%resource.count() = 1'
required: true
schema: base/patient
- name: patient-contact
resource: 'Bundle.entry.resource.ofType(Patient).contact'
condition: '%resource.exists()'
schema: base/patient-contact
- name: patient-visit
resource: 'Bundle.entry.resource.ofType(Encounter)'
condition: '%resource.count() = 1'
schema: base/patient-visit
- name: order-observations
resource: 'Bundle.entry.resource.ofType(DiagnosticReport)'
condition: '%resource.count() > 0'
required: true
schema: base/order-observation
resourceIndex: orderIndex