# Example of an invoice - Magentus Practice Management FHIR Implementation Guide v1.2.60

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **Example of an invoice**

## Example Invoice: Example of an invoice



## Resource Content

```json
{
  "resourceType" : "Invoice",
  "id" : "19596b00-ee0a-54de-98e8-ccf6ed86a93e",
  "meta" : {
    "profile" : ["http://fhir.geniesolutions.io/StructureDefinition/genie-invoice"]
  },
  "contained" : [{
    "resourceType" : "ChargeItem",
    "id" : "22",
    "meta" : {
      "profile" : ["http://fhir.geniesolutions.io/StructureDefinition/genie-chargeitem"]
    },
    "extension" : [{
      "url" : "http://fhir.geniesolutions.io/StructureDefinition/chargeitem-category",
      "valueCodeableConcept" : {
        "text" : "investigation"
      }
    }],
    "status" : "billed",
    "code" : {
      "coding" : [{
        "system" : "urn:oid:1.2.36.1.2001.1005.21",
        "code" : "105",
        "display" : "Specialist. Subsequent attendance"
      }]
    },
    "subject" : {
      "reference" : "Patient/1078d551-7be2-49f7-a122-c230b8757f2f",
      "type" : "Patient",
      "display" : "Smith, Mary"
    },
    "occurrenceDateTime" : "2021-09-29",
    "performer" : [{
      "actor" : {
        "type" : "Practitioner",
        "identifier" : {
          "type" : {
            "coding" : [{
              "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
              "code" : "EI",
              "display" : "Employee number"
            }],
            "text" : "Local system user name"
          },
          "system" : "http://fhir.geniesolutions.io/user-name/GEN15943-3473CDFA0960754799BFC1DB8660C0DF",
          "value" : "Dr A Demo",
          "assigner" : {
            "display" : "Genie Instance GEN15943-3473CDFA0960754799BFC1DB8660C0DF"
          }
        },
        "display" : "Dr A Demo"
      }
    }],
    "quantity" : {
      "value" : 1
    }
  },
  {
    "resourceType" : "ChargeItem",
    "id" : "23",
    "meta" : {
      "profile" : ["http://fhir.geniesolutions.io/StructureDefinition/genie-chargeitem"]
    },
    "status" : "billed",
    "code" : {
      "coding" : [{
        "system" : "urn:oid:1.2.36.1.2001.1005.21",
        "code" : "106",
        "display" : "Ophthalmology specialist consultation"
      }]
    },
    "subject" : {
      "reference" : "Patient/1078d551-7be2-49f7-a122-c230b8757f2f",
      "type" : "Patient",
      "display" : "Smith, Mary"
    },
    "occurrenceDateTime" : "2021-09-29",
    "performer" : [{
      "actor" : {
        "type" : "Practitioner",
        "identifier" : {
          "type" : {
            "coding" : [{
              "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
              "code" : "EI",
              "display" : "Employee number"
            }],
            "text" : "Local system user name"
          },
          "system" : "http://fhir.geniesolutions.io/user-name/GEN15943-3473CDFA0960754799BFC1DB8660C0DF",
          "value" : "Dr A Demo",
          "assigner" : {
            "display" : "Genie Instance GEN15943-3473CDFA0960754799BFC1DB8660C0DF"
          }
        },
        "display" : "Dr A Demo"
      }
    }],
    "quantity" : {
      "value" : 1
    }
  }],
  "status" : "issued",
  "type" : {
    "coding" : [{
      "system" : "http://fhir.geniesolutions.io/CodeSystem/invoice-type",
      "code" : "Self"
    },
    {
      "system" : "http://snomed.info/sct",
      "code" : "308540004",
      "display" : "Inpatient stay"
    }],
    "text" : "Self Inpatient"
  },
  "subject" : {
    "reference" : "Patient/1078d551-7be2-49f7-a122-c230b8757f2f",
    "type" : "Patient",
    "display" : "Smith, Mary"
  },
  "recipient" : {
    "reference" : "Patient/1078d551-7be2-49f7-a122-c230b8757f2f",
    "type" : "Patient",
    "display" : "Smith, Mary"
  },
  "date" : "2021-09-29T00:00:00.000+10:00",
  "participant" : [{
    "role" : {
      "text" : "creator"
    },
    "actor" : {
      "type" : "Practitioner",
      "identifier" : {
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "EI",
            "display" : "Employee number"
          }],
          "text" : "Local system user name"
        },
        "system" : "http://fhir.geniesolutions.io/user-name/GEN15943-3473CDFA0960754799BFC1DB8660C0DF",
        "value" : "Dr A Demo",
        "assigner" : {
          "display" : "Genie Instance GEN15943-3473CDFA0960754799BFC1DB8660C0DF"
        }
      },
      "display" : "Dr A Demo"
    }
  },
  {
    "role" : {
      "text" : "servicingProvider"
    },
    "actor" : {
      "type" : "Practitioner",
      "identifier" : {
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "EI",
            "display" : "Employee number"
          }],
          "text" : "Local system user name"
        },
        "system" : "http://fhir.geniesolutions.io/user-name/GEN15943-3473CDFA0960754799BFC1DB8660C0DF",
        "value" : "Dr A Demo",
        "assigner" : {
          "display" : "Genie Instance GEN15943-3473CDFA0960754799BFC1DB8660C0DF"
        }
      },
      "display" : "Dr A Demo"
    }
  }],
  "issuer" : {
    "reference" : "Organization/fdcca47c-e554-46e5-a71f-91ec855faa29"
  },
  "account" : {
    "reference" : "Account/f20d322f-72ce-507a-9b1a-073671f6158b",
    "display" : "Smith, Mary"
  },
  "lineItem" : [{
    "extension" : [{
      "url" : "http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment",
      "valueMoney" : {
        "value" : 100,
        "currency" : "AUD"
      }
    },
    {
      "url" : "http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance",
      "valueMoney" : {
        "value" : 65,
        "currency" : "AUD"
      }
    }],
    "sequence" : 1,
    "chargeItemReference" : {
      "reference" : "#22"
    },
    "priceComponent" : [{
      "type" : "base",
      "amount" : {
        "value" : 150,
        "currency" : "AUD"
      }
    },
    {
      "type" : "tax",
      "amount" : {
        "value" : 15,
        "currency" : "AUD"
      }
    }]
  },
  {
    "extension" : [{
      "url" : "http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance",
      "valueMoney" : {
        "value" : 118.8,
        "currency" : "AUD"
      }
    }],
    "sequence" : 2,
    "chargeItemReference" : {
      "reference" : "#23"
    },
    "priceComponent" : [{
      "type" : "base",
      "amount" : {
        "value" : 108,
        "currency" : "AUD"
      }
    },
    {
      "type" : "tax",
      "amount" : {
        "value" : 10.8,
        "currency" : "AUD"
      }
    }]
  }],
  "totalGross" : {
    "value" : 283.8
  }
}

```
