{
  "resourceType": "StructureDefinition",
  "id": "profile-DwServiceRequest",
  "url": "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwServiceRequest",
  "version": "2.0.0",
  "name": "DwServiceRequest",
  "status": "draft",
  "date": "2024-05-03T22:11:40.4165223+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.id",
        "path": "ServiceRequest.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.meta",
        "path": "ServiceRequest.meta",
        "mustSupport": false
      },
      {
        "id": "ServiceRequest.meta.lastUpdated",
        "path": "ServiceRequest.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "ServiceRequest.meta.source",
        "path": "ServiceRequest.meta.source",
        "min": 1
      },
      {
        "id": "ServiceRequest.text",
        "path": "ServiceRequest.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.basedOn",
        "path": "ServiceRequest.basedOn",
        "comment": "Usage note: If there is a Care plan resource created for a detailed care plan include the reference to the careplan during which this service request was created",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwCarePlan",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwServiceRequest",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "comment": "Always set to 'order'. Use Order as intent.",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "comment": "108252007  Laboratory procedure\n363679005  Imaging\n44383000    Patient referral for consultation",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.priority",
        "path": "ServiceRequest.priority",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.text",
        "path": "ServiceRequest.code.text",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.orderDetail",
        "path": "ServiceRequest.orderDetail",
        "comment": "Provides the names of the forms attached to the request",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwLocation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwEncounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "comment": "Usage note: When the service is scheduled to take place when available",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitioner",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwOrganization",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitioner",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwOrganization",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwCareTeam",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwHealthcareService",
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.performer.display",
        "path": "ServiceRequest.performer.display",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.locationReference",
        "path": "ServiceRequest.locationReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwLocation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode",
        "path": "ServiceRequest.reasonCode",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.note",
        "path": "ServiceRequest.note",
        "comment": "Usage note: Any notes related to the service request or updates to it.",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.note.author[x]",
        "path": "ServiceRequest.note.author[x]",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.note.time",
        "path": "ServiceRequest.note.time",
        "mustSupport": true
      }
    ]
  }
}