{
    "resourceType": "MessageDefinition",
    "id": "95b337c0-9644-4b5e-accf-246636e55905",
    "url": "https://fhir.nhs.uk/MessageDefinition/bars-message-booking-request-cancelled",
    "version": "1.0.0",
    "name": "BARS Message Definition Booking - Request - Cancelled",
    "title": "BARS Message Definition Booking - Request - Cancelled",
    "status": "active",
    "date": "2025-03-24",
    "useContext":  [
        {
            "code": {
                "system": "http://terminology.hl7.org/CodeSystem/usage-context-type",
                "code": "workflow"
            },
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.uk/Id/dos-service-id",
                        "code": "dos-id"
                    }
                ]
            }
        },
        {
            "code": {
                "system": "http://terminology.hl7.org/CodeSystem/usage-context-type",
                "code": "workflow"
            },
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.uk/CodeSystem/usecases-categories-bars",
                        "code": "a1t1",
                        "display": "111 to ED"
                    }
                ]
            }
        }
    ],
    "eventCoding": {
        "system": "https://fhir.nhs.uk/CodeSystem/message-events-bars",
        "code": "booking-request"
    },
    "focus":  [
        {
            "code": "Bundle",
            "profile": "https://fhir.nhs.uk/StructureDefinition/BARSBundleMessage",
            "min": 1,
            "max": "1"
        },
        {
            "code": "MessageHeader",
            "profile": "https://fhir.nhs.uk/StructureDefinition/BARSMessageHeader-booking-request",
            "min": 1,
            "max": "1"
        },
        {
            "code": "Patient",
            "profile": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient",
            "min": 1,
            "max": "1"
        },
        {
            "code": "Organization",
            "profile": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization",
            "min": 2,
            "max": "*"
        },
        {
            "code": "Appointment",
            "profile": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Appointment",
            "min": 1,
            "max": "1"
        }
    ]
}