@haste-health/hl7.fhir.r4.test-data 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/.index.json +285 -0
  2. package/examples-json/account-example.json +48 -0
  3. package/examples-json/allergyintolerance-example.json +119 -0
  4. package/examples-json/appointment-example.json +103 -0
  5. package/examples-json/appointmentresponse-example.json +17 -0
  6. package/examples-json/auditevent-example.json +121 -0
  7. package/examples-json/basic-example.json +74 -0
  8. package/examples-json/binary-example.json +9 -0
  9. package/examples-json/bodystructure-example-fetus.json +28 -0
  10. package/examples-json/capabilitystatement-example.json +198 -0
  11. package/examples-json/careteam-example.json +85 -0
  12. package/examples-json/clinicalimpression-example.json +68 -0
  13. package/examples-json/codesystem-example.json +95 -0
  14. package/examples-json/communication-example.json +75 -0
  15. package/examples-json/compartmentdefinition-example.json +63 -0
  16. package/examples-json/composition-example.json +167 -0
  17. package/examples-json/conceptmap-example.json +115 -0
  18. package/examples-json/condition-example.json +75 -0
  19. package/examples-json/condition-example.xml +60 -0
  20. package/examples-json/consent-example.json +54 -0
  21. package/examples-json/detectedissue-example.json +53 -0
  22. package/examples-json/device-example.json +14 -0
  23. package/examples-json/devicemetric-example.json +55 -0
  24. package/examples-json/deviceusestatement-example.json +27 -0
  25. package/examples-json/diagnosticreport-example.json +1002 -0
  26. package/examples-json/directive-include.json.out +16 -0
  27. package/examples-json/directive-skip.json.out +12 -0
  28. package/examples-json/directive-variable.json.out +16 -0
  29. package/examples-json/documentreference-example.json +162 -0
  30. package/examples-json/encounter-example.json +17 -0
  31. package/examples-json/endpoint-example.json +50 -0
  32. package/examples-json/episodeofcare-example.json +102 -0
  33. package/examples-json/familymemberhistory-example.json +66 -0
  34. package/examples-json/filter-fhirpath.json.out +14 -0
  35. package/examples-json/flag-example.json +48 -0
  36. package/examples-json/flatten-first.json.out +7 -0
  37. package/examples-json/flatten-singleton1.json.out +7 -0
  38. package/examples-json/flatten-singleton3.json.out +7 -0
  39. package/examples-json/flatten-slice1.json.out +10 -0
  40. package/examples-json/flatten-slice2.json.out +10 -0
  41. package/examples-json/flatten.json.out +7 -0
  42. package/examples-json/goal-example.json +87 -0
  43. package/examples-json/graphdefinition-example.json +61 -0
  44. package/examples-json/group-example.json +41 -0
  45. package/examples-json/healthcareservice-example.json +224 -0
  46. package/examples-json/immunization-example.json +132 -0
  47. package/examples-json/implementationguide-example.json +128 -0
  48. package/examples-json/linkage-example.json +27 -0
  49. package/examples-json/list-example-long.xml +1281 -0
  50. package/examples-json/list-example.json +45 -0
  51. package/examples-json/list-sub.json.out +23 -0
  52. package/examples-json/location-example.json +73 -0
  53. package/examples-json/medicationadministration0301.json +134 -0
  54. package/examples-json/medicationdispense0301.json +134 -0
  55. package/examples-json/medicationdispenseexample8.xml +64 -0
  56. package/examples-json/medicationrequest0301.json +279 -0
  57. package/examples-json/medicationstatementexample1.json +198 -0
  58. package/examples-json/messagedefinition-example.json +31 -0
  59. package/examples-json/messageheader-example.json +61 -0
  60. package/examples-json/molecularsequence-example.json +42 -0
  61. package/examples-json/namingsystem-example.json +37 -0
  62. package/examples-json/observation-decimal.json +77 -0
  63. package/examples-json/observation-decimal.xml +70 -0
  64. package/examples-json/observation-example-20minute-apgar-score.xml +169 -0
  65. package/examples-json/observation-example.json +57 -0
  66. package/examples-json/observation-example.xml +74 -0
  67. package/examples-json/operationdefinition-example.json +105 -0
  68. package/examples-json/operationoutcome-example.json +24 -0
  69. package/examples-json/organization-1.json +42 -0
  70. package/examples-json/organization-1.xml +49 -0
  71. package/examples-json/organization-example.json +42 -0
  72. package/examples-json/parameters-example.json +37 -0
  73. package/examples-json/patient-example-xds.xml +39 -0
  74. package/examples-json/patient-example.json +165 -0
  75. package/examples-json/patient-example.xml +156 -0
  76. package/examples-json/patient-glossy-example.xml +43 -0
  77. package/examples-json/paymentnotice-example.json +50 -0
  78. package/examples-json/person-example.json +88 -0
  79. package/examples-json/polymorphic.json.out +9 -0
  80. package/examples-json/practitioner-example.json +63 -0
  81. package/examples-json/practitionerrole-example.json +104 -0
  82. package/examples-json/questionnaire-example.json +157 -0
  83. package/examples-json/questionnaireresponse-example-bluebook.json +140 -0
  84. package/examples-json/reference-fragment-type.json.out +24 -0
  85. package/examples-json/reference-reverse.json.out +6 -0
  86. package/examples-json/reference-type-in.json.out +24 -0
  87. package/examples-json/reference-type-out.json.out +21 -0
  88. package/examples-json/reference.json.out +24 -0
  89. package/examples-json/riskassessment-example.json +186 -0
  90. package/examples-json/schedule-example.json +57 -0
  91. package/examples-json/search-full.json.out +21 -0
  92. package/examples-json/search-simple.json.out +9 -0
  93. package/examples-json/search-single.json.out +6 -0
  94. package/examples-json/simple.json.out +16 -0
  95. package/examples-json/slot-example.json +54 -0
  96. package/examples-json/specimen-example.json +109 -0
  97. package/examples-json/structuremap-example.json +77 -0
  98. package/examples-json/subscription-example.json +26 -0
  99. package/examples-json/substance-example.json +29 -0
  100. package/examples-json/supplydelivery-example.json +53 -0
  101. package/examples-json/valueset-example.json +93 -0
  102. package/package.json +20 -0
