{
  "resourceType" : "ClaimResponse",
  "meta" : {
    "source" : "https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A",
    "profile" : ["https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/NzPharmacyClaimResponse"],
    "tag" : [{
      "system" : "https://hub.services.digital.health.nz/ns/correlation-id",
      "code" : "123e4567-e89b-12d3-a456-426614174011"
    }]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ClaimResponse NzPharmacyClaimResponseExample</b></p><a name=\"NzPharmacyClaimResponseExample\"> </a><a name=\"hcNzPharmacyClaimResponseExample\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Information Source: <a href=\"https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A\">https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A</a></p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-NzPharmacyClaimResponse.html\">New Zealand Pharmacy Claim Response</a></p><p style=\"margin-bottom: 0px\">Tag: </p></div><p><b>identifier</b>: <code>https://standards.digital.health.nz/ns/claim-response-identifier</code>/a1b2c3d4-e5f6-7890-abcd-ef1234567890\u00a0(use:\u00a0official)</p><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/nz-claim-type pharmacy}\">pharmacy</span></p><p><b>subType</b>: <span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/nz-claim-subtypes ICP}\">ICP</span></p><p><b>use</b>: Claim</p><p><b>patient</b>: Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-nhi.html\" title=\"NHI number\">NHI</a>/ZZZ0008</p><p><b>created</b>: 2025-01-01 00:00:00+0000</p><p><b>insurer</b>: Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-hpiOrganization.html\" title=\"HPI organizations\">HPIOrganization</a>/G0K357-H</p><p><b>requestor</b>: Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-hpiOrganization.html\" title=\"HPI organizations\">HPIOrganization</a>/GZZ999-9</p><p><b>request</b>: <a href=\"Claim-NzPharmacyClaimExample2.html\">Claim: extension = AG12345,Community Residential Care,AG54321; identifier = https://provider-org-name.co.nz/ns/claim-identifier#C123456\u00a0(use:\u00a0official); status = active; type = pharmacy; subType = ICPSA; use = claim; billablePeriod = 2025-01-01 --&gt; 2025-01-01; created = 2025-01-01 00:00:00+1300; priority = Normal</a></p><p><b>outcome</b>: Processing Complete</p><blockquote><p><b>item</b></p><p><b>Shared Care Product Or Service</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/purchase-unit PU1234}\">PU1234</span></p><blockquote><p><b>Shared Care Review Outcome</b></p><ul><li>decision: <span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/claim-decision-cs approved}\">Approved</span></li></ul></blockquote><p><b>itemSequence</b>: 1</p><blockquote><p><b>adjudication</b></p><p><b>category</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/pharmacy-adjudication-category amountpaid}\">Amount Paid</span></p><p><b>reason</b>: <span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/adjudication-reason-codes policy}\">policy</span></p><h3>Amounts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>100</td><td>New Zealand dollar</td></tr></table></blockquote><blockquote><p><b>detail</b></p><p><b>Pharmacy Claim Item Detail Product Or Service</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/pharmacode 123456}\">123456</span></p><blockquote><p><b>Pharmacy Claim Item Detail Review Outcome</b></p><ul><li>decision: <span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/claim-decision-cs approved}\">Approved</span></li></ul></blockquote><p><b>Shared Care Claim Trace Number</b>: <code>https://example.com/system</code>/UUID-123456</p><p><b>detailSequence</b>: 1</p><blockquote><p><b>adjudication</b></p><p><b>category</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/pharmacy-adjudication-category drugcost}\">Drug Cost</span></p><p><b>reason</b>: <span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/adjudication-reason-codes policy}\">policy</span></p><h3>Amounts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>50</td><td>New Zealand dollar</td></tr></table></blockquote><blockquote><p><b>adjudication</b></p><p><b>category</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/pharmacy-adjudication-category pharmaceuticalsubsidy}\">Pharmaceutical Subsidy</span></p><h3>Amounts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>30</td><td>New Zealand dollar</td></tr></table></blockquote><blockquote><p><b>adjudication</b></p><p><b>category</b>: <span title=\"Codes:{https://standards.digital.health.nz/ns/pharmacy-adjudication-category amountpaid}\">Amount Paid</span></p><h3>Amounts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>100</td><td>New Zealand dollar</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>payment</b></p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/ex-paymenttype complete}\">Complete</span></p><p><b>date</b>: 2025-01-01</p><h3>Amounts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>100</td><td>New Zealand dollar</td></tr></table></blockquote><h3>Errors</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ItemSequence</b></td><td><b>DetailSequence</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td>1</td><td><span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/claim-decision-reason-cs DET055.002}\">NHI number cannot be found in our records</span></td></tr></table></div>"
  },
  "identifier" : [{
    "use" : "official",
    "system" : "https://standards.digital.health.nz/ns/claim-response-identifier",
    "value" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }],
  "status" : "active",
  "type" : {
    "coding" : [{
      "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/nz-claim-type",
      "code" : "pharmacy"
    }]
  },
  "subType" : {
    "coding" : [{
      "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/nz-claim-subtypes",
      "code" : "ICP"
    }]
  },
  "use" : "claim",
  "patient" : {
    "type" : "Patient",
    "identifier" : {
      "system" : "https://standards.digital.health.nz/ns/nhi-id",
      "value" : "ZZZ0008"
    }
  },
  "created" : "2025-01-01T00:00:00-00:00",
  "insurer" : {
    "type" : "Organization",
    "identifier" : {
      "system" : "https://standards.digital.health.nz/ns/hpi-organisation-id",
      "value" : "G0K357-H"
    }
  },
  "requestor" : {
    "type" : "Organization",
    "identifier" : {
      "system" : "https://standards.digital.health.nz/ns/hpi-organisation-id",
      "value" : "GZZ999-9"
    }
  },
  "request" : {
    "reference" : "Claim/NzPharmacyClaimExample2"
  },
  "outcome" : "complete",
  "item" : [{
    "extension" : [{
      "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-product-or-service",
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "https://standards.digital.health.nz/ns/purchase-unit",
          "code" : "PU1234"
        }]
      }
    },
    {
      "extension" : [{
        "url" : "decision",
        "valueCodeableConcept" : {
          "coding" : [{
            "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/claim-decision-cs",
            "code" : "approved"
          }]
        }
      }],
      "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-review-outcome"
    }],
    "itemSequence" : 1,
    "adjudication" : [{
      "category" : {
        "coding" : [{
          "system" : "https://standards.digital.health.nz/ns/pharmacy-adjudication-category",
          "code" : "amountpaid"
        }]
      },
      "reason" : {
        "coding" : [{
          "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/adjudication-reason-codes",
          "code" : "policy"
        }]
      },
      "amount" : {
        "value" : 100,
        "currency" : "NZD"
      }
    }],
    "detail" : [{
      "extension" : [{
        "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/pharmacy-item-detail-product-or-service",
        "valueCodeableConcept" : {
          "coding" : [{
            "system" : "https://standards.digital.health.nz/ns/pharmacode",
            "code" : "123456"
          }]
        }
      },
      {
        "extension" : [{
          "url" : "decision",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/claim-decision-cs",
              "code" : "approved"
            }]
          }
        }],
        "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/pharmacy-item-detail-review-outcome"
      },
      {
        "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-trace-number",
        "valueIdentifier" : {
          "system" : "https://example.com/system",
          "value" : "UUID-123456"
        }
      }],
      "detailSequence" : 1,
      "adjudication" : [{
        "category" : {
          "coding" : [{
            "system" : "https://standards.digital.health.nz/ns/pharmacy-adjudication-category",
            "code" : "drugcost"
          }]
        },
        "reason" : {
          "coding" : [{
            "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/adjudication-reason-codes",
            "code" : "policy"
          }]
        },
        "amount" : {
          "value" : 50,
          "currency" : "NZD"
        }
      },
      {
        "category" : {
          "coding" : [{
            "system" : "https://standards.digital.health.nz/ns/pharmacy-adjudication-category",
            "code" : "pharmaceuticalsubsidy"
          }]
        },
        "amount" : {
          "value" : 30,
          "currency" : "NZD"
        }
      },
      {
        "category" : {
          "coding" : [{
            "system" : "https://standards.digital.health.nz/ns/pharmacy-adjudication-category",
            "code" : "amountpaid"
          }]
        },
        "amount" : {
          "value" : 100,
          "currency" : "NZD"
        }
      }]
    }]
  }],
  "payment" : {
    "type" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/ex-paymenttype",
        "code" : "complete"
      }]
    },
    "date" : "2025-01-01",
    "amount" : {
      "value" : 100,
      "currency" : "NZD"
    }
  },
  "error" : [{
    "itemSequence" : 1,
    "detailSequence" : 1,
    "code" : {
      "coding" : [{
        "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/claim-decision-reason-cs",
        "code" : "DET055.002"
      }],
      "text" : "NHI number cannot be found in our records"
    }
  }]
}