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

HdBe-TreatmentDirective2-02 example

{
    "resourceType": "Consent",
    "id": "HdBe-TreatmentDirective2-02",
    "meta": {
        "profile":  [
            "https://fhir.healthdata.be/StructureDefinition/HdBe-TreatmentDirective2"
        ]
    },
    "modifierExtension":  [
        {
            "url": "https://fhir.healthdata.be/StructureDefinition/ext-TreatmentDirective2.SpecificationOther",
            "valueString": "First consult with husband"
        }
    ],
    "status": "active",
    "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",
    "policy":  [
        {
            "uri": "https://www.belgielex.be"
        }
    ],
    "provision": {
        "actor":  [
            {
                "role": {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                            "code": "CONSENTER",
                            "display": "consenter"
                        }
                    ]
                },
                "reference": {
                    "reference": "Patient/HdBe-TreatmentDirective2-02-Patient-01",
                    "type": "Patient",
                    "display": "Patient, Jan Pieter Mark (Piet) Pietersen"
                }
            }
        ],
        "code":  [
            {
                "coding":  [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "89666000",
                        "display": "Cardiopulmonary resuscitation"
                    }
                ]
            }
        ]
    }
}
<Consent xmlns="http://hl7.org/fhir">
    <id value="HdBe-TreatmentDirective2-02" />
    <meta>
        <profile value="https://fhir.healthdata.be/StructureDefinition/HdBe-TreatmentDirective2" />
    </meta>
    <modifierExtension url="https://fhir.healthdata.be/StructureDefinition/ext-TreatmentDirective2.SpecificationOther">
        <valueString value="First consult with husband" />
    </modifierExtension>
    <status value="active" />
    <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" />
    <policy>
        <uri value="https://www.belgielex.be" />
    </policy>
    <provision>
        <actor>
            <role>
                <coding>
                    <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
                    <code value="CONSENTER" />
                    <display value="consenter" />
                </coding>
            </role>
            <reference>
                <reference value="Patient/HdBe-TreatmentDirective2-02-Patient-01" />
                <type value="Patient" />
                <display value="Patient, Jan Pieter Mark (Piet) Pietersen" />
            </reference>
        </actor>
        <code>
            <coding>
                <system value="http://snomed.info/sct" />
                <code value="89666000" />
                <display value="Cardiopulmonary resuscitation" />
            </coding>
        </code>
    </provision>
</Consent>
Consent
Consent.id[0]HdBe-TreatmentDirective2-02
Consent.meta[0].profile[0]https://fhir.healthdata.be/StructureDefinition/HdBe-TreatmentDirective2
Consent.modifierExtension[0].url[0]https://fhir.healthdata.be/StructureDefinition/ext-TreatmentDirective2.SpecificationOther
Consent.modifierExtension[0].value[0]First consult with husband
Consent.status[0]active
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.policy[0].uri[0]https://www.belgielex.be
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]Patient/HdBe-TreatmentDirective2-02-Patient-01
Consent.provision[0].actor[0].reference[0].type[0]Patient
Consent.provision[0].actor[0].reference[0].display[0]Patient, Jan Pieter Mark (Piet) Pietersen
Consent.provision[0].code[0].coding[0].system[0]http://snomed.info/sct
Consent.provision[0].code[0].coding[0].code[0]89666000
Consent.provision[0].code[0].coding[0].display[0]Cardiopulmonary resuscitation