@@ -0,0 +1,77 @@
1
+ {
2
+ "resourceType": "Observation",
3
+ "id": "decimal",
4
+ "text": {
5
+ "status": "generated",
6
+ "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: decimal</p><p><b>status</b>: final</p><p><b>code</b>: Decimal Testing Observation <span>(Details )</span></p><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.0 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.00 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.0 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1E-22 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1000000000000000000 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.000000000000000000E-245 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: -1.000000000000000000E+245 g</p></blockquote></div>"
7
+ },
8
+ "status": "final",
9
+ "code": {
10
+ "text": "Decimal Testing Observation"
11
+ },
12
+ "component": [
13
+ {
14
+ "code": {
15
+ "text": "Component"
16
+ },
17
+ "valueQuantity": {
18
+ "value": 1.0,
19
+ "unit": "g"
20
+ }
21
+ },
22
+ {
23
+ "code": {
24
+ "text": "Component"
25
+ },
26
+ "valueQuantity": {
27
+ "value": 1.00,
28
+ "unit": "g"
29
+ }
30
+ },
31
+ {
32
+ "code": {
33
+ "text": "Component"
34
+ },
35
+ "valueQuantity": {
36
+ "value": 1.0,
37
+ "unit": "g"
38
+ }
39
+ },
40
+ {
41
+ "code": {
42
+ "text": "Component"
43
+ },
44
+ "valueQuantity": {
45
+ "value": 1E-22,
46
+ "unit": "g"
47
+ }
48
+ },
49
+ {
50
+ "code": {
51
+ "text": "Component"
52
+ },
53
+ "valueQuantity": {
54
+ "value": 1000000000000000000,
55
+ "unit": "g"
56
+ }
57
+ },
58
+ {
59
+ "code": {
60
+ "text": "Component"
61
+ },
62
+ "valueQuantity": {
63
+ "value": 1.000000000000000000E-245,
64
+ "unit": "g"
65
+ }
66
+ },
67
+ {
68
+ "code": {
69
+ "text": "Component"
70
+ },
71
+ "valueQuantity": {
72
+ "value": -1.000000000000000000E+245,
73
+ "unit": "g"
74
+ }
75
+ }
76
+ ]
77
+ }
@@ -0,0 +1,70 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><Observation xmlns="http://hl7.org/fhir">
2
+ <id value="decimal"/>
3
+ <text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: decimal</p><p><b>status</b>: final</p><p><b>code</b>: Decimal Testing Observation <span>(Details )</span></p><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.0 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.00 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.0 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1E-22 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1000000000000000000 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: 1.000000000000000000E-245 g</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Component <span>(Details )</span></p><p><b>value</b>: -1.000000000000000000E+245 g</p></blockquote></div></text><status value="final"/>
4
+ <code>
5
+ <text value="Decimal Testing Observation"/>
6
+ </code>
7
+ <component>
8
+ <code>
9
+ <text value="Component"/>
10
+ </code>
11
+ <valueQuantity>
12
+ <value value="1.0"/>
13
+ <unit value="g"/>
14
+ </valueQuantity>
15
+ </component>
16
+ <component>
17
+ <code>
18
+ <text value="Component"/>
19
+ </code>
20
+ <valueQuantity>
21
+ <value value="1.00"/>
22
+ <unit value="g"/>
23
+ </valueQuantity>
24
+ </component>
25
+ <component>
26
+ <code>
27
+ <text value="Component"/>
28
+ </code>
29
+ <valueQuantity>
30
+ <value value="1.0e0"/>
31
+ <unit value="g"/>
32
+ </valueQuantity>
33
+ </component>
34
+ <component>
35
+ <code>
36
+ <text value="Component"/>
37
+ </code>
38
+ <valueQuantity>
39
+ <value value="0.0000000000000000000001"/>
40
+ <unit value="g"/>
41
+ </valueQuantity>
42
+ </component>
43
+ <component>
44
+ <code>
45
+ <text value="Component"/>
46
+ </code>
47
+ <valueQuantity>
48
+ <value value="1000000000000000000"/>
49
+ <unit value="g"/>
50
+ </valueQuantity>
51
+ </component>
52
+ <component>
53
+ <code>
54
+ <text value="Component"/>
55
+ </code>
56
+ <valueQuantity>
57
+ <value value="1.000000000000000000e-245"/>
58
+ <unit value="g"/>
59
+ </valueQuantity>
60
+ </component>
61
+ <component>
62
+ <code>
63
+ <text value="Component"/>
64
+ </code>
65
+ <valueQuantity>
66
+ <value value="-1.000000000000000000e245"/>
67
+ <unit value="g"/>
68
+ </valueQuantity>
69
+ </component>
70
+ </Observation>
@@ -0,0 +1,169 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><Observation xmlns="http://hl7.org/fhir">
2
+ <id value="20minute-apgar-score"/><!-- Using a contained patient for the purposes of this example Observation. Typically the reference would be to an external resource --><text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 20minute-apgar-score</p><p><b>contained</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Survey <span>(Details : {http://terminology.hl7.org/CodeSystem/observation-category code &#39;survey&#39; = &#39;Survey&#39;, given as &#39;Survey&#39;})</span></p><p><b>code</b>: 20 minute Apgar Score <span>(Details : {SNOMED CT code &#39;443849008&#39; = &#39;Apgar score at 20 minutes&#39;, given as &#39;Apgar score at 20 minutes&#39;})</span></p><p><b>subject</b>: id: newborn; 12345; active; Peter James Chalmers ; gender: male; birthDate: 18/05/2016</p><p><b>effective</b>: 18/05/2016 10:33:22 PM</p><p><b>performer</b>: <a>Practitioner/example</a></p><p><b>value</b>: 10 {score}<span> (Details: UCUM code {score} = &#39;{score}&#39;)</span></p><blockquote><p><b>component</b></p><p><b>code</b>: Apgar color score <span>(Details : {SNOMED CT code &#39;249227004&#39; = &#39;Apgar color score&#39;, given as &#39;Apgar color score&#39;})</span></p><p><b>value</b>: 2. Good color all over <span>(Details : {LOINC code &#39;LA6724-4&#39; = &#39;Good color all over&#39;, given as &#39;Good color all over&#39;}; {http://acme.ped/apgarcolor code &#39;2&#39; = &#39;2)</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Apgar respiratory effort score <span>(Details : {SNOMED CT code &#39;249223000&#39; = &#39;Apgar heart rate score&#39;, given as &#39;Apgar heart rate score&#39;})</span></p><p><b>value</b>: 2. At least 100 beats per minute <span>(Details : {LOINC code &#39;LA6718-6&#39; = &#39;At least 100 beats per minute&#39;, given as &#39;At least 100 beats per minute&#39;}; {http://acme.ped/apgarheartrate code &#39;2&#39; = &#39;2)</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Apgar response to stimulus score <span>(Details : {SNOMED CT code &#39;249226008&#39; = &#39;Apgar response to stimulus score&#39;, given as &#39;Apgar response to stimulus score&#39;})</span></p><p><b>value</b>: 2. Grimace and pulling away, cough, or sneeze during suctioning <span>(Details : {LOINC code &#39;LA6721-0&#39; = &#39;Grimace and pulling away, cough, or sneeze during suctioning&#39;, given as &#39;Grimace and pulling away, cough, or sneeze during suctioning&#39;}; {http://acme.ped/apgarreflexirritability code &#39;2&#39; = &#39;2)</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Apgar muscle tone score <span>(Details : {SNOMED CT code &#39;249225007&#39; = &#39;Apgar muscle tone score&#39;, given as &#39;Apgar muscle tone score&#39;})</span></p><p><b>value</b>: 2. Active motion <span>(Details : {LOINC code &#39;LA6715-2&#39; = &#39;Active motion&#39;, given as &#39;Active motion &#39;}; {http://acme.ped/apgarmuscletone code &#39;2&#39; = &#39;2)</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Apgar respiratory effort score <span>(Details : {SNOMED CT code &#39;249224006&#39; = &#39;Apgar respiratory effort score&#39;, given as &#39;Apgar respiratory effort score&#39;})</span></p><p><b>value</b>: 2. Good, strong cry; normal rate and effort of breathing <span>(Details : {LOINC code &#39;LA6727-7&#39; = &#39;Good, strong cry; normal rate and effort of breathing&#39;, given as &#39;Good, strong cry; normal rate and effort of breathing &#39;}; {http://acme.ped/apgarrespiratoryeffort code &#39;2&#39; = &#39;2)</span></p></blockquote></div></text><contained>
3
+ <Patient>
4
+ <id value="newborn"/><!-- MRN assigned by ACME healthcare on --><identifier>
5
+ <system value="http://acmehealthcare/org/mrns"/>
6
+ <value value="12345"/>
7
+ </identifier>
8
+ <active value="true"/><!-- Peter James Chalmers --><name>
9
+ <family value="Chalmers"/>
10
+ <given value="Peter"/>
11
+ <given value="James"/>
12
+ </name><!-- use FHIR code system for male / female --><gender value="male"/>
13
+ <birthDate value="2016-05-18">
14
+ <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime">
15
+ <valueDateTime value="2016-05-18T10:28:45Z"/>
16
+ </extension>
17
+ </birthDate>
18
+ </Patient>
19
+ </contained>
20
+ <status value="final"/>
21
+ <category>
22
+ <coding>
23
+ <system value="http://terminology.hl7.org/CodeSystem/observation-category"/>
24
+ <code value="survey"/>
25
+ <display value="Survey"/>
26
+ </coding>
27
+ <text value="Survey"/>
28
+ </category>
29
+ <code>
30
+ <coding>
31
+ <system value="http://snomed.info/sct"/>
32
+ <code value="443849008"/>
33
+ <display value="Apgar score at 20 minutes"/>
34
+ </coding>
35
+ <text value="20 minute Apgar Score"/>
36
+ </code>
37
+ <subject>
38
+ <reference value="#newborn"/>
39
+ </subject>
40
+ <effectiveDateTime value="2016-05-18T22:33:22Z"/>
41
+ <performer>
42
+ <reference value="Practitioner/example"/>
43
+ </performer>
44
+ <valueQuantity>
45
+ <value value="10"/>
46
+ <system value="http://unitsofmeasure.org"/>
47
+ <code value="{score}"/>
48
+ </valueQuantity>
49
+ <component>
50
+ <code>
51
+ <coding>
52
+ <system value="http://snomed.info/sct"/>
53
+ <code value="249227004"/>
54
+ <display value="Apgar color score"/>
55
+ </coding>
56
+ <text value="Apgar color score"/>
57
+ </code>
58
+ <valueCodeableConcept>
59
+ <coding><!-- this extension maps a numeric score to the code this may already be known and unecessary --><extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
60
+ <valueDecimal value="2"/>
61
+ </extension>
62
+ <system value="http://loinc.org"/>
63
+ <code value="LA6724-4"/>
64
+ <display value="Good color all over"/>
65
+ </coding>
66
+ <coding>
67
+ <system value="http://acme.ped/apgarcolor"/>
68
+ <code value="2"/>
69
+ </coding>
70
+ <text value="2. Good color all over"/>
71
+ </valueCodeableConcept>
72
+ </component>
73
+ <component>
74
+ <code>
75
+ <coding>
76
+ <system value="http://snomed.info/sct"/>
77
+ <code value="249223000"/>
78
+ <display value="Apgar heart rate score"/>
79
+ </coding>
80
+ <text value="Apgar respiratory effort score"/>
81
+ </code>
82
+ <valueCodeableConcept>
83
+ <coding><!-- this extension maps a numeric score to the code this may already be known and unecessary --><extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
84
+ <valueDecimal value="2"/>
85
+ </extension>
86
+ <system value="http://loinc.org"/>
87
+ <code value="LA6718-6"/>
88
+ <display value="At least 100 beats per minute"/>
89
+ </coding>
90
+ <coding>
91
+ <system value="http://acme.ped/apgarheartrate"/>
92
+ <code value="2"/>
93
+ </coding>
94
+ <text value="2. At least 100 beats per minute"/>
95
+ </valueCodeableConcept>
96
+ </component>
97
+ <component>
98
+ <code>
99
+ <coding>
100
+ <system value="http://snomed.info/sct"/>
101
+ <code value="249226008"/>
102
+ <display value="Apgar response to stimulus score"/>
103
+ </coding>
104
+ <text value="Apgar response to stimulus score"/>
105
+ </code>
106
+ <valueCodeableConcept>
107
+ <coding><!-- this extension maps a numeric score to the code this may already be known and unecessary --><extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
108
+ <valueDecimal value="2"/>
109
+ </extension>
110
+ <system value="http://loinc.org"/>
111
+ <code value="LA6721-0"/>
112
+ <display value="Grimace and pulling away, cough, or sneeze during suctioning"/>
113
+ </coding>
114
+ <coding>
115
+ <system value="http://acme.ped/apgarreflexirritability"/>
116
+ <code value="2"/>
117
+ </coding>
118
+ <text value="2. Grimace and pulling away, cough, or sneeze during suctioning"/>
119
+ </valueCodeableConcept>
120
+ </component>
121
+ <component>
122
+ <code>
123
+ <coding>
124
+ <system value="http://snomed.info/sct"/>
125
+ <code value="249225007"/>
126
+ <display value="Apgar muscle tone score"/>
127
+ </coding>
128
+ <text value="Apgar muscle tone score"/>
129
+ </code>
130
+ <valueCodeableConcept>
131
+ <coding><!-- this extension maps a numeric score to the code this may already be known and unecessary --><extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
132
+ <valueDecimal value="2"/>
133
+ </extension>
134
+ <system value="http://loinc.org"/>
135
+ <code value="LA6715-2"/>
136
+ <display value="Active motion "/>
137
+ </coding>
138
+ <coding>
139
+ <system value="http://acme.ped/apgarmuscletone"/>
140
+ <code value="2"/>
141
+ </coding>
142
+ <text value="2. Active motion"/>
143
+ </valueCodeableConcept>
144
+ </component>
145
+ <component>
146
+ <code>
147
+ <coding>
148
+ <system value="http://snomed.info/sct"/>
149
+ <code value="249224006"/>
150
+ <display value="Apgar respiratory effort score"/>
151
+ </coding>
152
+ <text value="Apgar respiratory effort score"/>
153
+ </code>
154
+ <valueCodeableConcept>
155
+ <coding><!-- this extension maps a numeric score to the code this may already be known and unecessary --><extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
156
+ <valueDecimal value="2"/>
157
+ </extension>
158
+ <system value="http://loinc.org"/>
159
+ <code value="LA6727-7"/>
160
+ <display value="Good, strong cry; normal rate and effort of breathing "/>
161
+ </coding>
162
+ <coding>
163
+ <system value="http://acme.ped/apgarrespiratoryeffort"/>
164
+ <code value="2"/>
165
+ </coding>
166
+ <text value="2. Good, strong cry; normal rate and effort of breathing"/>
167
+ </valueCodeableConcept>
168
+ </component>
169
+ </Observation>
@@ -0,0 +1,57 @@
1
+ {
2
+ "resourceType": "Observation",
3
+ "id": "example",
4
+ "text": {
5
+ "status": "generated",
6
+ "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>status</b>: final</p><p><b>category</b>: Vital Signs <span>(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})</span></p><p><b>code</b>: Body Weight <span>(Details : {LOINC code '29463-7' = 'Body weight', given as 'Body Weight'}; {LOINC code '3141-9' = 'Body weight Measured', given as 'Body weight Measured'}; {SNOMED CT code '27113001' = 'Body weight', given as 'Body weight'}; {http://acme.org/devices/clinical-codes code 'body-weight' = 'body-weight', given as 'Body Weight'})</span></p><p><b>subject</b>: <a>Patient/example</a></p><p><b>encounter</b>: <a>Encounter/example</a></p><p><b>effective</b>: 28/03/2016</p><p><b>value</b>: 185 lbs<span> (Details: UCUM code [lb_av] = 'lb_av')</span></p></div>"
7
+ },
8
+ "status": "final",
9
+ "category": [
10
+ {
11
+ "coding": [
12
+ {
13
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
14
+ "code": "vital-signs",
15
+ "display": "Vital Signs"
16
+ }
17
+ ]
18
+ }
19
+ ],
20
+ "code": {
21
+ "coding": [
22
+ {
23
+ "system": "http://loinc.org",
24
+ "code": "29463-7",
25
+ "display": "Body Weight"
26
+ },
27
+ {
28
+ "system": "http://loinc.org",
29
+ "code": "3141-9",
30
+ "display": "Body weight Measured"
31
+ },
32
+ {
33
+ "system": "http://snomed.info/sct",
34
+ "code": "27113001",
35
+ "display": "Body weight"
36
+ },
37
+ {
38
+ "system": "http://acme.org/devices/clinical-codes",
39
+ "code": "body-weight",
40
+ "display": "Body Weight"
41
+ }
42
+ ]
43
+ },
44
+ "subject": {
45
+ "reference": "Patient/example"
46
+ },
47
+ "encounter": {
48
+ "reference": "Encounter/example"
49
+ },
50
+ "effectiveDateTime": "2016-03-28",
51
+ "valueQuantity": {
52
+ "value": 185,
53
+ "unit": "lbs",
54
+ "system": "http://unitsofmeasure.org",
55
+ "code": "[lb_av]"
56
+ }
57
+ }
@@ -0,0 +1,74 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><Observation xmlns="http://hl7.org/fhir">
2
+ <id value="example"/>
3
+ <!-- the mandatory quality flags: -->
4
+ <text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>status</b>: final</p><p><b>category</b>: Vital Signs <span>(Details : {http://terminology.hl7.org/CodeSystem/observation-category code &#39;vital-signs&#39; = &#39;Vital Signs&#39;, given as &#39;Vital Signs&#39;})</span></p><p><b>code</b>: Body Weight <span>(Details : {LOINC code &#39;29463-7&#39; = &#39;Body weight&#39;, given as &#39;Body Weight&#39;}; {LOINC code &#39;3141-9&#39; = &#39;Body weight Measured&#39;, given as &#39;Body weight Measured&#39;}; {SNOMED CT code &#39;27113001&#39; = &#39;Body weight&#39;, given as &#39;Body weight&#39;}; {http://acme.org/devices/clinical-codes code &#39;body-weight&#39; = &#39;body-weight&#39;, given as &#39;Body Weight&#39;})</span></p><p><b>subject</b>: <a>Patient/example</a></p><p><b>encounter</b>: <a>Encounter/example</a></p><p><b>effective</b>: 28/03/2016</p><p><b>value</b>: 185 lbs<span> (Details: UCUM code [lb_av] = &#39;lb_av&#39;)</span></p></div></text>
5
+ <extension url="http://example.com/fhir/StructureDefinition/patient-age">
6
+ <valueAge>
7
+ <value value="41" />
8
+ <system value="http://unitsofmeasure.org" />
9
+ <code value="a" />
10
+ </valueAge>
11
+ </extension>
12
+ <status value="final"/>
13
+ <!-- category code is A code that classifies the general type of observation being made. This is used for searching, sorting and display purposes. -->
14
+ <category>
15
+ <coding>
16
+ <system value="http://terminology.hl7.org/CodeSystem/observation-category"/>
17
+ <code value="vital-signs"/>
18
+ <display value="Vital Signs"/>
19
+ </coding>
20
+ </category>
21
+ <!--
22
+ Observations are often coded in multiple code systems.
23
+ - LOINC provides codes of varying granularity (though not usefully more specific in this particular case) and more generic LOINCs can be mapped to more specific codes as shown here
24
+ - snomed provides a clinically relevant code that is usually less granular than LOINC
25
+ - the source system provides its own code, which may be less or more granular than LOINC
26
+ -->
27
+ <code>
28
+ <!-- LOINC - always recommended to have a LOINC code -->
29
+ <coding>
30
+ <system value="http://loinc.org"/>
31
+ <code value="29463-7"/> <!-- more generic methodless LOINC -->
32
+ <display value="Body Weight"/>
33
+ </coding>
34
+ <coding>
35
+ <system value="http://loinc.org"/>
36
+ <code value="3141-9"/><!-- translation is more specific method = measured LOINC -->
37
+ <display value="Body weight Measured"/>
38
+ </coding>
39
+ <!-- SNOMED CT Codes - becoming more common -->
40
+ <coding>
41
+ <system value="http://snomed.info/sct"/>
42
+ <code value="27113001"/>
43
+ <display value="Body weight"/>
44
+ </coding>
45
+ <!-- Also, a local code specific to the source system -->
46
+ <coding>
47
+ <system value="http://acme.org/devices/clinical-codes"/>
48
+ <code value="body-weight"/>
49
+ <display value="Body Weight"/>
50
+ </coding>
51
+ </code>
52
+ <subject>
53
+ <reference value="Patient/example"/>
54
+ </subject>
55
+ <encounter>
56
+ <reference value="Encounter/example"/>
57
+ </encounter>
58
+ <effectiveDateTime value="2016-03-28"/>
59
+ <!-- In FHIR, units may be represented twice. Once in the
60
+ agreed human representation, and once in a coded form.
61
+ Both is best, since it's not always possible to infer
62
+ one from the other in code.
63
+
64
+ When a computable unit is provided, UCUM (http://unitsofmeasure.org)
65
+ is always preferred, but it doesn't provide notional units (such as
66
+ "tablet"), etc. For these, something else is required (e.g. SNOMED CT)
67
+ -->
68
+ <valueQuantity>
69
+ <value value="185"/>
70
+ <unit value="lbs"/>
71
+ <system value="http://unitsofmeasure.org"/>
72
+ <code value="[lb_av]"/>
73
+ </valueQuantity>
74
+ </Observation>
@@ -0,0 +1,105 @@
1
+ {
2
+ "resourceType": "OperationDefinition",
3
+ "id": "example",
4
+ "text": {
5
+ "status": "generated",
6
+ "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>url</b>: <b>http://h7.org/fhir/OperationDefinition/example</b></p><p><b>version</b>: B</p><p><b>name</b>: Populate Questionnaire</p><p><b>status</b>: draft</p><p><b>kind</b>: operation</p><p><b>date</b>: 04/08/2015</p><p><b>publisher</b>: Acme Healthcare Services</p><p><b>contact</b>: </p><p><b>description</b>: Limited implementation of the Populate Questionnaire implementation</p><p><b>useContext</b>: </p><p><b>jurisdiction</b>: United Kingdom of Great Britain and Northern Ireland (the) <span>(Details : {urn:iso:std:iso:3166 code 'GB' = 'United Kingdom of Great Britain and Northern Ireland', given as 'United Kingdom of Great Britain and Northern Ireland (the)'})</span></p><p><b>code</b>: populate</p><p><b>comment</b>: Only implemented for Labs and Medications so far</p><p><b>base</b>: <a>OperationDefinition/Questionnaire-populate</a></p><p><b>resource</b>: Questionnaire</p><p><b>system</b>: false</p><p><b>type</b>: false</p><p><b>instance</b>: true</p><blockquote><p><b>parameter</b></p><p><b>name</b>: subject</p><p><b>use</b>: in</p><p><b>min</b>: 1</p><p><b>max</b>: 1</p><p><b>documentation</b>: The resource that is to be the *QuestionnaireResponse.subject*. The [[[QuestionnaireResponse]]] instance will reference the provided subject. In addition, if the *local* parameter is set to true, server information about the specified subject will be used to populate the instance.</p><p><b>type</b>: Reference</p></blockquote><blockquote><p><b>parameter</b></p><p><b>name</b>: local</p><p><b>use</b>: in</p><p><b>min</b>: 0</p><p><b>max</b>: 1</p><p><b>documentation</b>: If the *local* parameter is set to true, server information about the specified subject will be used to populate the instance.</p><p><b>type</b>: Reference</p></blockquote><blockquote><p><b>parameter</b></p><p><b>name</b>: return</p><p><b>use</b>: out</p><p><b>min</b>: 1</p><p><b>max</b>: 1</p><p><b>documentation</b>: The partially (or fully)-populated set of answers for the specified Questionnaire</p><p><b>type</b>: QuestionnaireResponse</p></blockquote><blockquote><p><b>overload</b></p><p><b>parameterName</b>: subject, local</p></blockquote><blockquote><p><b>overload</b></p><p><b>parameterName</b>: subject</p><p><b>comment</b>: local defaults to false when not passed as a parameter</p></blockquote></div>"
7
+ },
8
+ "url": "http://h7.org/fhir/OperationDefinition/example",
9
+ "version": "B",
10
+ "name": "Populate Questionnaire",
11
+ "status": "draft",
12
+ "kind": "operation",
13
+ "date": "2015-08-04",
14
+ "publisher": "Acme Healthcare Services",
15
+ "contact": [
16
+ {
17
+ "name": "System Administrator",
18
+ "telecom": [
19
+ {
20
+ "system": "email",
21
+ "value": "beep@coyote.acme.com"
22
+ }
23
+ ]
24
+ }
25
+ ],
26
+ "description": "Limited implementation of the Populate Questionnaire implementation",
27
+ "useContext": [
28
+ {
29
+ "code": {
30
+ "system": "http://build.fhir.org/codesystem-usage-context-type",
31
+ "code": "venue",
32
+ "display": "Clinical Venue"
33
+ },
34
+ "valueCodeableConcept": {
35
+ "coding": [
36
+ {
37
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
38
+ "code": "IMP",
39
+ "display": "inpatient encounter"
40
+ }
41
+ ]
42
+ }
43
+ }
44
+ ],
45
+ "jurisdiction": [
46
+ {
47
+ "coding": [
48
+ {
49
+ "system": "urn:iso:std:iso:3166",
50
+ "code": "GB",
51
+ "display": "United Kingdom of Great Britain and Northern Ireland (the)"
52
+ }
53
+ ]
54
+ }
55
+ ],
56
+ "code": "populate",
57
+ "comment": "Only implemented for Labs and Medications so far",
58
+ "base": "OperationDefinition/Questionnaire-populate",
59
+ "resource": [
60
+ "Questionnaire"
61
+ ],
62
+ "system": false,
63
+ "type": false,
64
+ "instance": true,
65
+ "parameter": [
66
+ {
67
+ "name": "subject",
68
+ "use": "in",
69
+ "min": 1,
70
+ "max": "1",
71
+ "documentation": "The resource that is to be the *QuestionnaireResponse.subject*. The [[[QuestionnaireResponse]]] instance will reference the provided subject. In addition, if the *local* parameter is set to true, server information about the specified subject will be used to populate the instance.",
72
+ "type": "Reference"
73
+ },
74
+ {
75
+ "name": "local",
76
+ "use": "in",
77
+ "min": 0,
78
+ "max": "1",
79
+ "documentation": "If the *local* parameter is set to true, server information about the specified subject will be used to populate the instance.",
80
+ "type": "Reference"
81
+ },
82
+ {
83
+ "name": "return",
84
+ "use": "out",
85
+ "min": 1,
86
+ "max": "1",
87
+ "documentation": "The partially (or fully)-populated set of answers for the specified Questionnaire",
88
+ "type": "QuestionnaireResponse"
89
+ }
90
+ ],
91
+ "overload": [
92
+ {
93
+ "parameterName": [
94
+ "subject",
95
+ "local"
96
+ ]
97
+ },
98
+ {
99
+ "parameterName": [
100
+ "subject"
101
+ ],
102
+ "comment": "local defaults to false when not passed as a parameter"
103
+ }
104
+ ]
105
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "resourceType": "OperationOutcome",
3
+ "id": "101",
4
+ "text": {
5
+ "status": "generated",
6
+ "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>The code &quot;W&quot; is not known and not legal Patient.gender.</p>\n </div>"
7
+ },
8
+ "issue": [
9
+ {
10
+ "severity": "error",
11
+ "code": "code-invalid",
12
+ "details": {
13
+ "text": "The code \"W\" is not known and not legal in this context"
14
+ },
15
+ "diagnostics": "Acme.Interop.FHIRProcessors.Patient.processGender line 2453",
16
+ "location": [
17
+ "/f:Patient/f:gender"
18
+ ],
19
+ "expression": [
20
+ "Patient.gender"
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "resourceType": "Organization",
3
+ "id": "hl7",
4
+ "text": {
5
+ "status": "generated",
6
+ "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n Health Level Seven International\n <br/>\n\t\t\t\t3300 Washtenaw Avenue, Suite 227\n <br/>\n\t\t\t\tAnn Arbor, MI 48104\n <br/>\n\t\t\t\tUSA\n <br/>\n\t\t\t\t(+1) 734-677-7777 (phone)\n <br/>\n\t\t\t\t(+1) 734-677-6622 (fax)\n <br/>\n\t\t\t\tE-mail: \n <a href=\"mailto:hq@HL7.org\">hq@HL7.org</a>\n \n </div>"
7
+ },
8
+ "name": "Health Level Seven International",
9
+ "alias": [
10
+ "HL7 International"
11
+ ],
12
+ "telecom": [
13
+ {
14
+ "system": "phone",
15
+ "value": "(+1) 734-677-7777"
16
+ },
17
+ {
18
+ "system": "fax",
19
+ "value": "(+1) 734-677-6622"
20
+ },
21
+ {
22
+ "system": "email",
23
+ "value": "hq@HL7.org"
24
+ }
25
+ ],
26
+ "address": [
27
+ {
28
+ "line": [
29
+ "3300 Washtenaw Avenue, Suite 227"
30
+ ],
31
+ "city": "Ann Arbor",
32
+ "state": "MI",
33
+ "postalCode": "48104",
34
+ "country": "USA"
35
+ }
36
+ ],
37
+ "endpoint": [
38
+ {
39
+ "reference": "Endpoint/example"
40
+ }
41
+ ]
42
+ }