{
  "resourceType": "StructureDefinition",
  "id": "c536c7a2-d04c-41c4-8c5a-1f78cc060ba5",
  "meta": {
    "lastUpdated": "2019-05-23T09:07:34.2430743+00:00"
  },
  "url": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphOrganizationalEntity",
  "name": "PLNiphOrganizationalEntity",
  "status": "draft",
  "date": "2019-05-23T09:07:33.877613+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Organization.extension",
        "path": "Organization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Organization.extension:regionalLevelCode",
        "path": "Organization.extension",
        "sliceName": "regionalLevelCode",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtOrganizationalEntityRegionalLevelCode"
          }
        ],
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.regionalLevelCode"
          }
        ]
      },
      {
        "id": "Organization.extension:additionalName",
        "path": "Organization.extension",
        "sliceName": "additionalName",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphExtOrganizationalEntityAdditionalName"
          }
        ],
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.additionalName"
          }
        ]
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.identifier"
          }
        ]
      },
      {
        "id": "Organization.identifier.use",
        "path": "Organization.identifier.use",
        "max": "0"
      },
      {
        "id": "Organization.identifier.type",
        "path": "Organization.identifier.type",
        "min": 1,
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.identifierTypeCode"
          }
        ]
      },
      {
        "id": "Organization.identifier.type.coding",
        "path": "Organization.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.identifier.type.coding.system",
        "path": "Organization.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Organization.identifier.type.coding.version",
        "path": "Organization.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Organization.identifier.type.coding.code",
        "path": "Organization.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Organization.identifier.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Organization.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Organization.identifier.type.coding.userSelected",
        "path": "Organization.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Organization.identifier.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Organization.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Organization.identifier.system",
        "path": "Organization.identifier.system",
        "min": 1
      },
      {
        "id": "Organization.identifier.value",
        "path": "Organization.identifier.value",
        "min": 1
      },
      {
        "id": "Organization.identifier.period",
        "path": "Organization.identifier.period",
        "max": "0"
      },
      {
        "id": "Organization.identifier.assigner",
        "path": "Organization.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Organization.active",
        "path": "Organization.active",
        "min": 1,
        "type": [
          {
            "code": "boolean",
            "profile": "true"
          }
        ],
        "fixedBoolean": true
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.typeCode"
          }
        ]
      },
      {
        "id": "Organization.type.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.type.coding.system",
        "path": "Organization.type.coding.system",
        "min": 1
      },
      {
        "id": "Organization.type.coding.version",
        "path": "Organization.type.coding.version",
        "max": "0"
      },
      {
        "id": "Organization.type.coding.code",
        "path": "Organization.type.coding.code",
        "min": 1
      },
      {
        "id": "Organization.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Organization.type.coding.display",
        "min": 1
      },
      {
        "id": "Organization.type.coding.userSelected",
        "path": "Organization.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Organization.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Organization.type.text",
        "max": "0"
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "min": 1,
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.name"
          }
        ]
      },
      {
        "id": "Organization.alias",
        "path": "Organization.alias",
        "max": "0"
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "max": "2"
      },
      {
        "id": "Organization.telecom:phoneNumber",
        "path": "Organization.telecom",
        "sliceName": "phoneNumber",
        "max": "2",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.phoneNumber"
          }
        ]
      },
      {
        "id": "Organization.telecom:phoneNumber.system",
        "path": "Organization.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Organization.telecom:phoneNumber.use",
        "path": "Organization.telecom.use",
        "max": "0"
      },
      {
        "id": "Organization.telecom:phoneNumber.rank",
        "path": "Organization.telecom.rank",
        "max": "0"
      },
      {
        "id": "Organization.telecom:phoneNumber.period",
        "path": "Organization.telecom.period",
        "max": "0"
      },
      {
        "id": "Organization.telecom:email",
        "path": "Organization.telecom",
        "sliceName": "email",
        "max": "2",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.email"
          }
        ]
      },
      {
        "id": "Organization.telecom:email.system",
        "path": "Organization.telecom.system",
        "fixedCode": "email"
      },
      {
        "id": "Organization.telecom:email.use",
        "path": "Organization.telecom.use",
        "max": "0"
      },
      {
        "id": "Organization.telecom:email.rank",
        "path": "Organization.telecom.rank",
        "max": "0"
      },
      {
        "id": "Organization.telecom:email.period",
        "path": "Organization.telecom.period",
        "max": "0"
      },
      {
        "id": "Organization.address",
        "path": "Organization.address",
        "max": "1",
        "mapping": [
          {
            "identity": "profibaza-temp-registry",
            "map": "OrganizationalEntity.address"
          }
        ]
      },
      {
        "id": "Organization.address.use",
        "path": "Organization.address.use",
        "max": "0"
      },
      {
        "id": "Organization.address.type",
        "path": "Organization.address.type",
        "max": "0"
      },
      {
        "id": "Organization.address.text",
        "path": "Organization.address.text",
        "max": "0"
      },
      {
        "id": "Organization.address.line",
        "path": "Organization.address.line",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.address.city",
        "path": "Organization.address.city",
        "min": 1
      },
      {
        "id": "Organization.address.district",
        "path": "Organization.address.district",
        "max": "0"
      },
      {
        "id": "Organization.address.state",
        "path": "Organization.address.state",
        "max": "0"
      },
      {
        "id": "Organization.address.postalCode",
        "path": "Organization.address.postalCode",
        "min": 1
      },
      {
        "id": "Organization.address.country",
        "path": "Organization.address.country",
        "max": "0"
      },
      {
        "id": "Organization.address.period",
        "path": "Organization.address.period",
        "max": "0"
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "max": "0"
      },
      {
        "id": "Organization.contact",
        "path": "Organization.contact",
        "max": "0"
      },
      {
        "id": "Organization.endpoint",
        "path": "Organization.endpoint",
        "max": "0"
      }
    ]
  }
}