Important: This is a draft IG for trial use. Click here to give feedback.

HdBe-TreatmentDirective2-01 example

{
    "resourceType": "Consent",
    "id": "HdBe-TreatmentDirective2-01",
    "meta": {
        "profile":  [
            "https://fhir.healthdata.be/StructureDefinition/HdBe-TreatmentDirective2"
        ]
    },
    "status": "inactive",
    "scope": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/consentscope",
                "code": "treatment",
                "display": "Treatment"
            }
        ]
    },
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "129125009",
                    "display": "Procedure with explicit context"
                }
            ]
        }
    ],
    "patient": {
        "reference": "Patient/HdBe-Patient-01",
        "type": "Patient",
        "display": "Belle Ulijn"
    },
    "dateTime": "2012-09-11",
    "sourceReference": {
        "reference": "Consent/HdBe-TreatmentDirective2-01-Consent-01",
        "type": "Consent",
        "display": "AdvanceDirective, Power of attorney granted, 2010-05-06"
    },
    "policy":  [
        {
            "uri": "https://www.belgielex.be"
        }
    ],
    "provision": {
        "extension":  [
            {
                "url": "https://fhir.healthdata.be/StructureDefinition/ext-TreatmentDirective2.ReasonForEnding",
                "valueString": "hersteld en ontslagen"
            }
        ],
        "type": "permit",
        "period": {
            "end": "2012-10-15"
        },
        "actor":  [
            {
                "role": {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                            "code": "CONSENTER",
                            "display": "consenter"
                        }
                    ]
                },
                "reference": {
                    "reference": "RelatedPerson/HdBe-TreatmentDirective2-01-RelatedPerson-01",
                    "type": "RelatedPerson",
                    "display": "Contact person, Jan Pieter Mark (Piet) van Putten"
                }
            },
            {
                "role": {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                            "code": "CONSENTER",
                            "display": "consenter"
                        }
                    ]
                },
                "reference": {
                    "reference": "PractitionerRole/HdBe-TreatmentDirective2-01-PractitionerRole-01",
                    "type": "PractitionerRole",
                    "display": "Healthcare professional (role), J.H.R. Peters, Arts"
                }
            }
        ],
        "code":  [
            {
                "coding":  [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "305351004",
                        "display": "Admission to intensive care unit"
                    }
                ]
            }
        ]
    }
}
<Consent xmlns="http://hl7.org/fhir">
    <id value="HdBe-TreatmentDirective2-01" />
    <meta>
        <profile value="https://fhir.healthdata.be/StructureDefinition/HdBe-TreatmentDirective2" />
    </meta>
    <status value="inactive" />
    <scope>
        <coding>
            <system value="http://terminology.hl7.org/CodeSystem/consentscope" />
            <code value="treatment" />
            <display value="Treatment" />
        </coding>
    </scope>
    <category>
        <coding>
            <system value="http://snomed.info/sct" />
            <code value="129125009" />
            <display value="Procedure with explicit context" />
        </coding>
    </category>
    <patient>
        <reference value="Patient/HdBe-Patient-01" />
        <type value="Patient" />
        <display value="Belle Ulijn" />
    </patient>
    <dateTime value="2012-09-11" />
    <sourceReference>
        <reference value="Consent/HdBe-TreatmentDirective2-01-Consent-01" />
        <type value="Consent" />
        <display value="AdvanceDirective, Power of attorney granted, 2010-05-06" />
    </sourceReference>
    <policy>
        <uri value="https://www.belgielex.be" />
    </policy>
    <provision>
        <extension url="https://fhir.healthdata.be/StructureDefinition/ext-TreatmentDirective2.ReasonForEnding">
            <valueString value="hersteld en ontslagen" />
        </extension>
        <type value="permit" />
        <period>
            <end value="2012-10-15" />
        </period>
        <actor>
            <role>
                <coding>
                    <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
                    <code value="CONSENTER" />
                    <display value="consenter" />
                </coding>
            </role>
            <reference>
                <reference value="RelatedPerson/HdBe-TreatmentDirective2-01-RelatedPerson-01" />
                <type value="RelatedPerson" />
                <display value="Contact person, Jan Pieter Mark (Piet) van Putten" />
            </reference>
        </actor>
        <actor>
            <role>
                <coding>
                    <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
                    <code value="CONSENTER" />
                    <display value="consenter" />
                </coding>
            </role>
            <reference>
                <reference value="PractitionerRole/HdBe-TreatmentDirective2-01-PractitionerRole-01" />
                <type value="PractitionerRole" />
                <display value="Healthcare professional (role), J.H.R. Peters, Arts" />
            </reference>
        </actor>
        <code>
            <coding>
                <system value="http://snomed.info/sct" />
                <code value="305351004" />
                <display value="Admission to intensive care unit" />
            </coding>
        </code>
    </provision>
