{
  "resourceType": "StructureDefinition",
  "id": "PLMedicalEventProcedure",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2019-08-06T14:01:31.207+00:00"
  },
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "https://ezdrowie.gov.pl/fhir/StructureDefinition/PLMedicalEventProcedure",
  "name": "PLMedicalEventProcedure",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Procedure",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Procedure",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Procedure.status",
        "path": "Procedure.status",
        "short": "completed",
        "binding": {
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[0].binding": "https://ezdrowie.gov.pl/fhir/ValueSet/PLMedicalEventProcedureStatus"
        }
      },
      {
        "id": "Procedure.code",
        "path": "Procedure.code",
        "min": 1
      },
      {
        "id": "Procedure.code.coding",
        "path": "Procedure.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Procedure.code.coding.system",
        "path": "Procedure.code.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:2.16.840.1.113883.3.4424.11.2.6"
      },
      {
        "id": "Procedure.code.coding.code",
        "path": "Procedure.code.coding.code",
        "min": 1
      },
      {
        "id": "Procedure.code.coding.display",
        "path": "Procedure.code.coding.display",
        "min": 1
      },
      {
        "id": "Procedure.subject",
        "path": "Procedure.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Procedure.subject.identifier",
        "path": "Procedure.subject.identifier",
        "min": 1
      },
      {
        "id": "Procedure.subject.identifier.system",
        "path": "Procedure.subject.identifier.system",
        "min": 1
      },
      {
        "id": "Procedure.subject.identifier.value",
        "path": "Procedure.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Procedure.encounter",
        "path": "Procedure.encounter",
        "min": 1
      },
      {
        "id": "Procedure.encounter.reference",
        "path": "Procedure.encounter.reference",
        "min": 1
      },
      {
        "id": "Procedure.encounter.type",
        "path": "Procedure.encounter.type",
        "min": 1
      },
      {
        "id": "Procedure.performed[x]",
        "path": "Procedure.performed[x]",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Procedure.performed[x].start",
        "path": "Procedure.performed[x].start",
        "min": 1
      },
      {
        "id": "Procedure.performed[x].end",
        "path": "Procedure.performed[x].end",
        "min": 1
      },
      {
        "id": "Procedure.asserter",
        "path": "Procedure.asserter",
        "min": 1
      },
      {
        "id": "Procedure.asserter.extension",
        "path": "Procedure.asserter.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Procedure.asserter.extension:specialty",
        "path": "Procedure.asserter.extension",
        "sliceName": "specialty",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://ezdrowie.gov.pl/fhir/StructureDefinition/PLSpecialty"
          }
        ]
      },
      {
        "id": "Procedure.asserter.extension:specialty.value[x].system",
        "path": "Procedure.asserter.extension.value[x].system",
        "min": 1,
        "fixedUri": "https://ezdrowie.gov.pl/fhir/CodeSystem/PLCodeSystemMedicalProffesion"
      },
      {
        "id": "Procedure.asserter.extension:specialty.value[x].code",
        "path": "Procedure.asserter.extension.value[x].code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[20].binding": "https://ezdrowie.gov.pl/fhir/ValueSet/PLMedicalProffesion"
        }
      },
      {
        "id": "Procedure.asserter.identifier",
        "path": "Procedure.asserter.identifier",
        "min": 1
      },
      {
        "id": "Procedure.asserter.identifier.system",
        "path": "Procedure.asserter.identifier.system",
        "min": 1
      },
      {
        "id": "Procedure.asserter.identifier.value",
        "path": "Procedure.asserter.identifier.value",
        "min": 1
      },
      {
        "id": "Procedure.location",
        "path": "Procedure.location",
        "min": 1
      },
      {
        "id": "Procedure.location.identifier",
        "path": "Procedure.location.identifier",
        "min": 1
      },
      {
        "id": "Procedure.location.identifier.system",
        "path": "Procedure.location.identifier.system",
        "min": 1
      },
      {
        "id": "Procedure.location.identifier.value",
        "path": "Procedure.location.identifier.value",
        "min": 1
      }
    ]
  }
}