{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2022-01-21T09:47:48.654+00:00"
  },
  "url": "https://hl7.pt/fhir/StructureDefinition/PT_Procedure",
  "version": "1.0",
  "name": "PT_Procedure",
  "status": "draft",
  "experimental": false,
  "date": "2022-01-21",
  "description": "A generic Procedure resource for Portugal",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Procedure",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Procedure",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Procedure.meta",
        "path": "Procedure.meta"
      },
      {
        "id": "Procedure.meta.id",
        "path": "Procedure.meta.id",
        "max": "0"
      },
      {
        "id": "Procedure.meta.versionId",
        "path": "Procedure.meta.versionId",
        "max": "0"
      },
      {
        "id": "Procedure.meta.lastUpdated",
        "path": "Procedure.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Procedure.meta.source",
        "path": "Procedure.meta.source",
        "max": "0"
      },
      {
        "id": "Procedure.meta.security",
        "path": "Procedure.meta.security",
        "max": "0"
      },
      {
        "id": "Procedure.meta.tag",
        "path": "Procedure.meta.tag",
        "max": "0"
      },
      {
        "id": "Procedure.implicitRules",
        "path": "Procedure.implicitRules",
        "max": "0"
      },
      {
        "id": "Procedure.language",
        "path": "Procedure.language",
        "max": "0"
      },
      {
        "id": "Procedure.text",
        "path": "Procedure.text",
        "max": "0"
      },
      {
        "id": "Procedure.contained",
        "path": "Procedure.contained",
        "max": "0"
      },
      {
        "id": "Procedure.extension",
        "path": "Procedure.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Procedure.extension:ProcedurePriority",
        "path": "Procedure.extension",
        "sliceName": "ProcedurePriority",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://hl7.pt/fhir/StructureDefinition/ProcedurePriority"
            ]
          }
        ]
      },
      {
        "id": "Procedure.identifier",
        "path": "Procedure.identifier",
        "mapping": [
          {
            "identity": "HL7v2.4",
            "map": "PR1-3"
          },
          {
            "identity": "HL7v2.5",
            "map": "PR1-19"
          }
        ]
      },
      {
        "id": "Procedure.identifier.id",
        "path": "Procedure.identifier.id",
        "max": "0"
      },
      {
        "id": "Procedure.identifier.type",
        "path": "Procedure.identifier.type",
        "max": "0"
      },
      {
        "id": "Procedure.identifier.system",
        "path": "Procedure.identifier.system",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "PR1-3.3"
          }
        ]
      },
      {
        "id": "Procedure.identifier.value",
        "path": "Procedure.identifier.value",
        "mapping": [
          {
            "identity": "HL7v2.4",
            "map": "PR1-3.1"
          },
          {
            "identity": "HL7v2.5",
            "map": "PR1-19.1"
          }
        ]
      },
      {
        "id": "Procedure.identifier.period",
        "path": "Procedure.identifier.period",
        "max": "0"
      },
      {
        "id": "Procedure.identifier.assigner.id",
        "path": "Procedure.identifier.assigner.id",
        "max": "0"
      },
      {
        "id": "Procedure.identifier.assigner.reference",
        "path": "Procedure.identifier.assigner.reference",
        "max": "0"
      },
      {
        "id": "Procedure.identifier.assigner.type",
        "path": "Procedure.identifier.assigner.type",
        "max": "0"
      },
      {
        "id": "Procedure.identifier.assigner.identifier",
        "path": "Procedure.identifier.assigner.identifier",
        "max": "0"
      },
      {
        "id": "Procedure.identifier.assigner.display",
        "path": "Procedure.identifier.assigner.display",
        "mapping": [
          {
            "identity": "HL7v2.5",
            "map": "PR1-19.2"
          }
        ]
      },
      {
        "id": "Procedure.instantiatesCanonical",
        "path": "Procedure.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Procedure.instantiatesUri",
        "path": "Procedure.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Procedure.basedOn",
        "path": "Procedure.basedOn",
        "max": "0"
      },
      {
        "id": "Procedure.partOf",
        "path": "Procedure.partOf",
        "max": "0"
      },
      {
        "id": "Procedure.category",
        "path": "Procedure.category",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "PR1-6"
          }
        ]
      },
      {
        "id": "Procedure.category.id",
        "path": "Procedure.category.id",
        "max": "0"
      },
      {
        "id": "Procedure.category.coding.id",
        "path": "Procedure.category.coding.id",
        "max": "0"
      },
      {
        "id": "Procedure.category.coding.version",
        "path": "Procedure.category.coding.version",
        "max": "0"
      },
      {
        "id": "Procedure.category.coding.code",
        "path": "Procedure.category.coding.code",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "PR1-6"
          }
        ]
      },
      {
        "id": "Procedure.category.coding.userSelected",
        "path": "Procedure.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Procedure.category.text",
        "path": "Procedure.category.text",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "Translation to [PT] of the display field"
          }
        ]
      },
      {
        "id": "Procedure.code",
        "path": "Procedure.code",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "PR1-3"
          }
        ]
      },
      {
        "id": "Procedure.code.id",
        "path": "Procedure.code.id",
        "max": "0"
      },
      {
        "id": "Procedure.code.coding.id",
        "path": "Procedure.code.coding.id",
        "max": "0"
      },
      {
        "id": "Procedure.code.coding.system",
        "path": "Procedure.code.coding.system",
        "fixedUri": "ICD-10-PCS",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "PR1-3.3"
          }
        ]
      },
      {
        "id": "Procedure.code.coding.version",
        "path": "Procedure.code.coding.version",
        "max": "0"
      },
      {
        "id": "Procedure.code.coding.code",
        "path": "Procedure.code.coding.code",
        "mapping": [
          {
            "identity": "Hl7v2.x",
            "map": "PR1-3.1"
          }
        ]
      },
      {
        "id": "Procedure.code.coding.display",
        "path": "Procedure.code.coding.display",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "PR1-3.2"
          }
        ]
      },
      {
        "id": "Procedure.code.coding.userSelected",
        "path": "Procedure.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Procedure.code.text",
        "path": "Procedure.code.text",
        "max": "0"
      },
      {
        "id": "Procedure.subject",
        "path": "Procedure.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Patient"
            ]
          }
        ]
      },
      {
        "id": "Procedure.subject.id",
        "path": "Procedure.subject.id",
        "max": "0"
      },
      {
        "id": "Procedure.subject.reference",
        "path": "Procedure.subject.reference",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "Patient/PID-3 c/ SNS; PID-18.1; PID-3 c/ SONHO"
          }
        ]
      },
      {
        "id": "Procedure.subject.type",
        "path": "Procedure.subject.type",
        "max": "0"
      },
      {
        "id": "Procedure.subject.identifier",
        "path": "Procedure.subject.identifier",
        "max": "0"
      },
      {
        "id": "Procedure.subject.display",
        "path": "Procedure.subject.display",
        "max": "0"
      },
      {
        "id": "Procedure.encounter",
        "path": "Procedure.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Encounter"
            ]
          }
        ]
      },
      {
        "id": "Procedure.encounter.id",
        "path": "Procedure.encounter.id",
        "max": "0"
      },
      {
        "id": "Procedure.encounter.reference",
        "path": "Procedure.encounter.reference",
        "mapping": [
          {
            "identity": "Hl7v2.x",
            "map": "Encounter/PV1-19, PV1-50"
          }
        ]
      },
      {
        "id": "Procedure.encounter.type",
        "path": "Procedure.encounter.type",
        "max": "0"
      },
      {
        "id": "Procedure.encounter.identifier",
        "path": "Procedure.encounter.identifier",
        "max": "0"
      },
      {
        "id": "Procedure.encounter.display",
        "path": "Procedure.encounter.display",
        "max": "0"
      },
      {
        "id": "Procedure.performed[x]",
        "path": "Procedure.performed[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "PR1-5"
          }
        ]
      },
      {
        "id": "Procedure.performed[x].id",
        "path": "Procedure.performed[x].id",
        "max": "0"
      },
      {
        "id": "Procedure.recorder",
        "path": "Procedure.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Patient",
              "https://hl7.pt/fhir/StructureDefinition/PT_RelatedPerson",
              "https://hl7.pt/fhir/StructureDefinition/PT_Practitioner",
              "https://hl7.pt/fhir/StructureDefinition/PT_PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "Procedure.asserter",
        "path": "Procedure.asserter",
        "max": "0"
      },
      {
        "id": "Procedure.performer.id",
        "path": "Procedure.performer.id",
        "max": "0"
      },
      {
        "id": "Procedure.performer.function",
        "path": "Procedure.performer.function",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "ROL-3"
          }
        ]
      },
      {
        "id": "Procedure.performer.function.id",
        "path": "Procedure.performer.function.id",
        "max": "0"
      },
      {
        "id": "Procedure.performer.function.coding.id",
        "path": "Procedure.performer.function.coding.id",
        "max": "0"
      },
      {
        "id": "Procedure.performer.function.coding.system",
        "path": "Procedure.performer.function.coding.system",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "ROL-3.3"
          }
        ]
      },
      {
        "id": "Procedure.performer.function.coding.version",
        "path": "Procedure.performer.function.coding.version",
        "max": "0"
      },
      {
        "id": "Procedure.performer.function.coding.code",
        "path": "Procedure.performer.function.coding.code",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "ROL-3.1"
          }
        ]
      },
      {
        "id": "Procedure.performer.function.coding.display",
        "path": "Procedure.performer.function.coding.display",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "ROL-3.2"
          }
        ]
      },
      {
        "id": "Procedure.performer.function.coding.userSelected",
        "path": "Procedure.performer.function.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Procedure.performer.function.text",
        "path": "Procedure.performer.function.text",
        "max": "0"
      },
      {
        "id": "Procedure.performer.actor",
        "path": "Procedure.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Practitioner",
              "https://hl7.pt/fhir/StructureDefinition/PT_PractitionerRole",
              "https://hl7.pt/fhir/StructureDefinition/PT_Organization",
              "https://hl7.pt/fhir/StructureDefinition/PT_Patient",
              "https://hl7.pt/fhir/StructureDefinition/PT_RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Procedure.performer.actor.id",
        "path": "Procedure.performer.actor.id",
        "max": "0"
      },
      {
        "id": "Procedure.performer.actor.reference",
        "path": "Procedure.performer.actor.reference",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "Practitioner/ROL"
          }
        ]
      },
      {
        "id": "Procedure.performer.actor.type",
        "path": "Procedure.performer.actor.type",
        "max": "0"
      },
      {
        "id": "Procedure.performer.actor.identifier",
        "path": "Procedure.performer.actor.identifier",
        "max": "0"
      },
      {
        "id": "Procedure.performer.actor.display",
        "path": "Procedure.performer.actor.display",
        "max": "0"
      },
      {
        "id": "Procedure.performer.onBehalfOf",
        "path": "Procedure.performer.onBehalfOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Organization"
            ]
          }
        ]
      },
      {
        "id": "Procedure.location",
        "path": "Procedure.location",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Location"
            ]
          }
        ]
      },
      {
        "id": "Procedure.reasonCode",
        "path": "Procedure.reasonCode",
        "max": "0"
      },
      {
        "id": "Procedure.reasonReference",
        "path": "Procedure.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Condition",
              "https://hl7.pt/fhir/StructureDefinition/PT_Procedure"
            ]
          }
        ]
      },
      {
        "id": "Procedure.reasonReference.id",
        "path": "Procedure.reasonReference.id",
        "max": "0"
      },
      {
        "id": "Procedure.reasonReference.reference",
        "path": "Procedure.reasonReference.reference",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "Condition/PR1-15"
          }
        ]
      },
      {
        "id": "Procedure.reasonReference.type",
        "path": "Procedure.reasonReference.type",
        "max": "0"
      },
      {
        "id": "Procedure.reasonReference.identifier",
        "path": "Procedure.reasonReference.identifier",
        "max": "0"
      },
      {
        "id": "Procedure.reasonReference.display",
        "path": "Procedure.reasonReference.display",
        "max": "0"
      },
      {
        "id": "Procedure.complicationDetail",
        "path": "Procedure.complicationDetail",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7.pt/fhir/StructureDefinition/PT_Condition"
            ]
          }
        ]
      },
      {
        "id": "Procedure.note.id",
        "path": "Procedure.note.id",
        "max": "0"
      },
      {
        "id": "Procedure.note.author[x]",
        "path": "Procedure.note.author[x]",
        "max": "0"
      },
      {
        "id": "Procedure.note.time",
        "path": "Procedure.note.time",
        "max": "0"
      },
      {
        "id": "Procedure.note.text",
        "path": "Procedure.note.text",
        "mapping": [
          {
            "identity": "HL7v2.x",
            "map": "NTE-3"
          }
        ]
      },
      {
        "id": "Procedure.focalDevice",
        "path": "Procedure.focalDevice",
        "max": "0"
      },
      {
        "id": "Procedure.usedCode",
        "path": "Procedure.usedCode",
        "max": "0"
      }
    ]
  }
}