</Consent>
Consent
Consent.id[0]HdBe-TreatmentDirective2-01
Consent.meta[0].profile[0]https://fhir.healthdata.be/StructureDefinition/HdBe-TreatmentDirective2
Consent.status[0]inactive
Consent.scope[0].coding[0].system[0]http://terminology.hl7.org/CodeSystem/consentscope
Consent.scope[0].coding[0].code[0]treatment
Consent.scope[0].coding[0].display[0]Treatment
Consent.category[0].coding[0].system[0]http://snomed.info/sct
Consent.category[0].coding[0].code[0]129125009
Consent.category[0].coding[0].display[0]Procedure with explicit context
Consent.patient[0].reference[0]Patient/HdBe-Patient-01
Consent.patient[0].type[0]Patient
Consent.patient[0].display[0]Belle Ulijn
Consent.dateTime[0]2012-09-11
Consent.source[0].reference[0]Consent/HdBe-TreatmentDirective2-01-Consent-01
Consent.source[0].type[0]Consent
Consent.source[0].display[0]AdvanceDirective, Power of attorney granted, 2010-05-06
Consent.policy[0].uri[0]https://www.belgielex.be
Consent.provision[0].extension[0].url[0]https://fhir.healthdata.be/StructureDefinition/ext-TreatmentDirective2.ReasonForEnding
Consent.provision[0].extension[0].value[0]hersteld en ontslagen
Consent.provision[0].type[0]permit
Consent.provision[0].period[0].end[0]2012-10-15
Consent.provision[0].actor[0].role[0].coding[0].system[0]http://terminology.hl7.org/CodeSystem/v3-RoleCode
Consent.provision[0].actor[0].role[0].coding[0].code[0]CONSENTER
Consent.provision[0].actor[0].role[0].coding[0].display[0]consenter
Consent.provision[0].actor[0].reference[0].reference[0]RelatedPerson/HdBe-TreatmentDirective2-01-RelatedPerson-01
Consent.provision[0].actor[0].reference[0].type[0]RelatedPerson
Consent.provision[0].actor[0].reference[0].display[0]Contact person, Jan Pieter Mark (Piet) van Putten
Consent.provision[0].actor[1].role[0].coding[0].system[0]http://terminology.hl7.org/CodeSystem/v3-RoleCode
Consent.provision[0].actor[1].role[0].coding[0].code[0]CONSENTER
Consent.provision[0].actor[1].role[0].coding[0].display[0]consenter
Consent.provision[0].actor[1].reference[0].reference[0]PractitionerRole/HdBe-TreatmentDirective2-01-PractitionerRole-01
Consent.provision[0].actor[1].reference[0].type[0]PractitionerRole
Consent.provision[0].actor[1].reference[0].display[0]Healthcare professional (role), J.H.R. Peters, Arts
Consent.provision[0].code[0].coding[0].system[0]http://snomed.info/sct
Consent.provision[0].code[0].coding[0].code[0]305351004
Consent.provision[0].code[0].coding[0].display[0]Admission to intensive care unit