Polaris FHIR Implementation Guide
1.9.8 - ci-build

Polaris FHIR Implementation Guide - Local Development build (v1.9.8) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Polaris Invoice Example - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Invoice ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "polaris-invoice-example"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "https://fhir.apps.health/StructureDefinition/polaris-core-invoice"^^xsd:anyURI ;
fhir:link <https://fhir.apps.health/StructureDefinition/polaris-core-invoice>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">OHIP bill for Avery Linwood, April 8, 2026 visit — general assessment A007 ($37.95) with chronic care premium K030. Total $61.45.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "https://fhir.apps.health/StructureDefinition/oscar-billing-status-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:code ;
fhir:v "O"     ]
  ] [
fhir:url [ fhir:v "https://fhir.apps.health/StructureDefinition/oscar-billing-shadow-bill-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:boolean ;
fhir:v false     ]
  ] [
fhir:url [ fhir:v "https://fhir.apps.health/StructureDefinition/oscar-billing-pay-program-extension"^^xsd:anyURI ] ;
fhir:value [
a fhir:code ;
fhir:v "HCP"     ]
  ] ) ; # 
  fhir:identifier ( [
fhir:use [ fhir:v "official" ] ;
fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-invoice-identifier"^^xsd:anyURI ] ;
fhir:value [ fhir:v "INV-avery-20250408-001" ]
  ] [
fhir:use [ fhir:v "secondary" ] ;
fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-invoice-header-id"^^xsd:anyURI ] ;
fhir:value [ fhir:v "78234" ]
  ] ) ; # 
  fhir:status [ fhir:v "issued"] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/avery-linwood" ]
  ] ; # 
  fhir:date [ fhir:v "2026-04-08T10:15:00-04:00"^^xsd:dateTime] ; # 
  fhir:participant ( [
fhir:role [
fhir:text [ fhir:v "billing" ]     ] ;
fhir:actor [
fhir:reference [ fhir:v "Practitioner/dr-navarro" ]     ]
  ] ) ; # 
  fhir:issuer [
fhir:reference [ fhir:v "Organization/cedarbrook-clinic" ]
  ] ; # 
  fhir:lineItem ( [
    ( fhir:extension [
fhir:url [ fhir:v "https://apps.health/InvoiceLineItem/diagnostic1"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/sid/icd-9-cm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "250" ]         ] ) ;
fhir:text [ fhir:v "Diabetes mellitus" ]       ]     ] ) ;
fhir:sequence [ fhir:v "1"^^xsd:positiveInteger ] ;
fhir:chargeItem [
a fhir:CodeableConcept ;
      ( fhir:coding [
fhir:system [ fhir:v "https://fhir.apps.health/CodeSystem/on-ohip-schedule-of-benefits"^^xsd:anyURI ] ;
fhir:code [ fhir:v "A007" ] ;
fhir:display [ fhir:v "General Assessment" ]       ] ) ;
fhir:text [ fhir:v "General Assessment" ]     ] ;
    ( fhir:priceComponent [
fhir:type [ fhir:v "base" ] ;
fhir:factor [ fhir:v "1"^^xsd:decimal ] ;
fhir:amount [
fhir:value [ fhir:v 37.95 ] ;
fhir:currency [ fhir:v "CAD" ]       ]     ] )
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "https://apps.health/InvoiceLineItem/diagnostic1"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
        ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/sid/icd-9-cm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "250" ]         ] ) ;
fhir:text [ fhir:v "Diabetes mellitus" ]       ]     ] ) ;
fhir:sequence [ fhir:v "2"^^xsd:positiveInteger ] ;
fhir:chargeItem [
a fhir:CodeableConcept ;
      ( fhir:coding [
fhir:system [ fhir:v "https://fhir.apps.health/CodeSystem/on-ohip-schedule-of-benefits"^^xsd:anyURI ] ;
fhir:code [ fhir:v "K030" ] ;
fhir:display [ fhir:v "Chronic Disease Management Premium" ]       ] ) ;
fhir:text [ fhir:v "Chronic Disease Management Premium" ]     ] ;
    ( fhir:priceComponent [
fhir:type [ fhir:v "base" ] ;
fhir:factor [ fhir:v "1"^^xsd:decimal ] ;
fhir:amount [
fhir:value [ fhir:v 23.50 ] ;
fhir:currency [ fhir:v "CAD" ]       ]     ] )
  ] ) ; # 
  fhir:totalGross [
fhir:value [ fhir:v 61.45 ] ;
fhir:currency [ fhir:v "CAD" ]
  ] ; # 
  fhir:note ( [
fhir:text [ fhir:v "15-minute visit, diabetes management discussion" ]
  ] ) . #