{
  "resourceType": "StructureDefinition",
  "id": "Invoice-my-core",
  "url": "http://fhir.hie.moh.gov.my/StructureDefinition/Invoice-my-core",
  "version": "1.0.0",
  "name": "InvoiceMyCore",
  "title": "Invoice (MY Core)",
  "status": "active",
  "date": "2024-02-12T04:04:09.5621857+00:00",
  "description": "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purposes.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Invoice",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Invoice",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Invoice.identifier",
        "path": "Invoice.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Invoice.identifier:invoiceNo",
        "path": "Invoice.identifier",
        "sliceName": "invoiceNo"
      },
      {
        "id": "Invoice.identifier:invoiceNo.system",
        "path": "Invoice.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.hie.moh.gov.my/sid/invoice-no"
      },
      {
        "id": "Invoice.identifier:invoiceNo.value",
        "path": "Invoice.identifier.value",
        "min": 1
      },
      {
        "id": "Invoice.identifier:endToEndId",
        "path": "Invoice.identifier",
        "sliceName": "endToEndId"
      },
      {
        "id": "Invoice.identifier:endToEndId.system",
        "path": "Invoice.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.hie.moh.gov.my/sid/end-to-end-id"
      },
      {
        "id": "Invoice.identifier:endToEndId.value",
        "path": "Invoice.identifier.value",
        "min": 1
      },
      {
        "id": "Invoice.identifier:endToendIdSign",
        "path": "Invoice.identifier",
        "sliceName": "endToendIdSign"
      },
      {
        "id": "Invoice.identifier:endToendIdSign.system",
        "path": "Invoice.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.hie.moh.gov.my/sid/end-to-end-id-sign"
      },
      {
        "id": "Invoice.identifier:endToendIdSign.value",
        "path": "Invoice.identifier.value",
        "min": 1
      },
      {
        "id": "Invoice.type",
        "path": "Invoice.type",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.hie.moh.gov.my/ValueSet/billing-type-my-core"
        }
      }
    ]
  }
}