@@ -12,128 +12,122 @@ Field | Priority | Prefetch Token | Description
12
12
----- | -------- | ---- | ----
13
13
` patientId ` | REQUIRED | Yes | * string* . The FHIR ` Patient.id ` of the current patient in context
14
14
` encounterId ` | OPTIONAL | Yes | * string* . The FHIR ` Encounter.id ` of the current encounter in context
15
- ` medications ` | REQUIRED | No | * array * DSTU2 - An array of MedicationOrder resources <br /> * array * STU3 - An array of MedicationRequest resources
15
+ ` medications ` | REQUIRED | No | * object * DSTU2 - A FHIR Bundle of draft MedicationOrder resources <br /> * object * STU3 - A FHIR Bundle of draft MedicationRequest resources
16
16
17
17
### Example (DSTU2)
18
18
19
19
``` json
20
20
"context" :{
21
21
"patientId" : " 1288992" ,
22
22
"encounterId" : " 89284" ,
23
- "medications" :[
24
- {
25
- "resourceType" :" MedicationOrder" ,
26
- "id" :" smart-MedicationOrder-103" ,
27
- "status" :" draft" ,
28
- "patient" :{
29
- "reference" :" Patient/smart-1081332"
30
- },
31
- "medicationCodeableConcept" :{
32
- "coding" :[
33
- {
34
- "system" :" http://www.nlm.nih.gov/research/umls/rxnorm" ,
35
- "code" :" 617993" ,
36
- "display" :" Amoxicillin 120 MG/ML / clavulanate potassium 8.58 MG/ML Oral Suspension"
37
- }
38
- ],
39
- "text" :" Amoxicillin 120 MG/ML / clavulanate potassium 8.58 MG/ML Oral Suspension"
40
- },
41
- "dosageInstruction" :[
42
- {
43
- "text" :" 5 mL bid x 10 days" ,
44
- "timing" :{
45
- "repeat" :{
46
- "boundsPeriod" :{
47
- "start" :" 2005-01-04"
48
- },
49
- "frequency" :2 ,
50
- "period" :1 ,
51
- "periodUnits" :" d"
52
- }
53
- },
54
- "doseQuantity" :{
55
- "value" :5 ,
56
- "unit" :" mL" ,
57
- "system" :" http://unitsofmeasure.org" ,
58
- "code" :" mL"
59
- }
60
- }
61
- ],
62
- "dispenseRequest" :{
63
- "numberOfRepeatsAllowed" :1 ,
64
- "quantity" :{
65
- "value" :1 ,
66
- "unit" :" mL" ,
67
- "system" :" http://unitsofmeasure.org" ,
68
- "code" :" mL"
69
- },
70
- "expectedSupplyDuration" :{
71
- "value" :10 ,
72
- "unit" :" days" ,
73
- "system" :" http://unitsofmeasure.org" ,
74
- "code" :" d"
75
- }
76
- }
77
- },
78
- {
79
- "resourceType" :" MedicationOrder" ,
80
- "id" :" smart-MedicationOrder-104" ,
81
- "status" :" draft" ,
82
- "patient" :{
83
- "reference" :" Patient/smart-1081332"
84
- },
85
- "medicationCodeableConcept" :{
86
- "coding" :[
87
- {
88
- "system" :" http://www.nlm.nih.gov/research/umls/rxnorm" ,
89
- "code" :" 211307" ,
90
- "display" :" Azithromycin 20 MG/ML Oral Suspension [Zithromax]"
91
- }
92
- ],
93
- "text" :" Azithromycin 20 MG/ML Oral Suspension [Zithromax]"
94
- },
95
- "dosageInstruction" :[
96
- {
97
- "text" :" 15 mL daily x 3 days" ,
98
- "timing" :{
99
- "repeat" :{
100
- "boundsPeriod" :{
101
- "start" :" 2005-01-18"
102
- },
103
- "frequency" :1 ,
104
- "period" :1 ,
105
- "periodUnits" :" d"
106
- }
107
- },
108
- "doseQuantity" :{
109
- "value" :15 ,
110
- "unit" :" mL" ,
111
- "system" :" http://unitsofmeasure.org" ,
112
- "code" :" mL"
113
- }
114
- }
115
- ],
116
- "dispenseRequest" :{
117
- "numberOfRepeatsAllowed" :1 ,
118
- "quantity" :{
119
- "value" :1 ,
120
- "unit" :" mL" ,
121
- "system" :" http://unitsofmeasure.org" ,
122
- "code" :" mL"
123
- },
124
- "expectedSupplyDuration" :{
125
- "value" :3 ,
126
- "unit" :" days" ,
127
- "system" :" http://unitsofmeasure.org" ,
128
- "code" :" d"
129
- }
130
- }
131
- }
132
- ]
23
+ "medications" : {
24
+ "resourceType" : " Bundle" ,
25
+ "entry" : [{
26
+ {
27
+ "resource" :
28
+ "resourceType" : " MedicationOrder" ,
29
+ "id" : " smart-MedicationOrder-103" ,
30
+ "status" : " draft" ,
31
+ "patient" : {
32
+ "reference" : " Patient/smart-1081332"
33
+ },
34
+ "medicationCodeableConcept" : {
35
+ "coding" : [{
36
+ "system" : " http://www.nlm.nih.gov/research/umls/rxnorm" ,
37
+ "code" : " 617993" ,
38
+ "display" : " Amoxicillin 120 MG/ML / clavulanate potassium 8.58 MG/ML Oral Suspension"
39
+ }],
40
+ "text" : " Amoxicillin 120 MG/ML / clavulanate potassium 8.58 MG/ML Oral Suspension"
41
+ },
42
+ "dosageInstruction" : [{
43
+ "text" : " 5 mL bid x 10 days" ,
44
+ "timing" : {
45
+ "repeat" : {
46
+ "boundsPeriod" : {
47
+ "start" : " 2005-01-04"
48
+ },
49
+ "frequency" : 2 ,
50
+ "period" : 1 ,
51
+ "periodUnits" : " d"
52
+ }
53
+ },
54
+ "doseQuantity" : {
55
+ "value" : 5 ,
56
+ "unit" : " mL" ,
57
+ "system" : " http://unitsofmeasure.org" ,
58
+ "code" : " mL"
59
+ }
60
+ }],
61
+ "dispenseRequest" : {
62
+ "numberOfRepeatsAllowed" : 1 ,
63
+ "quantity" : {
64
+ "value" : 1 ,
65
+ "unit" : " mL" ,
66
+ "system" : " http://unitsofmeasure.org" ,
67
+ "code" : " mL"
68
+ },
69
+ "expectedSupplyDuration" : {
70
+ "value" : 10 ,
71
+ "unit" : " days" ,
72
+ "system" : " http://unitsofmeasure.org" ,
73
+ "code" : " d"
74
+ }
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "resource" : {
80
+ "resourceType" : " MedicationOrder" ,
81
+ "id" : " smart-MedicationOrder-104" ,
82
+ "status" : " draft" ,
83
+ "patient" : {
84
+ "reference" : " Patient/smart-1081332"
85
+ },
86
+ "medicationCodeableConcept" : {
87
+ "coding" : [{
88
+ "system" : " http://www.nlm.nih.gov/research/umls/rxnorm" ,
89
+ "code" : " 211307" ,
90
+ "display" : " Azithromycin 20 MG/ML Oral Suspension [Zithromax]"
91
+ }],
92
+ "text" : " Azithromycin 20 MG/ML Oral Suspension [Zithromax]"
93
+ },
94
+ "dosageInstruction" : [{
95
+ "text" : " 15 mL daily x 3 days" ,
96
+ "timing" : {
97
+ "repeat" : {
98
+ "boundsPeriod" : {
99
+ "start" : " 2005-01-18"
100
+ },
101
+ "frequency" : 1 ,
102
+ "period" : 1 ,
103
+ "periodUnits" : " d"
104
+ }
105
+ },
106
+ "doseQuantity" : {
107
+ "value" : 15 ,
108
+ "unit" : " mL" ,
109
+ "system" : " http://unitsofmeasure.org" ,
110
+ "code" : " mL"
111
+ }
112
+ }],
113
+ "dispenseRequest" : {
114
+ "numberOfRepeatsAllowed" : 1 ,
115
+ "quantity" : {
116
+ "value" : 1 ,
117
+ "unit" : " mL" ,
118
+ "system" : " http://unitsofmeasure.org" ,
119
+ "code" : " mL"
120
+ },
121
+ "expectedSupplyDuration" : {
122
+ "value" : 3 ,
123
+ "unit" : " days" ,
124
+ "system" : " http://unitsofmeasure.org" ,
125
+ "code" : " d"
126
+ }
127
+ }
128
+ }
129
+ }
130
+ ]
131
+ }
133
132
}
134
133
```
135
-
136
-
137
-
138
-
139
-
0 commit comments