{
  "resourceType": "StructureDefinition",
  "id": "pcm-endpoint",
  "url": "http://pcm.fhir.health.gov.il/StructureDefinition/pcm-endpoint",
  "version": "0.1.6",
  "name": "PCMEndpoint",
  "title": "PCM Endpoint",
  "status": "active",
  "description": "FHIR REST API endpoint of a Data Source organization. Created/updated by the organization and editable by PCM administrators.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Endpoint",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Endpoint",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Endpoint.extension",
        "path": "Endpoint.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Endpoint.extension:applicableCertificates",
        "path": "Endpoint.extension",
        "sliceName": "applicableCertificates",
        "comment": "Thumbprint of a certificate registered in NTN that is applicable to this endpoint.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://pcm.fhir.health.gov.il/StructureDefinition/ext-applicable-certificates"
            ]
          }
        ]
      },
      {
        "id": "Endpoint.status",
        "path": "Endpoint.status",
        "comment": "PCM and/or the organization controls whether this endpoint is currently usable."
      },
      {
        "id": "Endpoint.connectionType",
        "path": "Endpoint.connectionType",
        "comment": "PCM endpoints are FHIR REST endpoints."
      },
      {
        "id": "Endpoint.connectionType.system",
        "path": "Endpoint.connectionType.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/endpoint-connection-type"
      },
      {
        "id": "Endpoint.connectionType.code",
        "path": "Endpoint.connectionType.code",
        "min": 1,
        "fixedCode": "hl7-fhir-rest"
      },
      {
        "id": "Endpoint.name",
        "path": "Endpoint.name",
        "max": "0"
      },
      {
        "id": "Endpoint.managingOrganization",
        "path": "Endpoint.managingOrganization",
        "comment": "The Data Source organization that owns this endpoint.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://pcm.fhir.health.gov.il/StructureDefinition/pcm-organization-source"
            ]
          }
        ]
      },
      {
        "id": "Endpoint.contact",
        "path": "Endpoint.contact",
        "max": "0"
      },
      {
        "id": "Endpoint.period",
        "path": "Endpoint.period",
        "max": "0"
      },
      {
        "id": "Endpoint.payloadType",
        "path": "Endpoint.payloadType",
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "urn:ihe:pcc:xphr:2007",
              "system": "urn:oid:1.3.6.1.4.1.19376.1.2.3"
            }
          ]
        }
      },
      {
        "id": "Endpoint.payloadType.coding",
        "path": "Endpoint.payloadType.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Endpoint.payloadMimeType",
        "path": "Endpoint.payloadMimeType",
        "max": "0"
      },
      {
        "id": "Endpoint.address",
        "path": "Endpoint.address",
        "comment": "Base URL of the organization's FHIR REST API."
      },
      {
        "id": "Endpoint.header",
        "path": "Endpoint.header",
        "max": "0"
      }
    ]
  }
}