Stream: implementers
Topic: Consent and Patient
Manjeet Singh (Jan 19 2020 at 04:47):
Hi
i am trying to refer 'consent' resource in 'patient' resource.
POST for both the payloads are successful.
But when i am GETting the patient resource (using _revinclude=Consent:patient) by below query
'https://localhost:44348/Patient?identifier=http://ns.electronichealth.net.au/id/hi/ihi/1.0|123456789&_revinclude=Consent:patient'
patient resource is not including consent. Only patient details are returned.
Consent resource:
<Consent xmlns="http://hl7.org/fhir">
<id value="consent-example-basic"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<p>
Authorize Normal access for Treatment
</p>
<p>
Patient "P. van de Heuvel" wishes to have all of the PHI collected at the
Good Health Psychiatric Hospital
available for normal treatment use.
</p>
</div>
</text>
<status value="active"/>
<scope>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/consentscope"/>
<code value="patient-privacy"/>
</coding>
</scope>
<category>
<coding>
<system value="http://loinc.org"/>
<code value="59284-0"/>
</coding>
</category>
<patient>
<reference value="Patient/9290fff0-459d-4061-bf0f-6796a68b3155"/>
<display value="manjeet singh"/>
</patient>
<dateTime value="2016-05-11"/>
<organization>
<reference value="Organization/588844"/>
</organization>
..................................
</Consent>
I am using microsoft FHIR server. Is reference implemeted in Microsoft FHIR server?
Michele Mottini (Jan 19 2020 at 04:49):
Is that the Consent resource you are getting back from the server?
Manjeet Singh (Jan 19 2020 at 04:50):
no this is my 'POST' (input)
for consent
Michele Mottini (Jan 19 2020 at 04:51):
What does the server gives you for the Consent you created?
Manjeet Singh (Jan 19 2020 at 04:55):
https://localhost:44348/Consent/d22402f9-1c30-4bc0-87e6-e4e5f10fc85c
{
"resourceType": "Consent",
"id": "d22402f9-1c30-4bc0-87e6-e4e5f10fc85c",
"meta": {
"versionId": "1",
"lastUpdated": "2020-01-19T00:34:49.713+00:00"
},
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Authorize Normal access for Treatment</p><p>Patient \"P. van de Heuvel\"wishes to have all of the PHI collected at theGood Health Psychiatric Hospital available for normal treatment use.</p></div>"
},
"status": "active",
"scope": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/consentscope",
"code": "patient-privacy"
}
]
},
"category": [
{
"coding": [
{
"system": "http://loinc.org",
"code": "59284-0"
}
]
}
],
"patient": {
"reference": "Patient/9290fff0-459d-4061-bf0f-6796a68b3155",
"display": "manu singh"
},
"dateTime": "2016-05-11",
"organization": [
{
"reference": "Organization/588844"
}
],
"sourceAttachment": {
"title": "The terms of the consent in lawyer speak."
},
"policyRule": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "OPTIN"
}
]
},
"provision": {
"period": {
"start": "2020-01-13",
"end": "2020-01-20"
}
}
}
Michele Mottini (Jan 19 2020 at 05:02):
OK, so the patient reference is there - and if you try GET https://localhost:44348/Patient/9290fff0-459d-4061-bf0f-6796a68b3155
you get back your patient?
Michele Mottini (Jan 19 2020 at 05:03):
If that's the case I'd say the server does not support reverse includes - or it has a bug
Manjeet Singh (Jan 19 2020 at 05:07):
i am getting back data
{
"resourceType": "Patient",
"id": "9290fff0-459d-4061-bf0f-6796a68b3155",
"meta": {
"versionId": "1",
"lastUpdated": "2020-01-19T00:30:02.733+00:00"
},
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example0</p><p><b>identifier</b>: IHI = 1234567890123456</p><p><b>name</b>: Manu singh</p><p><b>telecom</b>: manusingh@gmail.com</p><p><b>gender</b>: male</p><p><b>birthDate</b>: 1980-10-10</p><p><b>address</b>: Address Australia (HOME)</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": [
{
"extension": [
{
"url": "http://ns.electronichealth.net.au/id/hi/ihi/1.0/StructureDefinition/ihi-status",
"valueCoding": {
"system": "http://ns.electronichealth.net.au/fhir/CodeSystem/hi/ihi/ihi-status/1.0.0",
"code": "Active",
"display": "Active"
}
},
{
"url": "http://ns.electronichealth.net.au/id/hi/ihi/1.0/StructureDefinition/ihi-record-status",
"valueCoding": {
"system": "http://ns.electronichealth.net.au/fhir/CodeSystem/hi/ihi/ihi-record-status/1.0.0",
"code": "Verified",
"display": "Verified"
}
}
],
"type": {
"coding": [
{
"system": "http://hl7.org/fhir/v2/0203",
"code": "NI",
"display": "National unique individual identifier"
}
],
"text": "IHI"
},
"system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
"value": "1234567890123456"
},
{
"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": "32788511952",
"period": {
"end": "2019-05"
}
},
{
"type": {
"coding": [
{
"system": "http://hl7.org/fhir/v2/0203",
"code": "HC",
"display": "Health Care Card"
}
],
"text": "Health Care Card Number"
},
"system": "http://ns.electronichealth.net.au/id/crn",
"value": "307111942H"
}
],
"name": [
{
"family": "Singh",
"given": [
"Manu"
]
}
],
"telecom": [
{
"system": "email",
"value": "manusingh@amail.com",
"use": "work"
}
],
"gender": "male",
"birthDate": "1980-10-10",
"address": [
{
"use": "home",
"line": [
"6 farhnam court"
],
"city": "flemington",
"state": "VIC",
"postalCode": "3000",
"country": "Australia"
}
]
}
Michele Mottini (Jan 19 2020 at 05:10):
Yes - bug, or reverse include not implemented - @Michael Hansen
Manjeet Singh (Jan 19 2020 at 05:11):
I was hoping that it is Microsoft server 'https://github.com/microsoft/fhir-server', so it must be supporting it.
Michele Mottini (Jan 19 2020 at 05:15):
Is it supposed to support reverse includes? I myself do not know
Manjeet Singh (Jan 19 2020 at 05:15):
thanks Michele for the information. Much appreciate
Manjeet Singh (Jan 19 2020 at 05:16):
Let me see if I can get any information from somewhere else regarding this. Thanks again. if resolved, will post it here as well.
Michael Hansen (Jan 19 2020 at 07:23):
It does not support reverse include, yet:
https://docs.microsoft.com/en-us/azure/healthcare-apis/fhir-features-supported
David Hay (Jan 19 2020 at 17:27):
The CapabilityStatement should also indicate this...
Last updated: Apr 12 2022 at 19:14 UTC