You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -362,14 +363,15 @@ goal is to know, at call time:
362
363
| --- | ----------- |
363
364
|`patient`| Patient demographics. |
364
365
|`hemoglobin-a1c`| Most recent Hemoglobin A1c reading for this patient. |
366
+
|`diabetes-type2`| If the patient has an active condition of diabetes mellitus on their problem list. |
365
367
| `user` | Information on the current user.
366
368
367
369
#### Example prefetch data
368
370
369
371
```json
370
372
{
371
373
"prefetch": {
372
-
"patient":{
374
+
"patient":{
373
375
"resourceType": "Patient",
374
376
"gender": "male",
375
377
"birthDate": "1974-12-25",
@@ -378,28 +380,33 @@ goal is to know, at call time:
378
380
"hemoglobin-a1c": {
379
381
"resourceType": "Bundle",
380
382
"type": "searchset",
381
-
"entry": [{
382
-
"resource": {
383
-
"resourceType": "Observation",
384
-
"code": {
385
-
"coding": [{
386
-
"system": "http://loinc.org",
387
-
"code": "4548-4",
388
-
"display": "Hemoglobin A1c"
389
-
}]
390
-
},
391
-
"...": "<snipped for brevity>"
383
+
"entry": [
384
+
{
385
+
"resource": {
386
+
"resourceType": "Observation",
387
+
"code": {
388
+
"coding": [
389
+
{
390
+
"system": "http://loinc.org",
391
+
"code": "4548-4",
392
+
"display": "Hemoglobin A1c"
393
+
}
394
+
]
395
+
},
396
+
"...": "<snipped for brevity>"
397
+
}
392
398
}
393
-
}]
394
-
}
399
+
]
400
+
},
401
+
"user": "123"
395
402
}
396
403
}
397
404
```
398
405
399
406
The CDS Hooks request is augmented to include two prefetch values, where the dictionary
400
407
keys match the request keys (`patient` and `hemoglobin-a1c` in this case).
401
408
402
-
Note that the missing `user` key indicates that either the CDS Client has decided not to satisfy this particular prefetch template or it was not able to retrieve this prefetched data. The CDS Service is responsible for retrieving the FHIR resource representing the user from the FHIR server (if required).
409
+
Note that the missing `diabetes-type2` key indicates that either the CDS Client has decided not to satisfy this particular prefetch template or it was not able to retrieve this prefetched data. The CDS Service is responsible for retrieving the FHIR resource representing the user from the FHIR server (if required).
0 commit comments