Important: This guide is currently under development 
                    This is a preview of a developing guide for information only. It is not intended to be used until the completed v1.0.0 guide is released (around the end of March 2023)
If you are interested in developing a BaRS compliant solution right now, please use the contact form here and the team will be in touch
BARS MessageDefinition ServiceRequest-RequestValidation
Defines the constraints and extensions on the UKCore-Bundle FHIR Profile
Based on: UKCore.Release1@1.0.1/package/UKCore-Bundle
Differential View
| MessageDefinition | 
| id : 7731af63-04ed-47d9-8f05-e510dece3b3f | 
| url : https://fhir.nhs.uk/MessageDefinition/bars-message-servicerequest-request-validation | 
| version : 1.0.0-alpha | 
| name : BARS Message Definition ServiceRequest - Request Validation | 
| title : BARS Message Definition ServiceRequest - Request Validation | 
| status : active | 
| date : 2021-12-08 | 
| useContext | 
| code | 
| system : https://fhir.nhs.uk/CodeSystem/dos-id | 
| code : dos-id | 
| value | 
| coding | 
| system : http://terminology.hl7.org/CodeSystem/variant-state | 
| code : positive | 
| event | 
| system : https://fhir.nhs.uk/CodeSystem/message-events-bars | 
| code : servicerequest-request | 
| focus | 
| code : Bundle | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSBundleMessage | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : MessageHeader | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSMessageHeader-servicerequest-request | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : ServiceRequest | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSServiceRequest-request-validation | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Patient | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Encounter | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : CarePlan | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Location | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Organization | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization | 
| min : 2 | 
| max : * | 
| focus | 
| code : Practitioner | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner | 
| min : 1 | 
| max : * | 
| focus | 
| code : PractitionerRole | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole | 
| min : 1 | 
| max : * | 
| focus | 
| code : Observation | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation | 
| min : 0 | 
| max : * | 
| focus | 
| code : Flag | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSFlag-scene-safety | 
| min : 1 | 
| max : * | 
| focus | 
| code : Flag | 
| profile : http://hl7.org/fhir/StructureDefinition/Flag | 
| min : 0 | 
| max : * | 
| focus | 
| code : Consent | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Consent | 
| min : 1 | 
| max : * | 
| focus | 
| code : MedicationStatement | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationStatement | 
| min : 0 | 
| max : * | 
| focus | 
| code : AllergyIntolerance | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-AllergyIntolerance | 
| min : 0 | 
| max : * | 
| focus | 
| code : HealthcareService | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-HealthcareService | 
| min : 1 | 
| max : 1 | 
Hybrid View
| MessageDefinition | 
| id : 7731af63-04ed-47d9-8f05-e510dece3b3f | 
| url : https://fhir.nhs.uk/MessageDefinition/bars-message-servicerequest-request-validation | 
| version : 1.0.0-alpha | 
| name : BARS Message Definition ServiceRequest - Request Validation | 
| title : BARS Message Definition ServiceRequest - Request Validation | 
| status : active | 
| date : 2021-12-08 | 
| useContext | 
| code | 
| system : https://fhir.nhs.uk/CodeSystem/dos-id | 
| code : dos-id | 
| value | 
| coding | 
| system : http://terminology.hl7.org/CodeSystem/variant-state | 
| code : positive | 
| event | 
| system : https://fhir.nhs.uk/CodeSystem/message-events-bars | 
| code : servicerequest-request | 
| focus | 
| code : Bundle | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSBundleMessage | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : MessageHeader | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSMessageHeader-servicerequest-request | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : ServiceRequest | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSServiceRequest-request-validation | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Patient | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Encounter | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : CarePlan | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Location | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Organization | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization | 
| min : 2 | 
| max : * | 
| focus | 
| code : Practitioner | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner | 
| min : 1 | 
| max : * | 
| focus | 
| code : PractitionerRole | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole | 
| min : 1 | 
| max : * | 
| focus | 
| code : Observation | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation | 
| min : 0 | 
| max : * | 
| focus | 
| code : Flag | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSFlag-scene-safety | 
| min : 1 | 
| max : * | 
| focus | 
| code : Flag | 
| profile : http://hl7.org/fhir/StructureDefinition/Flag | 
| min : 0 | 
| max : * | 
| focus | 
| code : Consent | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Consent | 
| min : 1 | 
| max : * | 
| focus | 
| code : MedicationStatement | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationStatement | 
| min : 0 | 
| max : * | 
| focus | 
| code : AllergyIntolerance | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-AllergyIntolerance | 
| min : 0 | 
| max : * | 
| focus | 
| code : HealthcareService | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-HealthcareService | 
| min : 1 | 
| max : 1 | 
Snapshot View
| MessageDefinition | 
| id : 7731af63-04ed-47d9-8f05-e510dece3b3f | 
| url : https://fhir.nhs.uk/MessageDefinition/bars-message-servicerequest-request-validation | 
| version : 1.0.0-alpha | 
| name : BARS Message Definition ServiceRequest - Request Validation | 
| title : BARS Message Definition ServiceRequest - Request Validation | 
| status : active | 
| date : 2021-12-08 | 
| useContext | 
| code | 
| system : https://fhir.nhs.uk/CodeSystem/dos-id | 
| code : dos-id | 
| value | 
| coding | 
| system : http://terminology.hl7.org/CodeSystem/variant-state | 
| code : positive | 
| event | 
| system : https://fhir.nhs.uk/CodeSystem/message-events-bars | 
| code : servicerequest-request | 
| focus | 
| code : Bundle | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSBundleMessage | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : MessageHeader | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSMessageHeader-servicerequest-request | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : ServiceRequest | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSServiceRequest-request-validation | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Patient | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Encounter | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : CarePlan | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Location | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location | 
| min : 1 | 
| max : 1 | 
| focus | 
| code : Organization | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization | 
| min : 2 | 
| max : * | 
| focus | 
| code : Practitioner | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner | 
| min : 1 | 
| max : * | 
| focus | 
| code : PractitionerRole | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole | 
| min : 1 | 
| max : * | 
| focus | 
| code : Observation | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation | 
| min : 0 | 
| max : * | 
| focus | 
| code : Flag | 
| profile : https://fhir.nhs.uk/StructureDefinition/BARSFlag-scene-safety | 
| min : 1 | 
| max : * | 
| focus | 
| code : Flag | 
| profile : http://hl7.org/fhir/StructureDefinition/Flag | 
| min : 0 | 
| max : * | 
| focus | 
| code : Consent | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-Consent | 
| min : 1 | 
| max : * | 
| focus | 
| code : MedicationStatement | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationStatement | 
| min : 0 | 
| max : * | 
| focus | 
| code : AllergyIntolerance | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-AllergyIntolerance | 
| min : 0 | 
| max : * | 
| focus | 
| code : HealthcareService | 
| profile : https://fhir.hl7.org.uk/StructureDefinition/UKCore-HealthcareService | 
| min : 1 | 
| max : 1 |