{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.graphnethealth.com/STU3/StructureDefinition/Procedure",
  "version": "1.0.0",
  "name": "Procedure",
  "title": "Procedure",
  "status": "draft",
  "date": "2020-12-11",
  "publisher": "Graphnet Health",
  "contact": [
    {
      "name": "Product Team",
      "telecom": [
        {
          "system": "email",
          "value": "product@graphnethealth.com",
          "use": "work"
        }
      ]
    }
  ],
  "purpose": "Inbound validation schema for FHIR Procedure",
  "copyright": "Copyright 2020 Graphnet Health",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Procedure",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Procedure",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Procedure.contained",
        "path": "Procedure.contained",
        "max": "0"
      },
      {
        "id": "Procedure.definition",
        "path": "Procedure.definition",
        "max": "0"
      },
      {
        "id": "Procedure.basedOn",
        "path": "Procedure.basedOn",
        "max": "0"
      },
      {
        "id": "Procedure.partOf",
        "path": "Procedure.partOf",
        "max": "0"
      },
      {
        "id": "Procedure.status",
        "path": "Procedure.status",
        "fixedCode": "completed"
      },
      {
        "id": "Procedure.notDone",
        "path": "Procedure.notDone",
        "max": "0"
      },
      {
        "id": "Procedure.notDoneReason",
        "path": "Procedure.notDoneReason",
        "max": "0"
      },
      {
        "id": "Procedure.category",
        "path": "Procedure.category",
        "max": "0"
      },
      {
        "id": "Procedure.code.coding",
        "path": "Procedure.code.coding",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Procedure.subject",
        "path": "Procedure.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Procedure.context",
        "path": "Procedure.context",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          }
        ]
      },
      {
        "id": "Procedure.performed[x]:performedDateTime",
        "path": "Procedure.performedDateTime",
        "sliceName": "performedDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Procedure.performer",
        "path": "Procedure.performer",
        "max": "1"
      },
      {
        "id": "Procedure.performer.role",
        "path": "Procedure.performer.role",
        "max": "0"
      },
      {
        "id": "Procedure.performer.role.coding",
        "path": "Procedure.performer.role.coding",
        "max": "1"
      },
      {
        "id": "Procedure.performer.actor",
        "path": "Procedure.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ]
      },
      {
        "id": "Procedure.performer.actor.reference",
        "path": "Procedure.performer.actor.reference",
        "max": "0"
      },
      {
        "id": "Procedure.performer.actor.identifier",
        "path": "Procedure.performer.actor.identifier",
        "max": "0"
      },
      {
        "id": "Procedure.performer.onBehalfOf.reference",
        "path": "Procedure.performer.onBehalfOf.reference",
        "max": "0"
      },
      {
        "id": "Procedure.location",
        "path": "Procedure.location",
        "max": "0"
      },
      {
        "id": "Procedure.reasonCode",
        "path": "Procedure.reasonCode",
        "max": "0"
      },
      {
        "id": "Procedure.reasonCode.coding",
        "path": "Procedure.reasonCode.coding",
        "max": "1"
      },
      {
        "id": "Procedure.reasonReference",
        "path": "Procedure.reasonReference",
        "max": "0"
      },
      {
        "id": "Procedure.bodySite",
        "path": "Procedure.bodySite",
        "max": "0"
      },
      {
        "id": "Procedure.outcome",
        "path": "Procedure.outcome",
        "max": "0"
      },
      {
        "id": "Procedure.report",
        "path": "Procedure.report",
        "max": "0"
      },
      {
        "id": "Procedure.complication",
        "path": "Procedure.complication",
        "max": "0"
      },
      {
        "id": "Procedure.complicationDetail",
        "path": "Procedure.complicationDetail",
        "max": "0"
      },
      {
        "id": "Procedure.followUp",
        "path": "Procedure.followUp",
        "max": "0"
      },
      {
        "id": "Procedure.note",
        "path": "Procedure.note",
        "max": "1"
      },
      {
        "id": "Procedure.focalDevice",
        "path": "Procedure.focalDevice",
        "max": "0"
      },
      {
        "id": "Procedure.usedReference",
        "path": "Procedure.usedReference",
        "max": "0"
      },
      {
        "id": "Procedure.usedCode",
        "path": "Procedure.usedCode",
        "max": "0"
      }
    ]
  }
}