{
  "resourceType": "StructureDefinition",
  "id": "UKCore-ServiceRequest",
  "meta": {
    "lastUpdated": "2020-02-11T11:36:48.088+00:00"
  },
  "url": "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-ServiceRequest",
  "version": "1.0.0",
  "name": "UKCoreServiceRequest",
  "title": "UK Core ServiceRequest",
  "status": "draft",
  "date": "2020-02-11T11:36:47.7739936+00:00",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "HL7 UK",
      "telecom": [
        {
          "system": "email",
          "value": "secretariat@hl7.org.uk",
          "use": "work",
          "rank": 1
        }
      ]
    },
    {
      "name": "NHS Digital",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work",
          "rank": 2
        }
      ]
    }
  ],
  "description": "Defines the UK Core constraints and extensions on the ServiceRequest resource for the minimal set of data to query and retrieve service request information.",
  "purpose": "Defines the UK Core constraints and extensions on the ServiceRequest resource for the minimal set of data to query and retrieve service request information.",
  "copyright": "Copyright © 2020 HL7 UK Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "quick",
      "uri": "http://siframework.org/cqf",
      "name": "Quality Improvement and Clinical Knowledge (QUICK)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.identifier.assigner",
        "path": "ServiceRequest.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.basedOn",
        "path": "ServiceRequest.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-ServiceRequest",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-CarePlan",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-MedicationRequest"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.basedOn.identifier.assigner",
        "path": "ServiceRequest.basedOn.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.replaces",
        "path": "ServiceRequest.replaces",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-ServiceRequest"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.replaces.identifier.assigner",
        "path": "ServiceRequest.replaces.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.requisition.assigner",
        "path": "ServiceRequest.requisition.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Group",
              "http://hl7.org/fhir/StructureDefinition/Device",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Location",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Patient"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.subject.identifier.assigner",
        "path": "ServiceRequest.subject.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Encounter"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.encounter.identifier.assigner",
        "path": "ServiceRequest.encounter.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Device",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Practitioner",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-PractitionerRole",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Patient",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.requester.identifier.assigner",
        "path": "ServiceRequest.requester.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/HealthcareService",
              "http://hl7.org/fhir/StructureDefinition/Device",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Practitioner",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-PractitionerRole",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-CareTeam",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Patient",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.performer.identifier.assigner",
        "path": "ServiceRequest.performer.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.locationReference",
        "path": "ServiceRequest.locationReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Location"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.locationReference.identifier.assigner",
        "path": "ServiceRequest.locationReference.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.reasonReference",
        "path": "ServiceRequest.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Condition",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Observation",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-DiagnosticReport",
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.reasonReference.identifier.assigner",
        "path": "ServiceRequest.reasonReference.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.insurance.identifier.assigner",
        "path": "ServiceRequest.insurance.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.supportingInfo.identifier.assigner",
        "path": "ServiceRequest.supportingInfo.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Specimen"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.specimen.identifier.assigner",
        "path": "ServiceRequest.specimen.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.relevantHistory.identifier.assigner",
        "path": "ServiceRequest.relevantHistory.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      }
    ]
  }
}