{
  "resourceType": "Bundle",
  "id": "7eb6c422-9264-422e-a92c-6a8369b94db4",
  "meta": {
    "profile": [
      "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/bundle|1.0.0"
    ]
  },
  "type": "message",
  "timestamp": "2026-10-25T21:53:53.351+03:00",
  "entry": [
    {
      "fullUrl": "http://nphies.sa/MessageHeader/5d777bd8-bff9-4132-af40-6c22f4aa3a5d",
      "resource": {
        "resourceType": "MessageHeader",
        "id": "5d777bd8-bff9-4132-af40-6c22f4aa3a5d",
        "meta": {
          "profile": [
            "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/message-header|1.0.0"
          ]
        },
        "eventCoding": {
          "system": "http://nphies.sa/terminology/CodeSystem/ksa-message-events",
          "code": "poll-response"
        },
        "destination": [
          {
            "endpoint": "http://nphies.sa/license/provider-license/10000300385539",
            "receiver": {
              "type": "Organization",
              "identifier": {
                "system": "http://nphies.sa/license/provider-license",
                "value": "10000300385539"
              }
            }
          }
        ],
        "sender": {
          "type": "Organization",
          "identifier": {
            "system": "http://nphies.sa/license/nphies",
            "value": "NPHIES"
          }
        },
        "source": {
          "endpoint": "http://nphies.sa/"
        },
        "response": {
          "identifier": "721008fc-ef86-4898-838c-a29290976bd2",
          "code": "ok"
        }
      }
    },
    {
      "fullUrl": "http://nphies.sa/Task/5b8475f8-5521-4584-bf9a-a63d00fd9fee",
      "resource": {
        "resourceType": "Task",
        "id": "5b8475f8-5521-4584-bf9a-a63d00fd9fee",
        "meta": {
          "profile": [
            "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/task|1.0.0"
          ],
          "tag": [
            {
              "code": "NPHIES generated",
              "display": "NPHIES generated"
            }
          ]
        },
        "identifier": [
          {
            "system": "http://www.AltadwyAlhayah.com/Task",
            "value": "619"
          }
        ],
        "status": "completed",
        "intent": "order",
        "priority": "stat",
        "code": {
          "coding": [
            {
              "system": "http://nphies.sa/terminology/CodeSystem/task-code",
              "code": "poll"
            }
          ]
        },
        "authoredOn": "2026-09-25",
        "lastModified": "2026-10-25",
        "requester": {
          "reference": "Organization/40"
        },
        "owner": {
          "identifier": {
            "system": "http://nphies.sa/license/nphies",
            "value": "NPHIES"
          }
        },
        "input": [
          {
            "type": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/task-input-type",
                  "code": "include-message-type"
                }
              ]
            },
            "valueCode": "priorauth-response"
          },
          {
            "type": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/task-input-type",
                  "code": "period"
                }
              ]
            },
            "valuePeriod": {
              "start": "2026-09-25T00:00:00.000+03:00",
              "end": "2026-10-25T23:59:59.999+03:00"
            }
          },
          {
            "type": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/task-input-type",
                  "code": "count"
                }
              ]
            },
            "valuePositiveInt": 10
          }
        ]
      }
    },
    {
      "fullUrl": "http://www.AltadwyAlhayah.com/Organization/40",
      "resource": {
        "resourceType": "Organization",
        "id": "40",
        "meta": {
          "profile": [
            "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization|1.0.0"
          ]
        },
        "extension": [
          {
            "url": "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-provider-type",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/provider-type",
                  "code": "5",
                  "display": "Clinic"
                }
              ]
            }
          }
        ],
        "identifier": [
          {
            "use": "official",
            "system": "http://nphies.sa/license/provider-license",
            "value": "10000300385539"
          }
        ],
        "active": true,
        "type": [
          {
            "coding": [
              {
                "system": "http://nphies.sa/terminology/CodeSystem/organization-type",
                "code": "prov"
              }
            ]
          }
        ],
        "name": "فرع تداوي والحياة الطبي"
      }
    }
  ]
}