{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-servicerequest",
  "name": "ServiceRequest",
  "status": "active",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.contained",
        "path": "ServiceRequest.contained",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "ServiceRequest.contained:Provenance",
        "path": "ServiceRequest.contained",
        "sliceName": "Provenance",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-provenance"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.identifier.system",
        "path": "ServiceRequest.identifier.system",
        "fixedUri": "https://fhir.synapxe.sg/NamingSystem/order-no"
      },
      {
        "id": "ServiceRequest.instantiatesCanonical",
        "path": "ServiceRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "ServiceRequest.instantiatesUri",
        "path": "ServiceRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "ServiceRequest.basedOn",
        "path": "ServiceRequest.basedOn",
        "max": "0"
      },
      {
        "id": "ServiceRequest.replaces",
        "path": "ServiceRequest.replaces",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requisition",
        "path": "ServiceRequest.requisition",
        "max": "0"
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "max": "0"
      },
      {
        "id": "ServiceRequest.doNotPerform",
        "path": "ServiceRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "min": 1
      },
      {
        "id": "ServiceRequest.code.id",
        "path": "ServiceRequest.code.id",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code.extension",
        "path": "ServiceRequest.code.extension",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code.concept",
        "path": "ServiceRequest.code.concept",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.code.concept.extension",
        "path": "ServiceRequest.code.concept.extension",
        "max": "0"
      },
      {
        "id": "ServiceRequest.orderDetail",
        "path": "ServiceRequest.orderDetail",
        "max": "0"
      },
      {
        "id": "ServiceRequest.quantity[x]",
        "path": "ServiceRequest.quantity[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.focus",
        "path": "ServiceRequest.focus",
        "max": "0"
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-encounter"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-encounter"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "min": 1
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.performerType",
        "path": "ServiceRequest.performerType",
        "max": "0"
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.location",
        "path": "ServiceRequest.location",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reason",
        "path": "ServiceRequest.reason",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-condition",
              "https://fhir.synapxe.sg/StructureDefinition/profile-procedure",
              "https://fhir.synapxe.sg/StructureDefinition/profile-observation"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.reason.id",
        "path": "ServiceRequest.reason.id",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reason.extension",
        "path": "ServiceRequest.reason.extension",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reason.concept",
        "path": "ServiceRequest.reason.concept",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.insurance",
        "path": "ServiceRequest.insurance",
        "max": "0"
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "max": "0"
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite.id",
        "path": "ServiceRequest.bodySite.id",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite.extension",
        "path": "ServiceRequest.bodySite.extension",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite.coding",
        "path": "ServiceRequest.bodySite.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.bodySite.coding.id",
        "path": "ServiceRequest.bodySite.coding.id",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite.coding.extension",
        "path": "ServiceRequest.bodySite.coding.extension",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite.coding.system",
        "path": "ServiceRequest.bodySite.coding.system",
        "min": 1
      },
      {
        "id": "ServiceRequest.bodySite.coding.version",
        "path": "ServiceRequest.bodySite.coding.version",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite.coding.code",
        "path": "ServiceRequest.bodySite.coding.code",
        "min": 1
      },
      {
        "id": "ServiceRequest.bodySite.coding.display",
        "path": "ServiceRequest.bodySite.coding.display",
        "min": 1
      },
      {
        "id": "ServiceRequest.bodySite.coding.userSelected",
        "path": "ServiceRequest.bodySite.coding.userSelected",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite.text",
        "path": "ServiceRequest.bodySite.text",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodyStructure",
        "path": "ServiceRequest.bodyStructure",
        "max": "0"
      },
      {
        "id": "ServiceRequest.note",
        "path": "ServiceRequest.note",
        "type": [
          {
            "code": "Annotation",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-annotation"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.patientInstruction",
        "path": "ServiceRequest.patientInstruction",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory",
        "path": "ServiceRequest.relevantHistory",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-provenance"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.relevantHistory.id",
        "path": "ServiceRequest.relevantHistory.id",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory.extension",
        "path": "ServiceRequest.relevantHistory.extension",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory.reference",
        "path": "ServiceRequest.relevantHistory.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.relevantHistory.type",
        "path": "ServiceRequest.relevantHistory.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory.identifier",
        "path": "ServiceRequest.relevantHistory.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory.display",
        "path": "ServiceRequest.relevantHistory.display",
        "max": "0"
      }
    ]
  }
}