-
Notifications
You must be signed in to change notification settings - Fork 1
/
Instance-Example-Patient.xml
156 lines (156 loc) · 4.85 KB
/
Instance-Example-Patient.xml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<Patient xmlns="http://hl7.org/fhir">
<meta>
<profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
</meta>
<!-- Simple extension. -->
<extension url="http://example.com/fhir/StructureDefinition/patient-do-not-call">
<valueBoolean value="false"/>
</extension>
<!-- Simple extension extended with a second simple extension -->
<extension url="http://example.com/fhir/StructureDefinition/patient-legal-case">
<valueBoolean value="false">
<extension url="http://example.com/fhir/StructureDefinition/patient-legal-case-lead-counsel">
<valueReference>
<display value="J. R. Example, ESQ." />
</valueReference>
</extension>
</valueBoolean>
</extension>
<!-- Extension with a codeable concept and alternate codings. -->
<extension url="http://hl7.org/fhir/StructureDefinition/us-core-religion">
<valueCodeableConcept>
<coding>
<system value="http://example.com/fhir/localsystems/religion"/>
<code value="CAT"/>
<display value="CATHOLIC:ROMAN CATHOLIC"/>
<userSelected value="true"/>
</coding>
<coding>
<system value="http://hl7.org/fhir/v3/ReligiousAffiliation"/>
<code value="1041"/>
<display value="Roman Catholic Church"/>
</coding>
</valueCodeableConcept>
</extension>
<!-- Complex extension. Also demonstrate re-slicing by fixed element. -->
<extension url="http://example.com/fhir/StructureDefinition/patient-research-authorization">
<extension url="type">
<valueCode value="Minnesota"/>
</extension>
<extension url="flag">
<valueBoolean value="true"/>
</extension>
<extension url="date">
<valueDate value="2013-01-31"/>
</extension>
</extension>
<extension url="http://example.com/fhir/StructureDefinition/patient-research-authorization">
<extension url="type">
<valueCode value="LocalSite"/>
</extension>
<extension url="flag">
<valueBoolean value="true"/>
</extension>
<extension url="date">
<valueDate value="2013-01-31"/>
</extension>
</extension>
<extension url="http://example.com/fhir/StructureDefinition/patient-research-authorization">
<extension url="type">
<valueCode value="Grandfathered"/>
</extension>
<extension url="flag">
<valueBoolean value="false"/>
</extension>
<!-- Complex extension of a complex extension. In a re-slice. -->
<extension url="http://example.com/fhir/StructureDefinition/algorithm">
<extension url="name">
<valueString value="MN ResAuth Grandfather Rule"/>
</extension>
<extension url="version">
<valueString value="2000-v1"/>
</extension>
</extension>
</extension>
<!-- Sliced by Identifier profile (@profile discriminator for non-reference). -->
<identifier>
<use value="official"/>
<system value="http://example.com/fhir/localsystems/PATIENT-ID-MDM"/>
<value value="09876543"/>
</identifier>
<identifier>
<!-- Extension to one slice. -->
<extension url="http://example.com/fhir/StructureDefinition/patient-identifier-issuing-site">
<valueCodeableConcept>
<coding>
<system value="http://example.com/fhir/localsystems/patient-id-site"/>
<code value="SITEA"/>
</coding>
</valueCodeableConcept>
</extension>
<use value="usual"/>
<system value="http://example.com/fhir/localsystems/PATIENT-ID-MRN"/>
<value value="13579-24680"/>
</identifier>
<!-- Single defined discriminator. Different allowed elements by slice. -->
<name>
<use value="official"/>
<text value="Testing, Mrs. Annette M.D."/>
<family value="Testing"/>
<given value="Annette"/>
<prefix value="Mrs."/>
<suffix value="M.D."/>
</name>
<name>
<use value="maiden"/>
<family value="Doe"/>
</name>
<!-- Slice by 2 fixed value discriminators. Or, slice/reslice first by system and then use. -->
<telecom>
<system value="phone"/>
<value value="(404)999-8888"/>
<use value="home"/>
</telecom>
<telecom>
<system value="phone"/>
<value value="(404)123-4445"/>
<use value="mobile"/>
</telecom>
<telecom>
<system value="email"/>
<value value="[email protected]"/>
<use value="home"/>
</telecom>
<telecom>
<system value="email"/>
<value value="[email protected]"/>
<use value="work"/>
</telecom>
<telecom>
<system value="pager"/>
<value value="(404)345-9876"/>
</telecom>
<gender value="female"/>
<!-- value[x] slicing. @type or valueType? -->
<deceasedDate value="2015-12-26"/>
<!-- bcp 47 validation (sub-tags). -->
<communication>
<language>
<coding>
<system value="urn:ietf:bcp:47" />
<code value="en-US"/>
<display value="English (United States)"/>
</coding>
</language>
</communication>
<!-- @type slicing on a reference. Re-slice org by @profile. -->
<careProvider>
<reference value="Practitioner/test-prac-1" />
</careProvider>
<careProvider>
<reference value="Organization/test-org-1" />
</careProvider>
<careProvider>
<reference value="Organization/test-org-2" />
</careProvider>
</Patient>