<Task xmlns="http://hl7.org/fhir">
    <id value="Example-DataStandardsWales-PSOM-Task-Myeloma-EQ5D5L-Response" />
    <meta>
        <profile value="https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PSOM-Task" />
    </meta>
    <identifier>
        <system value="https://acme.com/fhir/identifier/task-id" />
        <value value="111111" />
    </identifier>
    <status value="completed" />
    <intent value="plan" />
    <code>
        <coding>
            <system value="http://hl7.org/fhir/uv/sdc/CodeSystem/temp" />
            <code value="complete-questionnaire" />
        </coding>
    </code>
    <executionPeriod>
        <start value="2020-10-10" />
        <end value="2020-10-11T04:44:16+00:00" />
    </executionPeriod>
    <location>
        <reference value="Location/Example-DataStandardsWales-PSOM-Location-CadogWard" />
        <display value="CadogWard" />
    </location>
    <reasonCode>
        <coding>
            <system value="https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TriggerEventType" />
            <code value="02" />
            <display value="At the point of referral" />
        </coding>
    </reasonCode>
    <input>
        <type>
            <coding>
                <system value="https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType" />
                <code value="MDEPX004X" />
                <display value="PROMs Laterality" />
            </coding>
        </type>
        <valueCodeableConcept>
            <coding>
                <system value="https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-PROMsLaterality" />
                <code value="8" />
                <display value="N/A" />
            </coding>
        </valueCodeableConcept>
    </input>
    <input>
        <type>
            <coding>
                <system value="https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType" />
                <code value="MPRPX013X" />
                <display value="PROMs Trigger Event Date" />
            </coding>
        </type>
        <valueDateTime value="2020-10-09T17:15:33+00:00" />
    </input>
    <input>
        <type>
            <coding>
                <system value="http://hl7.org/fhir/uv/sdc/CodeSystem/temp" />
                <code value="questionnaire" />
            </coding>
        </type>
        <valueCanonical value="https://fhir.nhs.wales/Questionnaire/DataStandardsWales-PSOM-EQ5D-5L|2022014" />
    </input>
    <output>
        <type>
            <coding>
                <system value="http://hl7.org/fhir/uv/sdc/CodeSystem/temp" />
                <code value="questionnaire-response" />
            </coding>
        </type>
        <valueReference>
            <reference value="QuestionnaireResponse/le-DataStandardsWales-PSOM-QuestionnaireResponse-EQ5D5L-Response" />
            <display value="EQ5D5L answers and score" />
        </valueReference>
    </output>
</Task>
     
    
      {
    "resourceType": "Task",
    "id": "Example-DataStandardsWales-PSOM-Task-Myeloma-EQ5D5L-Response",
    "meta": {
        "profile":  [
            "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PSOM-Task"
        ]
    },
    "identifier":  [
        {
            "system": "https://acme.com/fhir/identifier/task-id",
            "value": "111111"
        }
    ],
    "status": "completed",
    "intent": "plan",
    "code": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/temp",
                "code": "complete-questionnaire"
            }
        ]
    },
    "executionPeriod": {
        "start": "2020-10-10",
        "end": "2020-10-11T04:44:16+00:00"
    },
    "location": {
        "reference": "Location/Example-DataStandardsWales-PSOM-Location-CadogWard",
        "display": "CadogWard"
    },
    "reasonCode": {
        "coding":  [
            {
                "system": "https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TriggerEventType",
                "code": "02",
                "display": "At the point of referral"
            }
        ]
    },
    "input":  [
        {
            "type": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType",
                        "code": "MDEPX004X",
                        "display": "PROMs Laterality"
                    }
                ]
            },
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-PROMsLaterality",
                        "code": "8",
                        "display": "N/A"
                    }
                ]
            }
        },
        {
            "type": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.wales/CodeSystem/DataStandardsWales-PSOM-TaskInputType",
                        "code": "MPRPX013X",
                        "display": "PROMs Trigger Event Date"
                    }
                ]
            },
            "valueDateTime": "2020-10-09T17:15:33+00:00"
        },
        {
            "type": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/temp",
                        "code": "questionnaire"
                    }
                ]
            },
            "valueCanonical": "https://fhir.nhs.wales/Questionnaire/DataStandardsWales-PSOM-EQ5D-5L|2022014"
        }
    ],
    "output":  [
        {
            "type": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/temp",
                        "code": "questionnaire-response"
                    }
                ]
            },
            "valueReference": {
                "reference": "QuestionnaireResponse/le-DataStandardsWales-PSOM-QuestionnaireResponse-EQ5D5L-Response",
                "display": "EQ5D5L answers and score"
            }
        }
    ]
}