{
  "resourceType": "StructureDefinition",
  "id": "ab1a981e-7eb6-4863-b0eb-2415ff3c8124",
  "meta": {
    "lastUpdated": "2019-05-30T22:34:15.6873943+00:00"
  },
  "url": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphPublicHealthIntervention",
  "name": "PLNiphPublicHealthIntervention",
  "status": "draft",
  "date": "2019-05-30T22:34:15.477098+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "HealthcareService",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/HealthcareService",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "HealthcareService.extension",
        "path": "HealthcareService.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "HealthcareService.extension:developingEntity",
        "path": "HealthcareService.extension",
        "sliceName": "developingEntity",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtOrganizationalEntityReference"
          }
        ],
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.developingEntities"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:implementingEntity",
        "path": "HealthcareService.extension",
        "sliceName": "implementingEntity",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtOrganizationalEntityReference"
          }
        ],
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.implementingEntities"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:foundingEntity",
        "path": "HealthcareService.extension",
        "sliceName": "foundingEntity",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtOrganizationalEntityReference"
          }
        ],
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.foundingEntities"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:availabilityPeriod",
        "path": "HealthcareService.extension",
        "sliceName": "availabilityPeriod",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtPublicHealthInterventionPeriod"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:availabilityPeriod.valuePeriod:valuePeriod.start",
        "path": "HealthcareService.extension.valuePeriod.start",
        "mapping": [
          {
            "identity": "PLNiphExtPublicHealthInterventionPeriod",
            "map": "HealthProgram.implementationDateFrom"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:availabilityPeriod.valuePeriod:valuePeriod.end",
        "path": "HealthcareService.extension.valuePeriod.end",
        "mapping": [
          {
            "identity": "PLNiphExtPublicHealthInterventionPeriod",
            "map": "HealthProgram.implementationDateTo"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:recruitment",
        "path": "HealthcareService.extension",
        "sliceName": "recruitment",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtPublicHealthActivityRecruitment"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:shortName",
        "path": "HealthcareService.extension",
        "sliceName": "shortName",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtAdditionalName"
          }
        ]
      },
      {
        "id": "HealthcareService.extension:activity",
        "path": "HealthcareService.extension",
        "sliceName": "activity",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtPublicHealthActivityReference"
          }
        ]
      },
      {
        "id": "HealthcareService.identifier",
        "path": "HealthcareService.identifier",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.identifier"
          }
        ]
      },
      {
        "id": "HealthcareService.identifier.use",
        "path": "HealthcareService.identifier.use",
        "max": "0"
      },
      {
        "id": "HealthcareService.identifier.type",
        "path": "HealthcareService.identifier.type",
        "max": "0"
      },
      {
        "id": "HealthcareService.identifier.system",
        "path": "HealthcareService.identifier.system",
        "min": 1,
        "type": [
          {
            "code": "uri",
            "profile": "http://pzh.gov.pl/profibaza/identyfikator-interwencji-zdrowia-publicznego"
          }
        ]
      },
      {
        "id": "HealthcareService.identifier.value",
        "path": "HealthcareService.identifier.value",
        "min": 1
      },
      {
        "id": "HealthcareService.identifier.period",
        "path": "HealthcareService.identifier.period",
        "max": "0"
      },
      {
        "id": "HealthcareService.identifier.assigner",
        "path": "HealthcareService.identifier.assigner",
        "max": "0"
      },
      {
        "id": "HealthcareService.active",
        "path": "HealthcareService.active",
        "min": 1,
        "fixedBoolean": false
      },
      {
        "id": "HealthcareService.providedBy",
        "path": "HealthcareService.providedBy",
        "max": "0"
      },
      {
        "id": "HealthcareService.category",
        "path": "HealthcareService.category",
        "min": 1
      },
      {
        "id": "HealthcareService.category.coding",
        "path": "HealthcareService.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "HealthcareService.category.coding.system",
        "path": "HealthcareService.category.coding.system",
        "min": 1
      },
      {
        "id": "HealthcareService.category.coding.version",
        "path": "HealthcareService.category.coding.version",
        "max": "0"
      },
      {
        "id": "HealthcareService.category.coding.code",
        "path": "HealthcareService.category.coding.code",
        "min": 1
      },
      {
        "id": "HealthcareService.category.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.category.coding.display",
        "min": 1
      },
      {
        "id": "HealthcareService.category.coding.userSelected",
        "path": "HealthcareService.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "HealthcareService.category.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.category.text",
        "max": "0"
      },
      {
        "id": "HealthcareService.type",
        "path": "HealthcareService.type",
        "min": 1,
        "max": "1"
      },
      {
        "id": "HealthcareService.type.coding",
        "path": "HealthcareService.type.coding",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetUri": "http://pzh.gov.pl/fhir/ValueSet/typ-interwencji-zdrowia-publicznego"
        }
      },
      {
        "id": "HealthcareService.type.coding.system",
        "path": "HealthcareService.type.coding.system",
        "min": 1
      },
      {
        "id": "HealthcareService.type.coding.version",
        "path": "HealthcareService.type.coding.version",
        "max": "0"
      },
      {
        "id": "HealthcareService.type.coding.code",
        "path": "HealthcareService.type.coding.code",
        "min": 1
      },
      {
        "id": "HealthcareService.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.type.coding.display",
        "min": 1
      },
      {
        "id": "HealthcareService.type.coding.userSelected",
        "path": "HealthcareService.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "HealthcareService.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.type.text",
        "max": "0"
      },
      {
        "id": "HealthcareService.specialty",
        "path": "HealthcareService.specialty",
        "max": "0"
      },
      {
        "id": "HealthcareService.location",
        "path": "HealthcareService.location",
        "max": "0"
      },
      {
        "id": "HealthcareService.location.reference",
        "path": "HealthcareService.location.reference",
        "max": "0"
      },
      {
        "id": "HealthcareService.location.identifier",
        "path": "HealthcareService.location.identifier",
        "min": 1
      },
      {
        "id": "HealthcareService.location.identifier.use",
        "path": "HealthcareService.location.identifier.use",
        "max": "0"
      },
      {
        "id": "HealthcareService.location.identifier.type",
        "path": "HealthcareService.location.identifier.type",
        "max": "0"
      },
      {
        "id": "HealthcareService.location.identifier.system",
        "path": "HealthcareService.location.identifier.system",
        "min": 1
      },
      {
        "id": "HealthcareService.location.identifier.value",
        "path": "HealthcareService.location.identifier.value",
        "min": 1
      },
      {
        "id": "HealthcareService.location.identifier.period",
        "path": "HealthcareService.location.identifier.period",
        "max": "0"
      },
      {
        "id": "HealthcareService.location.identifier.assigner",
        "path": "HealthcareService.location.identifier.assigner",
        "max": "0"
      },
      {
        "id": "HealthcareService.location.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.location.display",
        "min": 1
      },
      {
        "id": "HealthcareService.name",
        "path": "HealthcareService.name",
        "min": 1,
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.name"
          }
        ]
      },
      {
        "id": "HealthcareService.comment",
        "path": "HealthcareService.comment",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.description"
          }
        ]
      },
      {
        "id": "HealthcareService.extraDetails",
        "path": "HealthcareService.extraDetails",
        "max": "0"
      },
      {
        "id": "HealthcareService.photo",
        "path": "HealthcareService.photo",
        "max": "0"
      },
      {
        "id": "HealthcareService.telecom.system",
        "path": "HealthcareService.telecom.system",
        "min": 1
      },
      {
        "id": "HealthcareService.telecom.value",
        "path": "HealthcareService.telecom.value",
        "min": 1
      },
      {
        "id": "HealthcareService.telecom.use",
        "path": "HealthcareService.telecom.use",
        "max": "0"
      },
      {
        "id": "HealthcareService.telecom.period",
        "path": "HealthcareService.telecom.period",
        "max": "0"
      },
      {
        "id": "HealthcareService.coverageArea.reference",
        "path": "HealthcareService.coverageArea.reference",
        "max": "0"
      },
      {
        "id": "HealthcareService.coverageArea.identifier.use",
        "path": "HealthcareService.coverageArea.identifier.use",
        "max": "0"
      },
      {
        "id": "HealthcareService.coverageArea.identifier.type",
        "path": "HealthcareService.coverageArea.identifier.type",
        "max": "0"
      },
      {
        "id": "HealthcareService.coverageArea.identifier.system",
        "path": "HealthcareService.coverageArea.identifier.system",
        "min": 1,
        "type": [
          {
            "code": "uri",
            "profile": "http://eteryt.stat.gov.pl/eTeryt/rejestr_teryt"
          }
        ]
      },
      {
        "id": "HealthcareService.coverageArea.identifier.value",
        "path": "HealthcareService.coverageArea.identifier.value",
        "min": 1
      },
      {
        "id": "HealthcareService.coverageArea.identifier.period",
        "path": "HealthcareService.coverageArea.identifier.period",
        "max": "0"
      },
      {
        "id": "HealthcareService.coverageArea.identifier.assigner",
        "path": "HealthcareService.coverageArea.identifier.assigner",
        "max": "0"
      },
      {
        "id": "HealthcareService.coverageArea.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.coverageArea.display",
        "min": 1
      },
      {
        "id": "HealthcareService.serviceProvisionCode",
        "path": "HealthcareService.serviceProvisionCode",
        "max": "0"
      },
      {
        "id": "HealthcareService.eligibility",
        "path": "HealthcareService.eligibility",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.eligibilityCode"
          }
        ]
      },
      {
        "id": "HealthcareService.eligibility.coding.system",
        "path": "HealthcareService.eligibility.coding.system",
        "min": 1
      },
      {
        "id": "HealthcareService.eligibility.coding.version",
        "path": "HealthcareService.eligibility.coding.version",
        "max": "0"
      },
      {
        "id": "HealthcareService.eligibility.coding.code",
        "path": "HealthcareService.eligibility.coding.code",
        "min": 1
      },
      {
        "id": "HealthcareService.eligibility.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.eligibility.coding.display",
        "min": 1
      },
      {
        "id": "HealthcareService.eligibility.coding.userSelected",
        "path": "HealthcareService.eligibility.coding.userSelected",
        "max": "0"
      },
      {
        "id": "HealthcareService.eligibility.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.eligibility.text",
        "max": "0"
      },
      {
        "id": "HealthcareService.eligibilityNote",
        "path": "HealthcareService.eligibilityNote",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HealthProgram.eligibiityNote"
          }
        ]
      },
      {
        "id": "HealthcareService.programName",
        "path": "HealthcareService.programName",
        "max": "0"
      },
      {
        "id": "HealthcareService.characteristic",
        "path": "HealthcareService.characteristic",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "HeatlhProgram.scopeCode"
          }
        ]
      },
      {
        "id": "HealthcareService.characteristic.coding",
        "path": "HealthcareService.characteristic.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "HealthcareService.characteristic.coding.system",
        "path": "HealthcareService.characteristic.coding.system",
        "min": 1
      },
      {
        "id": "HealthcareService.characteristic.coding.version",
        "path": "HealthcareService.characteristic.coding.version",
        "max": "0"
      },
      {
        "id": "HealthcareService.characteristic.coding.code",
        "path": "HealthcareService.characteristic.coding.code",
        "min": 1
      },
      {
        "id": "HealthcareService.characteristic.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.characteristic.coding.display",
        "min": 1
      },
      {
        "id": "HealthcareService.characteristic.coding.userSelected",
        "path": "HealthcareService.characteristic.coding.userSelected",
        "max": "0"
      },
      {
        "id": "HealthcareService.characteristic.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "HealthcareService.characteristic.text",
        "max": "0"
      },
      {
        "id": "HealthcareService.referralMethod",
        "path": "HealthcareService.referralMethod",
        "max": "0"
      },
      {
        "id": "HealthcareService.appointmentRequired",
        "path": "HealthcareService.appointmentRequired",
        "max": "0"
      },
      {
        "id": "HealthcareService.availableTime",
        "path": "HealthcareService.availableTime",
        "max": "0"
      },
      {
        "id": "HealthcareService.notAvailable",
        "path": "HealthcareService.notAvailable",
        "max": "0"
      },
      {
        "id": "HealthcareService.availabilityExceptions",
        "path": "HealthcareService.availabilityExceptions",
        "max": "0"
      },
      {
        "id": "HealthcareService.endpoint",
        "path": "HealthcareService.endpoint",
        "max": "0"
      }
    ]
  }
}