@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Referral> a fhir:StructureDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Referral"] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition Referral</b></p><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"xhtTableBorder0\"><tr class=\"xhtRowBorder1\"><th scope=\"col\" style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th scope=\"col\" style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th scope=\"col\" style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th scope=\"col\" style=\"; width: 100px\" class=\"hierarchy xhtCellBorder0\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th scope=\"col\" style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck1.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Referral-definitions.html#Referral\" title=\"**Proof of concept - not an authoritative source.**#xA;#xA;The information exchanged during a closed loop referral, from the referral request to#xA;the referral outcome. Based on the data items of the#xA;[IHE 360X](https://www.ihe.net/uploadedFiles/Documents/PCC/IHE_PCC_Suppl_360X.pdf)#xA;transactions (PCC TF-2 3.55 to 3.61), FHIR Workflow and HL7 v2 orders, with the UBRN#xA;from [eRS](https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir).#xA;It is the same for a referral to an outpatient clinic, a community service or a#xA;[virtual ward](VirtualWards.html). National services such as BaRS are mapped onto this#xA;model (see the [BaRS review](BaRS.html)), not the other way round. The PRSB#xA;[Clinical Referral Information Standard](https://theprsb.org/standards/clinical-referral-information-standard/)#xA;v1.0 gives the clinical headings.#xA;#xA;The referral stays small: the clinical content is in separate documents referenced as#xA;supporting information - a [Discharge Report](StructureDefinition-DischargeReport.html)#xA;or clinic letter for the episode, a [Patient Summary](StructureDefinition-PatientSummary.html)#xA;and referral forms. A referral may be one activity of a#xA;[Care Plan](StructureDefinition-CarePlanModel.html).#xA;#xA;The **Mappings** tab shows each element in HL7 v2 (360X) and FHIR.\">Referral</a><a name=\"Referral\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\"><span class=\"xhtPieceDeEmphasized\">0</span><span class=\"xhtPieceDeEmphasized\">..</span><span class=\"xhtPieceDeEmphasized\">*</span></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://build.fhir.org/types.html#Base\">Base</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Clinical Referral<br/><span class=\"xhtPieceBold\">Instances of this type can be the target of a Reference</span></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.referralId\" title=\"Unique identifier assigned by the Referral Initiator, used in every message about the referral\">referralId</a><a name=\"Referral.referralId\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referral ID</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.ubrn\" title=\"eRS identifier, if the referral was made through eRS\">ubrn</a><a name=\"Referral.ubrn\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Unique Booking Reference Number</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck11.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.patient\" title=\"The patient referred\">patient</a><a name=\"Referral.patient\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#BackboneElement\">BackboneElement</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Patient</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.patient.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.patient.nhsNumber\" title=\"Traced NHS Number\">nhsNumber</a><a name=\"Referral.patient.nhsNumber\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">NHS Number</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.patient.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.patient.localIdentifier\" title=\"Referral Initiator's identifier (360X sourcePatientId), and any identifier the Referral Recipient adds\">localIdentifier</a><a name=\"Referral.patient.localIdentifier\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..*</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Local patient identifier<br/></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck100.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.patient.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.patient.demographics\" title=\"Name, date of birth, sex, address\">demographics</a><a name=\"Referral.patient.demographics\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#BackboneElement\">BackboneElement</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Demographics</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck11.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.referrer\" title=\"The Referral Initiator\">referrer</a><a name=\"Referral.referrer\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#BackboneElement\">BackboneElement</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referrer</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.referrer.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.referrer.clinician\" title=\"Professional registration or GP code\">clinician</a><a name=\"Referral.referrer.clinician\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referring clinician</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck100.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.referrer.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.referrer.organisation\" title=\"ODS code\">organisation</a><a name=\"Referral.referrer.organisation\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referring organisation</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck11.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.recipient\" title=\"The Referral Recipient\">recipient</a><a name=\"Referral.recipient\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#BackboneElement\">BackboneElement</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referred to</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.recipient.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.recipient.service\" title=\"eRS service ID, Directory of Services ID or local service\">service</a><a name=\"Referral.recipient.service\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Service</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.recipient.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.recipient.clinician\" title=\"Named clinician, if any\">clinician</a><a name=\"Referral.recipient.clinician\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Clinician</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck100.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.recipient.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.recipient.organisation\" title=\"ODS code\">organisation</a><a name=\"Referral.recipient.organisation\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Organisation</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.serviceRequested\" title=\"Specialty, clinic type or referral procedure\">serviceRequested</a><a name=\"Referral.serviceRequested\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Service requested</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.priority\" title=\"routine, urgent, urgent suspected cancer, two week wait\">priority</a><a name=\"Referral.priority\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Priority</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.expectedBy\" title=\"The date by which the service should be provided (urgency converted to a date)\">expectedBy</a><a name=\"Referral.expectedBy\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Expected service provision time</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.validityPeriod\" title=\"Period the referral is valid for\">validityPeriod</a><a name=\"Referral.validityPeriod\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Period\">Period</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Validity</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.reasonForReferral\" title=\"Coded (SNOMED CT) or text\">reasonForReferral</a><a name=\"Referral.reasonForReferral\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..*</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Reason for referral<br/></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.referralQuestion\" title=\"The clinical question for the Referral Recipient\">referralQuestion</a><a name=\"Referral.referralQuestion\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referral question</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.clinicalDocument\" title=\"The referrer's account of the episode that led to the referral - Discharge Report (HL7 Europe HDR) or clinic letter\">clinicalDocument</a><a name=\"Referral.clinicalDocument\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..*</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a> | <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a>)</td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Clinical document<br/></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.patientSummary\" title=\"The patient's background (HL7 Europe Patient Summary), when the recipient cannot query the record\">patientSummary</a><a name=\"Referral.patientSummary\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a> | <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a>)</td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Patient summary</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.forms\" title=\"Forms completed for the referral - see Referral Forms\">forms</a><a name=\"Referral.forms\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..*</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\">QuestionnaireResponse</a>)</td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referral forms<br/></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.observations\" title=\"Findings needed by the recipient, e.g. vital signs\">observations</a><a name=\"Referral.observations\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..*</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-Observation.html\">Observation</a>)</td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Observations<br/></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.carePlan\" title=\"The care plan this referral carries out, if any\">carePlan</a><a name=\"Referral.carePlan\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/careplan.html\">CarePlan</a>)</td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Care plan</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.dateOfReferral\" title=\"When the referral was made\">dateOfReferral</a><a name=\"Referral.dateOfReferral\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Date of referral</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.status\" title=\"360X state - see Referral Workflow Status\">status</a><a name=\"Referral.status\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referral status</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.statusReason\" title=\"Free text at least\">statusReason</a><a name=\"Referral.statusReason\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Reason for decline or cancellation</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck11.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.appointment\" title=\"Appointments booked to carry out the referral\">appointment</a><a name=\"Referral.appointment\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..*</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#BackboneElement\">BackboneElement</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Appointment<br/></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.appointment.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.appointment.appointmentId\" title=\"Unique identifier of the appointment\">appointmentId</a><a name=\"Referral.appointment.appointmentId\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Appointment ID</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.appointment.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.appointment.dateTime\" title=\"At least the date\">dateTime</a><a name=\"Referral.appointment.dateTime\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Appointment date and time</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck110.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.appointment.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.appointment.provider\" title=\"Clinician or service seeing the patient\">provider</a><a name=\"Referral.appointment.provider\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Appointment provider</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck100.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.appointment.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.appointment.status\" title=\"booked, rescheduled, cancelled, no-show\">status</a><a name=\"Referral.appointment.status\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">1..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Appointment status</td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowOdd\"><td style=\"background-image: url(tbl_bck10.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\"\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.interimNote\" title=\"Results sent before the end of care\">interimNote</a><a name=\"Referral.interimNote\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..*</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a> | <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a>)</td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Interim consultation note<br/></td></tr>#xD;\n<tr class=\"xhtRowBorder0 xhtRowEven\"><td style=\"background-image: url(tbl_bck00.png)\" class=\"hierarchy xhtCellBorder0 xhtCellNoWrap\"><img src=\"tbl_spacer.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\"\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\"\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <span style=\"position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0\" class=\"sr-only\">Referral.</span><a href=\"StructureDefinition-Referral-definitions.html#Referral.outcome\" title=\"Report that closes the loop - consultation note, discharge report or care plan\">outcome</a><a name=\"Referral.outcome\"> </a></td><td style=\"\" class=\"hierarchy xhtCellBorder0\"/><td style=\"\" class=\"hierarchy xhtCellBorder0\">0..1</td><td style=\"\" class=\"hierarchy xhtCellBorder0\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a> | <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a>)</td><td style=\"\" class=\"hierarchy xhtCellBorder0\">Referral outcome</td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics" ] ;
     fhir:Extension.valueCode [ fhir:value "can-be-target" ]
  ] ;
  fhir:StructureDefinition.url [ fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Referral"] ;
  fhir:StructureDefinition.version [ fhir:value "0.1.0"] ;
  fhir:StructureDefinition.name [ fhir:value "Referral"] ;
  fhir:StructureDefinition.title [ fhir:value "Clinical Referral"] ;
  fhir:StructureDefinition.status [ fhir:value "draft"] ;
  fhir:StructureDefinition.experimental [ fhir:value "true"^^xsd:boolean] ;
  fhir:StructureDefinition.date [ fhir:value "2026-11-03T05:48:20+00:00"^^xsd:dateTime] ;
  fhir:StructureDefinition.publisher [ fhir:value "Kevin Mayfield"] ;
  fhir:StructureDefinition.contact [
     fhir:index -1 ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://github.com/KevinMayfield/PatientCareCoordination" ]
     ]
  ] ;
  fhir:StructureDefinition.description [ fhir:value "**Proof of concept - not an authoritative source.**\n\nThe information exchanged during a closed loop referral, from the referral request to\nthe referral outcome. Based on the data items of the\n[IHE 360X](https://www.ihe.net/uploadedFiles/Documents/PCC/IHE_PCC_Suppl_360X.pdf)\ntransactions (PCC TF-2 3.55 to 3.61), FHIR Workflow and HL7 v2 orders, with the UBRN\nfrom [eRS](https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir).\nIt is the same for a referral to an outpatient clinic, a community service or a\n[virtual ward](VirtualWards.html). National services such as BaRS are mapped onto this\nmodel (see the [BaRS review](BaRS.html)), not the other way round. The PRSB\n[Clinical Referral Information Standard](https://theprsb.org/standards/clinical-referral-information-standard/)\nv1.0 gives the clinical headings.\n\nThe referral stays small: the clinical content is in separate documents referenced as\nsupporting information - a [Discharge Report](StructureDefinition-DischargeReport.html)\nor clinic letter for the episode, a [Patient Summary](StructureDefinition-PatientSummary.html)\nand referral forms. A referral may be one activity of a\n[Care Plan](StructureDefinition-CarePlanModel.html).\n\nThe **Mappings** tab shows each element in HL7 v2 (360X) and FHIR."] ;
  fhir:StructureDefinition.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "GB" ] ;
       fhir:Coding.display [ fhir:value "United Kingdom of Great Britain and Northern Ireland" ]
     ]
  ] ;
  fhir:StructureDefinition.fhirVersion [ fhir:value "4.0.1"] ;
  fhir:StructureDefinition.mapping [
     fhir:index -1 ;
     fhir:StructureDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
     fhir:StructureDefinition.mapping.uri [ fhir:value "https://www.ihe.net/uploadedFiles/Documents/PCC/IHE_PCC_Suppl_360X.pdf" ] ;
     fhir:StructureDefinition.mapping.name [ fhir:value "HL7 v2.5.1 (IHE 360X)" ]
  ], [
     fhir:index -1 ;
     fhir:StructureDefinition.mapping.identity [ fhir:value "fhir" ] ;
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/R4" ] ;
     fhir:StructureDefinition.mapping.name [ fhir:value "FHIR R4" ]
  ], [
     fhir:index -1 ;
     fhir:StructureDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
     fhir:StructureDefinition.mapping.uri [ fhir:value "https://theprsb.org/standards/clinical-referral-information-standard/" ] ;
     fhir:StructureDefinition.mapping.name [ fhir:value "PRSB Clinical Referral Information Standard v1.0" ]
  ] ;
  fhir:StructureDefinition.kind [ fhir:value "logical"] ;
  fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean] ;
  fhir:StructureDefinition.type [ fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Referral"] ;
  fhir:StructureDefinition.baseDefinition [
     fhir:value "http://hl7.org/fhir/StructureDefinition/Base" ;
     fhir:link <http://hl7.org/fhir/StructureDefinition/Base>
  ] ;
  fhir:StructureDefinition.derivation [ fhir:value "specialization"] ;
  fhir:StructureDefinition.snapshot [
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version" ] ;
       fhir:Extension.valueString [ fhir:value "4.0.1" ]
     ] ;
     fhir:StructureDefinition.snapshot.element [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral" ] ;
       fhir:ElementDefinition.short [ fhir:value "Clinical Referral" ] ;
       fhir:ElementDefinition.definition [ fhir:value "**Proof of concept - not an authoritative source.**\n\nThe information exchanged during a closed loop referral, from the referral request to\nthe referral outcome. Based on the data items of the\n[IHE 360X](https://www.ihe.net/uploadedFiles/Documents/PCC/IHE_PCC_Suppl_360X.pdf)\ntransactions (PCC TF-2 3.55 to 3.61), FHIR Workflow and HL7 v2 orders, with the UBRN\nfrom [eRS](https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir).\nIt is the same for a referral to an outpatient clinic, a community service or a\n[virtual ward](VirtualWards.html). National services such as BaRS are mapped onto this\nmodel (see the [BaRS review](BaRS.html)), not the other way round. The PRSB\n[Clinical Referral Information Standard](https://theprsb.org/standards/clinical-referral-information-standard/)\nv1.0 gives the clinical headings.\n\nThe referral stays small: the clinical content is in separate documents referenced as\nsupporting information - a [Discharge Report](StructureDefinition-DischargeReport.html)\nor clinic letter for the episode, a [Patient Summary](StructureDefinition-PatientSummary.html)\nand referral forms. A referral may be one activity of a\n[Care Plan](StructureDefinition-CarePlanModel.html).\n\nThe **Mappings** tab shows each element in HL7 v2 (360X) and FHIR." ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Base" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Sections: GP Practice (M), Patient Demographics (M), Referral Details (M), Reason for referral (M), Allergies and adverse reactions (M), Person completing record (M); Individual requirements, Medications and medical devices, Safety Alerts, Person concerns, expectations and wishes, Legal Information, Information and advice given, Participation in research (R); Family History, Social Context, Examination Findings, Assessment Scales, Relevant clinical risk factors, Investigations and results, Distribution list (O). Referral Details sub-elements from the Core Information Standard v2.01. Mapping indicative - To confirm" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referralId" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referralId" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral ID" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique identifier assigned by the Referral Initiator, used in every message about the referral" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.referralId" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-2 and OBR-2 (OMG^O19); ORC-2 (OSU^O51); SCH-26 (SIU)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.identifier:referralId; Task.basedOn.identifier; Appointment.basedOn.identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.ubrn" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.ubrn" ] ;
       fhir:ElementDefinition.short [ fhir:value "Unique Booking Reference Number" ] ;
       fhir:ElementDefinition.definition [ fhir:value "eRS identifier, if the referral was made through eRS" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.ubrn" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Not in 360X; NHS: ORC-2 or OBR-2 repetition with UBRN assigning authority (To confirm)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.identifier:ubrn" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient" ] ;
       fhir:ElementDefinition.short [ fhir:value "Patient" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The patient referred" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.patient" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.subject (Patient)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient Demographics; GP Practice" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.id" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.id" ] ;
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:Extension.valueUrl [ fhir:value "string" ]
         ] ;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.extension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.extension" ] ;
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index -1 ;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
         ] ;
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.modifierExtension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.modifierExtension" ] ;
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ], [
         fhir:value "modifiers" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.nhsNumber" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.nhsNumber" ] ;
       fhir:ElementDefinition.short [ fhir:value "NHS Number" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Traced NHS Number" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.patient.nhsNumber" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-3 (assigning authority NHS)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient.identifier:nhsNumber" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.localIdentifier" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.localIdentifier" ] ;
       fhir:ElementDefinition.short [ fhir:value "Local patient identifier" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Referral Initiator's identifier (360X sourcePatientId), and any identifier the Referral Recipient adds" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.patient.localIdentifier" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-3" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient.identifier:MedicalRecordNumber" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.demographics" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.demographics" ] ;
       fhir:ElementDefinition.short [ fhir:value "Demographics" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Name, date of birth, sex, address" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.patient.demographics" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-5, PID-7, PID-8, PID-11" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient.name, birthDate, gender, address" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referrer" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The Referral Initiator" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.referrer" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Referrer details; Person completing record" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer.id" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer.id" ] ;
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:Extension.valueUrl [ fhir:value "string" ]
         ] ;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer.extension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer.extension" ] ;
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index -1 ;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
         ] ;
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer.modifierExtension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer.modifierExtension" ] ;
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ], [
         fhir:value "modifiers" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer.clinician" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer.clinician" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referring clinician" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Professional registration or GP code" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.referrer.clinician" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-12 and OBR-16" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.requester (PractitionerRole.practitioner)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer.organisation" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer.organisation" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referring organisation" ] ;
       fhir:ElementDefinition.definition [ fhir:value "ODS code" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.referrer.organisation" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-21 (required in this guide) / MSH-4" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.requester (PractitionerRole.organization)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referred to" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The Referral Recipient" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.recipient" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "MSH-5 / MSH-6" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.performer; Task.owner" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Referral to" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.id" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.id" ] ;
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:Extension.valueUrl [ fhir:value "string" ]
         ] ;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.extension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.extension" ] ;
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index -1 ;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
         ] ;
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.modifierExtension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.modifierExtension" ] ;
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ], [
         fhir:value "modifiers" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.service" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.service" ] ;
       fhir:ElementDefinition.short [ fhir:value "Service" ] ;
       fhir:ElementDefinition.definition [ fhir:value "eRS service ID, Directory of Services ID or local service" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.recipient.service" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.clinician" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.clinician" ] ;
       fhir:ElementDefinition.short [ fhir:value "Clinician" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Named clinician, if any" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.recipient.clinician" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.organisation" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.organisation" ] ;
       fhir:ElementDefinition.short [ fhir:value "Organisation" ] ;
       fhir:ElementDefinition.definition [ fhir:value "ODS code" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.recipient.organisation" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.serviceRequested" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.serviceRequested" ] ;
       fhir:ElementDefinition.short [ fhir:value "Service requested" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Specialty, clinic type or referral procedure" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.serviceRequested" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBR-4 (360X default LOINC 57133-1 Referral note)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.code" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Referral to; Referral criteria" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.priority" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.priority" ] ;
       fhir:ElementDefinition.short [ fhir:value "Priority" ] ;
       fhir:ElementDefinition.definition [ fhir:value "routine, urgent, urgent suspected cancer, two week wait" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.priority" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-9" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.priority" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Clinical urgency of referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.expectedBy" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.expectedBy" ] ;
       fhir:ElementDefinition.short [ fhir:value "Expected service provision time" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The date by which the service should be provided (urgency converted to a date)" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.expectedBy" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-8" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.occurrenceDateTime" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Clinical urgency of referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.validityPeriod" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.validityPeriod" ] ;
       fhir:ElementDefinition.short [ fhir:value "Validity" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Period the referral is valid for" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.validityPeriod" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-6" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.restriction.period (or ServiceRequest.occurrencePeriod)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.reasonForReferral" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.reasonForReferral" ] ;
       fhir:ElementDefinition.short [ fhir:value "Reason for referral" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Coded (SNOMED CT) or text" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.reasonForReferral" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBR-31" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.reasonCode / reasonReference" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Reason for referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referralQuestion" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referralQuestion" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral question" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The clinical question for the Referral Recipient" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.referralQuestion" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBX-5 (OBX-11 O, OBX-29 QST)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.note" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Reason for referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.clinicalDocument" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.clinicalDocument" ] ;
       fhir:ElementDefinition.short [ fhir:value "Clinical document" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The referrer's account of the episode that led to the referral - Discharge Report (HL7 Europe HDR) or clinic letter" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.clinicalDocument" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "CDA document in the XDM package (360X); NHS: OBX type ED or RP, or MDM^T02" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (Bundle - HL7 Europe HDR, or DocumentReference)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Examination Findings; Investigations and results; Relevant clinical risk factors; Information and advice given" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patientSummary" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patientSummary" ] ;
       fhir:ElementDefinition.short [ fhir:value "Patient summary" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The patient's background (HL7 Europe Patient Summary), when the recipient cannot query the record" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.patientSummary" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "CDA document in the XDM package (360X); NHS: OBX type ED or RP" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (Bundle - HL7 Europe EPS, or DocumentReference)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Allergies and adverse reactions; Medications and medical devices; Safety Alerts; Legal Information; Individual requirements; Family History; Social Context" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.forms" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.forms" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral forms" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Forms completed for the referral - see Referral Forms" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.forms" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBX (ask at order entry)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (QuestionnaireResponse)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Assessment Scales" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.observations" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.observations" ] ;
       fhir:ElementDefinition.short [ fhir:value "Observations" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Findings needed by the recipient, e.g. vital signs" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.observations" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Observation" ;
           fhir:index -1 ;
           fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Observation>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBX" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (Observation)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Examination Findings; Investigations and results" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.carePlan" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.carePlan" ] ;
       fhir:ElementDefinition.short [ fhir:value "Care plan" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The care plan this referral carries out, if any" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.carePlan" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CarePlan" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/CarePlan>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.basedOn (CarePlan)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.dateOfReferral" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.dateOfReferral" ] ;
       fhir:ElementDefinition.short [ fhir:value "Date of referral" ] ;
       fhir:ElementDefinition.definition [ fhir:value "When the referral was made" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.dateOfReferral" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-9" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.authoredOn" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Date" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.status" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.status" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral status" ] ;
       fhir:ElementDefinition.definition [ fhir:value "360X state - see Referral Workflow Status" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.status" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-1 / ORC-5" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.businessStatus (and Task.status, ServiceRequest.status)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.statusReason" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.statusReason" ] ;
       fhir:ElementDefinition.short [ fhir:value "Reason for decline or cancellation" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Free text at least" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.statusReason" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-16" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.statusReason" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Appointments booked to carry out the referral" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.appointment" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment (basedOn the ServiceRequest)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.id" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.id" ] ;
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:Extension.valueUrl [ fhir:value "string" ]
         ] ;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.extension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.extension" ] ;
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index -1 ;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
         ] ;
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
       ] ;
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.modifierExtension" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.modifierExtension" ] ;
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
       fhir:ElementDefinition.alias [
         fhir:value "extensions" ;
         fhir:index -1
       ], [
         fhir:value "user content" ;
         fhir:index -1
       ], [
         fhir:value "modifiers" ;
         fhir:index -1
       ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
       ] ;
       fhir:ElementDefinition.constraint [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
         ]
       ] ;
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.appointmentId" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.appointmentId" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment ID" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique identifier of the appointment" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.appointment.appointmentId" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "SCH-2" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.dateTime" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.dateTime" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment date and time" ] ;
       fhir:ElementDefinition.definition [ fhir:value "At least the date" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.appointment.dateTime" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-7" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.start" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.provider" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.provider" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment provider" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Clinician or service seeing the patient" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.appointment.provider" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "AIP-3" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.participant.actor" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.status" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.status" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment status" ] ;
       fhir:ElementDefinition.definition [ fhir:value "booked, rescheduled, cancelled, no-show" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.appointment.status" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "SIU trigger S12 / S13 / S15 / S26 (RGS-2)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.status" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.interimNote" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.interimNote" ] ;
       fhir:ElementDefinition.short [ fhir:value "Interim consultation note" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Results sent before the end of care" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.interimNote" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OSU^O51 (ORC-1 SC, ORC-5 A) with document" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.output (clinical document - Composition with HL7 Europe HDR section codes)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.outcome" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.outcome" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral outcome" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Report that closes the loop - consultation note, discharge report or care plan" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Referral.outcome" ] ;
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OSU^O51 (ORC-1 SC, ORC-5 CM) with document" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.output (Discharge Report - HL7 Europe HDR, or clinic letter)" ]
       ]
     ]
  ] ;
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.differential.element [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral" ] ;
       fhir:ElementDefinition.short [ fhir:value "Clinical Referral" ] ;
       fhir:ElementDefinition.definition [ fhir:value "**Proof of concept - not an authoritative source.**\n\nThe information exchanged during a closed loop referral, from the referral request to\nthe referral outcome. Based on the data items of the\n[IHE 360X](https://www.ihe.net/uploadedFiles/Documents/PCC/IHE_PCC_Suppl_360X.pdf)\ntransactions (PCC TF-2 3.55 to 3.61), FHIR Workflow and HL7 v2 orders, with the UBRN\nfrom [eRS](https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir).\nIt is the same for a referral to an outpatient clinic, a community service or a\n[virtual ward](VirtualWards.html). National services such as BaRS are mapped onto this\nmodel (see the [BaRS review](BaRS.html)), not the other way round. The PRSB\n[Clinical Referral Information Standard](https://theprsb.org/standards/clinical-referral-information-standard/)\nv1.0 gives the clinical headings.\n\nThe referral stays small: the clinical content is in separate documents referenced as\nsupporting information - a [Discharge Report](StructureDefinition-DischargeReport.html)\nor clinic letter for the episode, a [Patient Summary](StructureDefinition-PatientSummary.html)\nand referral forms. A referral may be one activity of a\n[Care Plan](StructureDefinition-CarePlanModel.html).\n\nThe **Mappings** tab shows each element in HL7 v2 (360X) and FHIR." ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Sections: GP Practice (M), Patient Demographics (M), Referral Details (M), Reason for referral (M), Allergies and adverse reactions (M), Person completing record (M); Individual requirements, Medications and medical devices, Safety Alerts, Person concerns, expectations and wishes, Legal Information, Information and advice given, Participation in research (R); Family History, Social Context, Examination Findings, Assessment Scales, Relevant clinical risk factors, Investigations and results, Distribution list (O). Referral Details sub-elements from the Core Information Standard v2.01. Mapping indicative - To confirm" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referralId" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referralId" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral ID" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique identifier assigned by the Referral Initiator, used in every message about the referral" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-2 and OBR-2 (OMG^O19); ORC-2 (OSU^O51); SCH-26 (SIU)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.identifier:referralId; Task.basedOn.identifier; Appointment.basedOn.identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.ubrn" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.ubrn" ] ;
       fhir:ElementDefinition.short [ fhir:value "Unique Booking Reference Number" ] ;
       fhir:ElementDefinition.definition [ fhir:value "eRS identifier, if the referral was made through eRS" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Not in 360X; NHS: ORC-2 or OBR-2 repetition with UBRN assigning authority (To confirm)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.identifier:ubrn" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient" ] ;
       fhir:ElementDefinition.short [ fhir:value "Patient" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The patient referred" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.subject (Patient)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient Demographics; GP Practice" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.nhsNumber" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.nhsNumber" ] ;
       fhir:ElementDefinition.short [ fhir:value "NHS Number" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Traced NHS Number" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-3 (assigning authority NHS)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient.identifier:nhsNumber" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.localIdentifier" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.localIdentifier" ] ;
       fhir:ElementDefinition.short [ fhir:value "Local patient identifier" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Referral Initiator's identifier (360X sourcePatientId), and any identifier the Referral Recipient adds" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-3" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient.identifier:MedicalRecordNumber" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patient.demographics" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patient.demographics" ] ;
       fhir:ElementDefinition.short [ fhir:value "Demographics" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Name, date of birth, sex, address" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-5, PID-7, PID-8, PID-11" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient.name, birthDate, gender, address" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referrer" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The Referral Initiator" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Referrer details; Person completing record" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer.clinician" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer.clinician" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referring clinician" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Professional registration or GP code" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-12 and OBR-16" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.requester (PractitionerRole.practitioner)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referrer.organisation" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referrer.organisation" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referring organisation" ] ;
       fhir:ElementDefinition.definition [ fhir:value "ODS code" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-21 (required in this guide) / MSH-4" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.requester (PractitionerRole.organization)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referred to" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The Referral Recipient" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "MSH-5 / MSH-6" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.performer; Task.owner" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Referral to" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.service" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.service" ] ;
       fhir:ElementDefinition.short [ fhir:value "Service" ] ;
       fhir:ElementDefinition.definition [ fhir:value "eRS service ID, Directory of Services ID or local service" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.clinician" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.clinician" ] ;
       fhir:ElementDefinition.short [ fhir:value "Clinician" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Named clinician, if any" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.recipient.organisation" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.recipient.organisation" ] ;
       fhir:ElementDefinition.short [ fhir:value "Organisation" ] ;
       fhir:ElementDefinition.definition [ fhir:value "ODS code" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.serviceRequested" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.serviceRequested" ] ;
       fhir:ElementDefinition.short [ fhir:value "Service requested" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Specialty, clinic type or referral procedure" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBR-4 (360X default LOINC 57133-1 Referral note)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.code" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Referral to; Referral criteria" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.priority" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.priority" ] ;
       fhir:ElementDefinition.short [ fhir:value "Priority" ] ;
       fhir:ElementDefinition.definition [ fhir:value "routine, urgent, urgent suspected cancer, two week wait" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-9" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.priority" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Clinical urgency of referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.expectedBy" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.expectedBy" ] ;
       fhir:ElementDefinition.short [ fhir:value "Expected service provision time" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The date by which the service should be provided (urgency converted to a date)" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-8" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.occurrenceDateTime" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Clinical urgency of referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.validityPeriod" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.validityPeriod" ] ;
       fhir:ElementDefinition.short [ fhir:value "Validity" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Period the referral is valid for" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-6" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.restriction.period (or ServiceRequest.occurrencePeriod)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.reasonForReferral" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.reasonForReferral" ] ;
       fhir:ElementDefinition.short [ fhir:value "Reason for referral" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Coded (SNOMED CT) or text" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBR-31" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.reasonCode / reasonReference" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Reason for referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.referralQuestion" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.referralQuestion" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral question" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The clinical question for the Referral Recipient" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBX-5 (OBX-11 O, OBX-29 QST)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.note" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Reason for referral" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.clinicalDocument" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.clinicalDocument" ] ;
       fhir:ElementDefinition.short [ fhir:value "Clinical document" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The referrer's account of the episode that led to the referral - Discharge Report (HL7 Europe HDR) or clinic letter" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "CDA document in the XDM package (360X); NHS: OBX type ED or RP, or MDM^T02" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (Bundle - HL7 Europe HDR, or DocumentReference)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Examination Findings; Investigations and results; Relevant clinical risk factors; Information and advice given" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.patientSummary" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.patientSummary" ] ;
       fhir:ElementDefinition.short [ fhir:value "Patient summary" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The patient's background (HL7 Europe Patient Summary), when the recipient cannot query the record" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "CDA document in the XDM package (360X); NHS: OBX type ED or RP" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (Bundle - HL7 Europe EPS, or DocumentReference)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Allergies and adverse reactions; Medications and medical devices; Safety Alerts; Legal Information; Individual requirements; Family History; Social Context" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.forms" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.forms" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral forms" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Forms completed for the referral - see Referral Forms" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBX (ask at order entry)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (QuestionnaireResponse)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Assessment Scales" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.observations" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.observations" ] ;
       fhir:ElementDefinition.short [ fhir:value "Observations" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Findings needed by the recipient, e.g. vital signs" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Observation" ;
           fhir:index -1 ;
           fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Observation>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OBX" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.supportingInfo (Observation)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Examination Findings; Investigations and results" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.carePlan" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.carePlan" ] ;
       fhir:ElementDefinition.short [ fhir:value "Care plan" ] ;
       fhir:ElementDefinition.definition [ fhir:value "The care plan this referral carries out, if any" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/CarePlan" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/CarePlan>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.basedOn (CarePlan)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.dateOfReferral" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.dateOfReferral" ] ;
       fhir:ElementDefinition.short [ fhir:value "Date of referral" ] ;
       fhir:ElementDefinition.definition [ fhir:value "When the referral was made" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-9" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ServiceRequest.authoredOn" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "prsb-cris" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Referral Details: Date" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.status" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.status" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral status" ] ;
       fhir:ElementDefinition.definition [ fhir:value "360X state - see Referral Workflow Status" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-1 / ORC-5" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.businessStatus (and Task.status, ServiceRequest.status)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.statusReason" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.statusReason" ] ;
       fhir:ElementDefinition.short [ fhir:value "Reason for decline or cancellation" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Free text at least" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "ORC-16" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.statusReason" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Appointments booked to carry out the referral" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment (basedOn the ServiceRequest)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.appointmentId" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.appointmentId" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment ID" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Unique identifier of the appointment" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "SCH-2" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.identifier" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.dateTime" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.dateTime" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment date and time" ] ;
       fhir:ElementDefinition.definition [ fhir:value "At least the date" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "TQ1-7" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.start" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.provider" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.provider" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment provider" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Clinician or service seeing the patient" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "AIP-3" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.participant.actor" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.appointment.status" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.appointment.status" ] ;
       fhir:ElementDefinition.short [ fhir:value "Appointment status" ] ;
       fhir:ElementDefinition.definition [ fhir:value "booked, rescheduled, cancelled, no-show" ] ;
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "SIU trigger S12 / S13 / S15 / S26 (RGS-2)" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Appointment.status" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.interimNote" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.interimNote" ] ;
       fhir:ElementDefinition.short [ fhir:value "Interim consultation note" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Results sent before the end of care" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "*" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OSU^O51 (ORC-1 SC, ORC-5 A) with document" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.output (clinical document - Composition with HL7 Europe HDR section codes)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.id [ fhir:value "Referral.outcome" ] ;
       fhir:ElementDefinition.path [ fhir:value "Referral.outcome" ] ;
       fhir:ElementDefinition.short [ fhir:value "Referral outcome" ] ;
       fhir:ElementDefinition.definition [ fhir:value "Report that closes the loop - consultation note, discharge report or care plan" ] ;
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
       fhir:ElementDefinition.max [ fhir:value "1" ] ;
       fhir:ElementDefinition.type [
         fhir:index -1 ;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
         fhir:ElementDefinition.type.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
           fhir:index -1 ;
           fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
         ]
       ] ;
       fhir:ElementDefinition.mapping [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "hl7-v2-360x" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "OSU^O51 (ORC-1 SC, ORC-5 CM) with document" ]
       ], [
         fhir:index -1 ;
         fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ] ;
         fhir:ElementDefinition.mapping.map [ fhir:value "Task.output (Discharge Report - HL7 Europe HDR, or clinic letter)" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Referral.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

