{
  "resourceType": "StructureDefinition",
  "id": "2",
  "url": "https://example.org/fhir/StructureDefinition/MyServiceRequest",
  "name": "MyServiceRequest",
  "status": "draft",
  "date": "2023-08-04T13:29:48.045426+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.meta",
        "path": "ServiceRequest.meta"
      },
      {
        "id": "ServiceRequest.meta.lastUpdated",
        "path": "ServiceRequest.meta.lastUpdated",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this.type"
            }
          ],
          "description": "Unordered, Open, $this.type(Pattern)",
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.identifier:Placer-ID",
        "path": "ServiceRequest.identifier",
        "sliceName": "Placer-ID",
        "short": "Placer identifier",
        "definition": "Identifier for the placer of the pathology request",
        "max": "1"
      },
      {
        "id": "ServiceRequest.identifier:Filler-ID",
        "path": "ServiceRequest.identifier",
        "sliceName": "Filler-ID",
        "short": "Filler Identifier",
        "definition": "Identifier for the filler of the pathology request",
        "max": "1"
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "fixedCode": "order",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.category.id",
        "path": "ServiceRequest.category.id",
        "fixedString": "387713003",
        "binding": {
          "strength": "example",
          "description": "Surgical procedure",
          "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-category"
        }
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Group",
              "http://hl7.org/fhir/StructureDefinition/Location",
              "http://hl7.org/fhir/StructureDefinition/Device",
              "http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://example.org/fhir/StructureDefinition/Pathologyencounterfrompapertofhir"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "https://example.org/fhir/StructureDefinition/MyPractitioner",
              "https://example.org/fhir/StructureDefinition/MyOrganization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd-10"
          }
        ],
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Specimen",
              "https://example.org/fhir/StructureDefinition/MySpecimen"
            ]
          }
        ]
      }
    ]
  }
}