BARS MessageDefinition ServiceRequest-ResponseValidationFull
<MessageDefinition xmlns="http://hl7.org/fhir"> <id value="15b429dc-2464-42ca-b401-4c2a5e8320aa" /> <url value="https://fhir.nhs.uk/MessageDefinition/bars-message-servicerequest-response-validation-full" /> <version value="1.0.0-alpha" /> <name value="BARS Message Definition ServiceRequest - Response Validation Full" /> <title value="BARS Message Definition ServiceRequest - Response Validation Full" /> <status value="active" /> <date value="2022-05-31" /> <useContext> <!-- We are expecting the UseContext to be a DOS ID --> <code> <system value="https://fhir.nhs.uk/CodeSystem/dos-id" /> <code value="dos-id" /> </code> <valueCodeableConcept> <coding> <system value="http://terminology.hl7.org/CodeSystem/variant-state" /> <code value="positive" /> </coding> </valueCodeableConcept> </useContext> <eventCoding> <system value="https://fhir.nhs.uk/CodeSystem/message-events-bars" /> <code value="servicerequest-response" /> </eventCoding> <focus> <code value="Bundle" /> <profile value="https://fhir.nhs.uk/StructureDefinition/BARSBundleMessage" /> <min value="1" /> <max value="1" /> </focus> <focus> <code value="MessageHeader" /> <profile value="https://fhir.nhs.uk/StructureDefinition/BARSMessageHeader-servicerequest-response" /> <min value="1" /> <max value="1" /> </focus> <focus> <code value="ServiceRequest" /> <profile value="https://fhir.nhs.uk/StructureDefinition/BARSServiceRequest-request-validation" /> <min value="1" /> <max value="1" /> </focus> <focus> <code value="Patient" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" /> <min value="1" /> <max value="1" /> </focus> <focus> <code value="Encounter" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter" /> <min value="2" /> <max value="3" /> </focus> <focus> <code value="CarePlan" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan" /> <min value="1" /> <max value="1" /> </focus> <focus> <code value="Location" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location" /> <min value="1" /> <max value="1" /> </focus> <focus> <code value="Organization" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> <min value="2" /> <max value="*" /> </focus> <focus> <code value="Practitioner" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> <min value="1" /> <max value="*" /> </focus> <focus> <code value="PractitionerRole" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> <min value="1" /> <max value="*" /> </focus> <focus> <code value="Observation" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation" /> <min value="0" /> <max value="*" /> </focus> <focus> <code value="Flag" /> <profile value="https://fhir.nhs.uk/StructureDefinition/BARSFlag-scene-safety" /> <min value="1" /> <max value="*" /> </focus> <focus> <code value="Flag" /> <profile value="http://hl7.org/fhir/StructureDefinition/Flag" /> <min value="0" /> <max value="*" /> </focus> <focus> <code value="Consent" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Consent" /> <min value="1" /> <max value="*" /> </focus> <focus> <code value="MedicationStatement" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationStatement" /> <min value="0" /> <max value="*" /> </focus> <focus> <code value="AllergyIntolerance" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-AllergyIntolerance" /> <min value="0" /> <max value="*" /> </focus> <focus> <code value="HealthcareService" /> <profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-HealthcareService" /> <min value="1" /> <max value="1" /> </focus> </MessageDefinition>