{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Procedure-ForADT",
  "name": "Procedure-ForADT",
  "status": "active",
  "description": "Procedure resource profile for ADT scenarios",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Procedure",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Procedure",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Procedure",
        "path": "Procedure",
        "mustSupport": true
      },
      {
        "id": "Procedure.extension",
        "path": "Procedure.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Procedure.extension:laterality",
        "path": "Procedure.extension",
        "sliceName": "laterality",
        "short": "laterality",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-resource-laterality"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Procedure.extension:ASAScore",
        "path": "Procedure.extension",
        "sliceName": "ASAScore",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-procedure-ASAScore"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Procedure.identifier",
        "path": "Procedure.identifier",
        "max": "1"
      },
      {
        "id": "Procedure.code",
        "path": "Procedure.code",
        "definition": "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").\r\nUse ICD-9 CM Codesystem/Valueset",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://apiframework.dedalus.eu/fhir/ValueSet/ICD9ProcedureCodes"
          }
        }
      },
      {
        "id": "Procedure.subject",
        "path": "Procedure.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          }
        ]
      },
      {
        "id": "Procedure.context",
        "path": "Procedure.context",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter-Master"
          }
        ]
      },
      {
        "id": "Procedure.performed[x]",
        "path": "Procedure.performed[x]",
        "mustSupport": true
      },
      {
        "id": "Procedure.reasonCode",
        "path": "Procedure.reasonCode",
        "max": "1"
      }
    ]
  }
}