{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-03-07T09:56:48.21+00:00"
  },
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/eRS-ReferralRequest-1",
  "version": "1.0.1",
  "name": "eRS-ReferralRequest-1",
  "status": "active",
  "date": "2020-07-07",
  "publisher": "NHS Digital",
  "contact": [
    {
      "name": "Interoperability Team",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work"
        }
      ]
    }
  ],
  "copyright": "Copyright © 2017  NHS Digital",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ReferralRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "ReferralRequest.extension",
        "path": "ReferralRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "ReferralRequest.extension:eRSAppointment",
        "path": "ReferralRequest.extension",
        "sliceName": "eRSAppointment",
        "short": "Relative URL reference to the Appointment resource",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Appointment-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:clinicalInfoFirstSubmitted",
        "path": "ReferralRequest.extension",
        "sliceName": "clinicalInfoFirstSubmitted",
        "short": "Date and time the clinical information was first submitted",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ClinicalInfoFirstSubmitted-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:clinicalInfoLastUpdated",
        "path": "ReferralRequest.extension",
        "sliceName": "clinicalInfoLastUpdated",
        "short": "Date and time the clinical information was last updated",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ClinicalInfoLastUpdated-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:referralPriority",
        "path": "ReferralRequest.extension",
        "sliceName": "referralPriority",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralPriority-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:commissioningRuleOrg",
        "path": "ReferralRequest.extension",
        "sliceName": "commissioningRuleOrg",
        "short": "The determination is made for the initial request when that initial request is created.",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-Commissioning-Rule-Org-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.extension:shortlist",
        "path": "ReferralRequest.extension",
        "sliceName": "shortlist",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-ReferralShortlist-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.identifier",
        "path": "ReferralRequest.identifier",
        "max": "0"
      },
      {
        "id": "ReferralRequest.definition",
        "path": "ReferralRequest.definition",
        "max": "0"
      },
      {
        "id": "ReferralRequest.basedOn",
        "path": "ReferralRequest.basedOn",
        "max": "0"
      },
      {
        "id": "ReferralRequest.replaces",
        "path": "ReferralRequest.replaces",
        "max": "0"
      },
      {
        "id": "ReferralRequest.groupIdentifier",
        "path": "ReferralRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "ReferralRequest.status",
        "path": "ReferralRequest.status",
        "short": "draft | active | cancelled | completed",
        "definition": "The status of the referral.",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralRequestStatus"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.nhs.uk/STU3/ValueSet/eRS-ReferralStatus-1"
          }
        }
      },
      {
        "id": "ReferralRequest.type",
        "path": "ReferralRequest.type",
        "max": "0"
      },
      {
        "id": "ReferralRequest.priority",
        "path": "ReferralRequest.priority",
        "max": "0"
      },
      {
        "id": "ReferralRequest.serviceRequested",
        "path": "ReferralRequest.serviceRequested",
        "max": "0"
      },
      {
        "id": "ReferralRequest.subject",
        "path": "ReferralRequest.subject",
        "short": "The Patient who is the subject of the Referral Request",
        "definition": "The Patient who is the subject of the Referral Request",
        "type": [
          {
            "code": "Reference",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.context",
        "path": "ReferralRequest.context",
        "max": "0"
      },
      {
        "id": "ReferralRequest.occurrence[x]",
        "path": "ReferralRequest.occurrence[x]",
        "max": "0"
      },
      {
        "id": "ReferralRequest.authoredOn",
        "path": "ReferralRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "ReferralRequest.requester",
        "path": "ReferralRequest.requester",
        "max": "0"
      },
      {
        "id": "ReferralRequest.specialty",
        "path": "ReferralRequest.specialty",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralSpecialty"
            }
          ],
          "strength": "required",
          "description": "The specialty list must be retrieved dynamically from the eRS valueset.",
          "valueSetUri": "https://"
        }
      },
      {
        "id": "ReferralRequest.specialty.coding",
        "path": "ReferralRequest.specialty.coding",
        "short": "eRS dynamic Valueset",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ReferralRequest.specialty.coding.system",
        "path": "ReferralRequest.specialty.coding.system",
        "short": "Identity of the eRS system",
        "min": 1
      },
      {
        "id": "ReferralRequest.specialty.coding.version",
        "path": "ReferralRequest.specialty.coding.version",
        "max": "0"
      },
      {
        "id": "ReferralRequest.specialty.coding.code",
        "path": "ReferralRequest.specialty.coding.code",
        "short": "Code displayed in the eRS system for Specialty",
        "min": 1
      },
      {
        "id": "ReferralRequest.specialty.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.specialty.coding.display",
        "min": 1
      },
      {
        "id": "ReferralRequest.specialty.coding.userSelected",
        "path": "ReferralRequest.specialty.coding.userSelected",
        "max": "0"
      },
      {
        "id": "ReferralRequest.specialty.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ReferralRequest.specialty.text",
        "max": "0"
      },
      {
        "id": "ReferralRequest.recipient",
        "path": "ReferralRequest.recipient",
        "max": "0"
      },
      {
        "id": "ReferralRequest.reasonCode",
        "path": "ReferralRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "ReferralRequest.reasonReference",
        "path": "ReferralRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "ReferralRequest.description",
        "path": "ReferralRequest.description",
        "max": "0"
      },
      {
        "id": "ReferralRequest.supportingInfo",
        "path": "ReferralRequest.supportingInfo",
        "short": "Additonal information to support referral request",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/eRS-ReferralRequest-1",
            "aggregation": [
              "contained"
            ]
          },
          {
            "code": "Reference",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/eRS-DocumentReference-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/eRS-CommunicationRequest-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.supportingInfo.reference",
        "path": "ReferralRequest.supportingInfo.reference",
        "short": "Relative URL reference to the resource containing supporting information",
        "min": 1
      },
      {
        "id": "ReferralRequest.supportingInfo.identifier",
        "path": "ReferralRequest.supportingInfo.identifier",
        "max": "0"
      },
      {
        "id": "ReferralRequest.note",
        "path": "ReferralRequest.note",
        "max": "0"
      },
      {
        "id": "ReferralRequest.relevantHistory",
        "path": "ReferralRequest.relevantHistory",
        "max": "0"
      }
    ]
  }
}