Difference between revisions of "CDS Hooks Interface for Hacking Health Brisbane 2017 Track 6"
Brett.esler (talk | contribs) |
Brett.esler (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 23: | Line 23: | ||
There's an implementation at http://test.fhir.org/r3/cds-services/hacking-health. All that implementation does is return a card that describes technical issues with the submission from the EHR. | There's an implementation at http://test.fhir.org/r3/cds-services/hacking-health. All that implementation does is return a card that describes technical issues with the submission from the EHR. | ||
+ | |||
+ | We decided that the cds-hook 'context' element should be an array for - the cds-hooks specification is somewhat unclear. | ||
== Example == | == Example == | ||
− | + | <nowiki> | |
− | + | { | |
− | "hookInstance": " | + | "hookInstance": "679951bb-4386-4236-8fa6-b816572ce46b", |
"hook": "order-review", | "hook": "order-review", | ||
− | " | + | "user": "Practitioner/1", |
− | " | + | "patient": "8", |
− | " | + | "encounter": "1-862", |
− | |||
"context": [ | "context": [ | ||
{ | { | ||
"resourceType": "ProcedureRequest", | "resourceType": "ProcedureRequest", | ||
− | "id": " | + | "id": "29-82A52E1D203A00A77D4B222E4630B023", |
"meta": { | "meta": { | ||
− | "versionId": " | + | "versionId": "20170803141836", |
− | "lastUpdated": "2017- | + | "lastUpdated": "2017-08-04T00:18:36+10:00" |
}, | }, | ||
"text": { | "text": { | ||
"status": "generated", | "status": "generated", | ||
− | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2017- | + | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2017-08-04 ESR</p></div>" |
}, | }, | ||
"status": "active", | "status": "active", | ||
"code": { | "code": { | ||
− | "text": " | + | "text": "ESR" |
}, | }, | ||
"subject": { | "subject": { | ||
− | "reference": "Patient/ | + | "reference": "Patient/8" |
}, | }, | ||
− | "occurrenceDateTime": "2017- | + | "context": { |
+ | "reference": "Encounter/1-862" | ||
+ | }, | ||
+ | "occurrenceDateTime": "2017-08-04" | ||
}, | }, | ||
{ | { | ||
"resourceType": "ProcedureRequest", | "resourceType": "ProcedureRequest", | ||
− | "id": " | + | "id": "29-39F275FBA712869CF8D656D72CEFE1C5", |
"meta": { | "meta": { | ||
− | "versionId": " | + | "versionId": "20170803141836", |
− | "lastUpdated": "2017- | + | "lastUpdated": "2017-08-04T00:18:36+10:00" |
}, | }, | ||
"text": { | "text": { | ||
"status": "generated", | "status": "generated", | ||
− | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2017- | + | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2017-08-04 FBC</p></div>" |
}, | }, | ||
"status": "active", | "status": "active", | ||
"code": { | "code": { | ||
− | "text": " | + | "text": "FBC" |
}, | }, | ||
"subject": { | "subject": { | ||
− | "reference": "Patient/ | + | "reference": "Patient/8" |
}, | }, | ||
− | "occurrenceDateTime": "2017- | + | "context": { |
+ | "reference": "Encounter/1-862" | ||
+ | }, | ||
+ | "occurrenceDateTime": "2017-08-04" | ||
}, | }, | ||
{ | { | ||
"resourceType": "ProcedureRequest", | "resourceType": "ProcedureRequest", | ||
− | "id": " | + | "id": "11-33AF404896F87F96AB9D345FC1A68195", |
"meta": { | "meta": { | ||
− | "versionId": " | + | "versionId": "20040210130000", |
− | "lastUpdated": " | + | "lastUpdated": "2004-02-11T00:00:00+11:00" |
}, | }, | ||
"text": { | "text": { | ||
"status": "generated", | "status": "generated", | ||
− | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p> | + | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2003-10-20 Modified rast</p></div>" |
}, | }, | ||
"status": "active", | "status": "active", | ||
"code": { | "code": { | ||
− | "text": " | + | "text": "Modified rast" |
}, | }, | ||
"subject": { | "subject": { | ||
− | "reference": "Patient/ | + | "reference": "Patient/8" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
− | " | + | "context": { |
− | "reference": " | + | "reference": "Encounter/1-862" |
}, | }, | ||
− | "occurrenceDateTime": " | + | "occurrenceDateTime": "2003-10-20" |
} | } | ||
], | ], | ||
Line 123: | Line 113: | ||
"resource": { | "resource": { | ||
"resourceType": "Encounter", | "resourceType": "Encounter", | ||
− | "id": "1- | + | "id": "1-862", |
"meta": { | "meta": { | ||
− | "lastUpdated": "2017- | + | "lastUpdated": "2017-08-04T00:11:29+10:00" |
}, | }, | ||
"text": { | "text": { | ||
"status": "generated", | "status": "generated", | ||
− | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">< | + | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div>2017-08-04 00:11 : General Practitioner<pre>\r\n\r\nActions:\r\nRequest printed to Best Pathology Service: ESR; FBC.\r\n</pre></div></div>" |
}, | }, | ||
"status": "in-progress", | "status": "in-progress", | ||
Line 144: | Line 134: | ||
], | ], | ||
"subject": { | "subject": { | ||
− | "reference": "Patient/ | + | "reference": "Patient/8" |
}, | }, | ||
"participant": [ | "participant": [ | ||
Line 160: | Line 150: | ||
], | ], | ||
"individual": { | "individual": { | ||
− | "reference": "Practitioner/ | + | "reference": "Practitioner/1" |
} | } | ||
} | } | ||
], | ], | ||
"period": { | "period": { | ||
− | "start": "2017- | + | "start": "2017-08-04T00:11:29+10:00" |
} | } | ||
} | } | ||
Line 175: | Line 165: | ||
"resource": { | "resource": { | ||
"resourceType": "Patient", | "resourceType": "Patient", | ||
− | "id": " | + | "id": "8", |
"meta": { | "meta": { | ||
− | "lastUpdated": " | + | "lastUpdated": "2004-11-05T00:00:00+11:00" |
}, | }, | ||
"text": { | "text": { | ||
"status": "generated", | "status": "generated", | ||
− | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p> | + | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Allen, Fay (Female 77y)</p></div>" |
}, | }, | ||
"extension": [ | "extension": [ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{ | { | ||
"url": "http://hl7.org.au/fhir/StructureDefinition/indigenous-status", | "url": "http://hl7.org.au/fhir/StructureDefinition/indigenous-status", | ||
"valueCoding": { | "valueCoding": { | ||
"system": "http://meteor.aihw.gov.au/content/index.phtml/itemId/602543#Codes", | "system": "http://meteor.aihw.gov.au/content/index.phtml/itemId/602543#Codes", | ||
− | "code": " | + | "code": "9", |
− | "display": " | + | "display": "Not stated/inadequately described" |
} | } | ||
} | } | ||
Line 231: | Line 197: | ||
}, | }, | ||
"system": "http://ns.electronichealth.net.au/id/medicare-number", | "system": "http://ns.electronichealth.net.au/id/medicare-number", | ||
− | "value": " | + | "value": "22345678911" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
{ | { | ||
Line 274: | Line 211: | ||
"text": "Health Fund Number" | "text": "Health Fund Number" | ||
}, | }, | ||
− | "value": " | + | "value": "7861327", |
"assigner": { | "assigner": { | ||
− | "display": " | + | "display": "Medihealthy" |
} | } | ||
} | } | ||
Line 284: | Line 221: | ||
{ | { | ||
"use": "usual", | "use": "usual", | ||
− | "family": " | + | "family": "Allen", |
"given": [ | "given": [ | ||
− | " | + | "Fay", |
+ | "Ellen" | ||
], | ], | ||
"prefix": [ | "prefix": [ | ||
− | "Mrs" | + | "Mrs." |
] | ] | ||
}, | }, | ||
{ | { | ||
"use": "nickname", | "use": "nickname", | ||
− | "text": " | + | "text": "Fay" |
} | } | ||
], | ], | ||
Line 300: | Line 238: | ||
{ | { | ||
"system": "phone", | "system": "phone", | ||
− | "value": " | + | "value": "0899905050", |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
"use": "home" | "use": "home" | ||
} | } | ||
], | ], | ||
"gender": "female", | "gender": "female", | ||
− | "birthDate": " | + | "birthDate": "1940-07-12", |
"deceasedBoolean": false, | "deceasedBoolean": false, | ||
"address": [ | "address": [ | ||
{ | { | ||
− | " | + | "use": "home", |
+ | "type": "physical", | ||
+ | "line": [ | ||
+ | "8 Grey St" | ||
+ | ], | ||
+ | "city": "Fremantle", | ||
+ | "state": "WA", | ||
+ | "postalCode": "6160" | ||
+ | } | ||
+ | ], | ||
+ | "contact": [ | ||
+ | { | ||
+ | "relationship": [ | ||
{ | { | ||
− | " | + | "coding": [ |
− | " | + | { |
+ | "system": "http://hl7.org/fhir/patient-contact-relationship", | ||
+ | "code": "family", | ||
+ | "display": "Family" | ||
+ | } | ||
+ | ], | ||
+ | "text": "Next of Kin" | ||
} | } | ||
], | ], | ||
− | "use": " | + | "name": { |
− | + | "use": "usual", | |
− | " | + | "family": "Allen", |
− | " | + | "given": [ |
+ | "Kenneth" | ||
+ | ], | ||
+ | "prefix": [ | ||
+ | "Mr." | ||
+ | ] | ||
+ | }, | ||
+ | "telecom": [ | ||
+ | { | ||
+ | "system": "phone", | ||
+ | "value": "0899905050", | ||
+ | "use": "home" | ||
+ | } | ||
], | ], | ||
− | " | + | "address": { |
− | + | "line": [ | |
− | + | "8 Grey St" | |
+ | ], | ||
+ | "city": "Fremantle", | ||
+ | "postalCode": "6160" | ||
+ | } | ||
} | } | ||
], | ], | ||
Line 357: | Line 313: | ||
"resource": { | "resource": { | ||
"resourceType": "Bundle", | "resourceType": "Bundle", | ||
− | "id": " | + | "id": "e72c7adb-7665-40fa-8f04-f9e5dcaefb40", |
"meta": { | "meta": { | ||
− | "versionId": " | + | "versionId": "20170804010316", |
− | "lastUpdated": "2017- | + | "lastUpdated": "2017-08-04T01:03:16.705+10:00" |
}, | }, | ||
"type": "searchset", | "type": "searchset", | ||
− | "total": | + | "total": 2, |
"link": [ | "link": [ | ||
{ | { | ||
"relation": "self", | "relation": "self", | ||
− | "url": "https://localhost.oridashi.com.au: | + | "url": "https://localhost.oridashi.com.au:8109/Condition?patient=8&_list=%24current-problems" |
}, | }, | ||
{ | { | ||
"relation": "last", | "relation": "last", | ||
− | "url": "https://localhost.oridashi.com.au: | + | "url": "https://localhost.oridashi.com.au:8109/Condition?patient=8&_list=%24current-problems&_page=1&_snapshot=636374053966930617" |
} | } | ||
], | ], | ||
"entry": [ | "entry": [ | ||
{ | { | ||
− | "fullUrl": "https://localhost.oridashi.com.au: | + | "fullUrl": "https://localhost.oridashi.com.au:8109/Condition/143", |
"resource": { | "resource": { | ||
"resourceType": "Condition", | "resourceType": "Condition", | ||
− | "id": " | + | "id": "143", |
"meta": { | "meta": { | ||
− | "versionId": " | + | "versionId": "20161027075650", |
− | "lastUpdated": " | + | "lastUpdated": "2016-10-27T18:56:50+11:00", |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
"security": [ | "security": [ | ||
{ | { | ||
Line 448: | Line 354: | ||
"text": { | "text": { | ||
"status": "generated", | "status": "generated", | ||
− | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p> | + | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2016-10-27 Cold, common</p></div>" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
"clinicalStatus": "active", | "clinicalStatus": "active", | ||
Line 514: | Line 372: | ||
"coding": [ | "coding": [ | ||
{ | { | ||
− | "system": "http://oridashi.com.au/system/code/ | + | "system": "http://oridashi.com.au/system/code/bestpracticeterm", |
− | "code": " | + | "code": "648", |
− | "display": " | + | "display": "Cold, common" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
{ | { | ||
− | + | "system": "http://snomed.info/sct", | |
− | + | "code": "82272006", | |
− | + | "display": "Cold, common" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | "code": " | ||
− | "display": " | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
], | ], | ||
− | "text": " | + | "text": "Cold, common" |
}, | }, | ||
"subject": { | "subject": { | ||
− | "reference": "Patient/ | + | "reference": "Patient/8" |
}, | }, | ||
− | "onsetDateTime": " | + | "onsetDateTime": "2016-10-27", |
"abatementBoolean": false | "abatementBoolean": false | ||
} | } | ||
}, | }, | ||
{ | { | ||
− | "fullUrl": "https://localhost.oridashi.com.au: | + | "fullUrl": "https://localhost.oridashi.com.au:8109/Condition/11", |
"resource": { | "resource": { | ||
"resourceType": "Condition", | "resourceType": "Condition", | ||
− | "id": " | + | "id": "11", |
"meta": { | "meta": { | ||
− | "versionId": " | + | "versionId": "20040210130000", |
− | "lastUpdated": " | + | "lastUpdated": "2004-02-11T00:00:00+11:00", |
"security": [ | "security": [ | ||
{ | { | ||
Line 656: | Line 414: | ||
"text": { | "text": { | ||
"status": "generated", | "status": "generated", | ||
− | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p> | + | "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2004-03-04 Osteoporosis (inactive)</p></div>" |
}, | }, | ||
− | "clinicalStatus": " | + | "clinicalStatus": "resolved", |
"verificationStatus": "confirmed", | "verificationStatus": "confirmed", | ||
"category": [ | "category": [ | ||
Line 674: | Line 432: | ||
"coding": [ | "coding": [ | ||
{ | { | ||
− | "system": "http://oridashi.com.au/system/code/ | + | "system": "http://oridashi.com.au/system/code/bestpracticeterm", |
− | "code": " | + | "code": "2588", |
− | "display": " | + | "display": "Osteoporosis" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
{ | { | ||
− | + | "system": "http://snomed.info/sct", | |
− | + | "code": "64859006", | |
− | + | "display": "Osteoporosis" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | "code": " | ||
− | "display": " | ||
} | } | ||
], | ], | ||
− | "text": " | + | "text": "Osteoporosis" |
}, | }, | ||
"subject": { | "subject": { | ||
− | "reference": "Patient/ | + | "reference": "Patient/8" |
}, | }, | ||
− | "onsetDateTime": " | + | "onsetDateTime": "2004-03-04", |
− | + | "abatementBoolean": true | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | "abatementBoolean": | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
} | } | ||
Line 1,195: | Line 457: | ||
} | } | ||
</nowiki> | </nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | == Terminology == | ||
+ | |||
+ | Test names from standard sets MD/BP [[Media:default-pathology-requests2.xlsx]] |
Latest revision as of 03:23, 6 August 2017
This page describes the interface for track 6 for Hacking Health Brisbane 2017 (see [[1]])
Contents
Basics
The cds-hook is 'order-review' - see [[2]].
Given the scenario described in the track, we assume that there's no call back to the EHR - so all data is provided via pre-fetch. Therefore, the EHR provides the following information:
- hook = order-review
- a hook instance
- a user id
- a patient
- an encounter (e.g. information about the GP consultation)
- a patient and and encounter resource matching those in the pre-fetch data
- at least one Condition - (problem list for the patient, also in the prefetch data
- one or more ProcedureRequest resources, for each test (or panel) requested by the clinician (in the context)
- no oauth/redirect details
The service returns a set of cards (no profile on the response yet).
Implementations
There's an implementation at http://test.fhir.org/r3/cds-services/hacking-health. All that implementation does is return a card that describes technical issues with the submission from the EHR.
We decided that the cds-hook 'context' element should be an array for - the cds-hooks specification is somewhat unclear.
Example
{ "hookInstance": "679951bb-4386-4236-8fa6-b816572ce46b", "hook": "order-review", "user": "Practitioner/1", "patient": "8", "encounter": "1-862", "context": [ { "resourceType": "ProcedureRequest", "id": "29-82A52E1D203A00A77D4B222E4630B023", "meta": { "versionId": "20170803141836", "lastUpdated": "2017-08-04T00:18:36+10:00" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2017-08-04 ESR</p></div>" }, "status": "active", "code": { "text": "ESR" }, "subject": { "reference": "Patient/8" }, "context": { "reference": "Encounter/1-862" }, "occurrenceDateTime": "2017-08-04" }, { "resourceType": "ProcedureRequest", "id": "29-39F275FBA712869CF8D656D72CEFE1C5", "meta": { "versionId": "20170803141836", "lastUpdated": "2017-08-04T00:18:36+10:00" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2017-08-04 FBC</p></div>" }, "status": "active", "code": { "text": "FBC" }, "subject": { "reference": "Patient/8" }, "context": { "reference": "Encounter/1-862" }, "occurrenceDateTime": "2017-08-04" }, { "resourceType": "ProcedureRequest", "id": "11-33AF404896F87F96AB9D345FC1A68195", "meta": { "versionId": "20040210130000", "lastUpdated": "2004-02-11T00:00:00+11:00" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2003-10-20 Modified rast</p></div>" }, "status": "active", "code": { "text": "Modified rast" }, "subject": { "reference": "Patient/8" }, "context": { "reference": "Encounter/1-862" }, "occurrenceDateTime": "2003-10-20" } ], "prefetch": { "encounter": { "response": { "status": "200 OK" }, "resource": { "resourceType": "Encounter", "id": "1-862", "meta": { "lastUpdated": "2017-08-04T00:11:29+10:00" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div>2017-08-04 00:11 : General Practitioner<pre>\r\n\r\nActions:\r\nRequest printed to Best Pathology Service: ESR; FBC.\r\n</pre></div></div>" }, "status": "in-progress", "type": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "62247001", "display": "General Practitioner" } ] } ], "subject": { "reference": "Patient/8" }, "participant": [ { "type": [ { "coding": [ { "system": "http://hl7.org/fhir/v3/ParticipationType", "code": "ATND", "display": "attender" } ] } ], "individual": { "reference": "Practitioner/1" } } ], "period": { "start": "2017-08-04T00:11:29+10:00" } } }, "patient": { "response": { "status": "200 OK" }, "resource": { "resourceType": "Patient", "id": "8", "meta": { "lastUpdated": "2004-11-05T00:00:00+11:00" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Allen, Fay (Female 77y)</p></div>" }, "extension": [ { "url": "http://hl7.org.au/fhir/StructureDefinition/indigenous-status", "valueCoding": { "system": "http://meteor.aihw.gov.au/content/index.phtml/itemId/602543#Codes", "code": "9", "display": "Not stated/inadequately described" } } ], "identifier": [ { "use": "usual", "type": { "coding": [ { "system": "http://hl7.org/fhir/v2/0203", "code": "MC", "display": "Patient's Medicare Number" } ], "text": "Medicare Number" }, "system": "http://ns.electronichealth.net.au/id/medicare-number", "value": "22345678911" }, { "use": "usual", "type": { "coding": [ { "system": "http://hl7.org/fhir/v2/0203", "code": "MB", "display": "Member Number" } ], "text": "Health Fund Number" }, "value": "7861327", "assigner": { "display": "Medihealthy" } } ], "active": true, "name": [ { "use": "usual", "family": "Allen", "given": [ "Fay", "Ellen" ], "prefix": [ "Mrs." ] }, { "use": "nickname", "text": "Fay" } ], "telecom": [ { "system": "phone", "value": "0899905050", "use": "home" } ], "gender": "female", "birthDate": "1940-07-12", "deceasedBoolean": false, "address": [ { "use": "home", "type": "physical", "line": [ "8 Grey St" ], "city": "Fremantle", "state": "WA", "postalCode": "6160" } ], "contact": [ { "relationship": [ { "coding": [ { "system": "http://hl7.org/fhir/patient-contact-relationship", "code": "family", "display": "Family" } ], "text": "Next of Kin" } ], "name": { "use": "usual", "family": "Allen", "given": [ "Kenneth" ], "prefix": [ "Mr." ] }, "telecom": [ { "system": "phone", "value": "0899905050", "use": "home" } ], "address": { "line": [ "8 Grey St" ], "city": "Fremantle", "postalCode": "6160" } } ], "generalPractitioner": [ { "reference": "Organization/0" } ], "managingOrganization": { "reference": "Organization/0" } } }, "problems": { "response": { "status": "200 OK" }, "resource": { "resourceType": "Bundle", "id": "e72c7adb-7665-40fa-8f04-f9e5dcaefb40", "meta": { "versionId": "20170804010316", "lastUpdated": "2017-08-04T01:03:16.705+10:00" }, "type": "searchset", "total": 2, "link": [ { "relation": "self", "url": "https://localhost.oridashi.com.au:8109/Condition?patient=8&_list=%24current-problems" }, { "relation": "last", "url": "https://localhost.oridashi.com.au:8109/Condition?patient=8&_list=%24current-problems&_page=1&_snapshot=636374053966930617" } ], "entry": [ { "fullUrl": "https://localhost.oridashi.com.au:8109/Condition/143", "resource": { "resourceType": "Condition", "id": "143", "meta": { "versionId": "20161027075650", "lastUpdated": "2016-10-27T18:56:50+11:00", "security": [ { "system": "http://hl7.org/fhir/v3/Confidentiality", "code": "N", "display": "normal" }, { "system": "http://oridashi.com.au/system/code/include-in-summary", "code": "SUMMARY", "display": "summary" } ] }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2016-10-27 Cold, common</p></div>" }, "clinicalStatus": "active", "verificationStatus": "confirmed", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "439401001", "display": "Diagnosis" } ] } ], "code": { "coding": [ { "system": "http://oridashi.com.au/system/code/bestpracticeterm", "code": "648", "display": "Cold, common" }, { "system": "http://snomed.info/sct", "code": "82272006", "display": "Cold, common" } ], "text": "Cold, common" }, "subject": { "reference": "Patient/8" }, "onsetDateTime": "2016-10-27", "abatementBoolean": false } }, { "fullUrl": "https://localhost.oridashi.com.au:8109/Condition/11", "resource": { "resourceType": "Condition", "id": "11", "meta": { "versionId": "20040210130000", "lastUpdated": "2004-02-11T00:00:00+11:00", "security": [ { "system": "http://hl7.org/fhir/v3/Confidentiality", "code": "N", "display": "normal" }, { "system": "http://oridashi.com.au/system/code/include-in-summary", "code": "SUMMARY", "display": "summary" } ] }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>2004-03-04 Osteoporosis (inactive)</p></div>" }, "clinicalStatus": "resolved", "verificationStatus": "confirmed", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "439401001", "display": "Diagnosis" } ] } ], "code": { "coding": [ { "system": "http://oridashi.com.au/system/code/bestpracticeterm", "code": "2588", "display": "Osteoporosis" }, { "system": "http://snomed.info/sct", "code": "64859006", "display": "Osteoporosis" } ], "text": "Osteoporosis" }, "subject": { "reference": "Patient/8" }, "onsetDateTime": "2004-03-04", "abatementBoolean": true } } ] } } } }
Terminology
Test names from standard sets MD/BP Media:default-pathology-requests2.xlsx