{
  "resourceType": "StructureDefinition",
  "url": "https://bghmc.org/fhir/StructureDefinition/HealthFacility",
  "name": "HealthFacility",
  "status": "draft",
  "date": "2023-11-06T04:54:59.1556306+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization",
        "path": "Organization",
        "short": "Philhealth Konsulta Provider",
        "definition": "A healthcare facility of any level accredited by the Philippine Health Insurance Corporation (PHIC or PhilHealth)."
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "short": "Facility Code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.use",
        "path": "Organization.identifier.use",
        "max": "0"
      },
      {
        "id": "Organization.identifier.type",
        "path": "Organization.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.type.coding",
        "path": "Organization.identifier.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.type.coding.system",
        "path": "Organization.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.type.coding.version",
        "path": "Organization.identifier.type.coding.version",
        "min": 1,
        "fixedString": "5.0.0",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.type.coding.code",
        "path": "Organization.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "PRN",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.type.coding.display",
        "path": "Organization.identifier.type.coding.display",
        "min": 1,
        "fixedString": "Provider number"
      },
      {
        "id": "Organization.identifier.type.coding.userSelected",
        "path": "Organization.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Organization.identifier.type.text",
        "path": "Organization.identifier.type.text",
        "min": 1,
        "fixedString": "Facility Code",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.system",
        "path": "Organization.identifier.system",
        "max": "0"
      },
      {
        "id": "Organization.identifier.value",
        "path": "Organization.identifier.value",
        "short": "Facility Code",
        "definition": "A unique facility code assigned to the healthcare facility by the Department of Health.",
        "comment": "Starts with 'DOH' followed by a 15-digit code",
        "min": 1,
        "patternString": "^DOH\\\\d{15}$",
        "maxLength": 18,
        "mustSupport": true
      },
      {
        "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",
        "short": "Whether the provider has an active license.",
        "definition": "Whether the provider has an active license.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "short": "Care Provider",
        "min": 1,
        "max": "1",
        "fixedCodeableConcept": {
          "text": "Care Provider"
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "https://bghmc.org/fhir/CodeSystem/HealthFacilityType"
        }
      },
      {
        "id": "Organization.type.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Organization.telecom:website",
        "path": "Organization.telecom",
        "sliceName": "website"
      },
      {
        "id": "Organization.telecom:website.system",
        "path": "Organization.telecom.system",
        "min": 1,
        "fixedCode": "url"
      },
      {
        "id": "Organization.telecom:website.value",
        "path": "Organization.telecom.value",
        "min": 1
      },
      {
        "id": "Organization.telecom:website.use",
        "path": "Organization.telecom.use",
        "max": "0"
      },
      {
        "id": "Organization.telecom:website.rank",
        "path": "Organization.telecom.rank",
        "max": "0"
      },
      {
        "id": "Organization.telecom:website.period",
        "path": "Organization.telecom.period",
        "max": "0"
      },
      {
        "id": "Organization.telecom:email",
        "path": "Organization.telecom",
        "sliceName": "email",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "https://bghmc.org/fhir/StructureDefinition/EmailContactPoint"
            ]
          }
        ]
      },
      {
        "id": "Organization.telecom:landline",
        "path": "Organization.telecom",
        "sliceName": "landline",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "https://bghmc.org/fhir/StructureDefinition/LandlineContactPoint"
            ]
          }
        ]
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "max": "0"
      },
      {
        "id": "Organization.contact",
        "path": "Organization.contact",
        "max": "0"
      },
      {
        "id": "Organization.endpoint",
        "path": "Organization.endpoint",
        "max": "0"
      }
    ]
  }
}