openIMIS FHIR R4 Implementation Guide
1.0.0 - ci-build

openIMIS FHIR R4 Implementation Guide - Local Development build (v1.0.0). See the Directory of published versions

Resource Profile: OpenIMISInvoice - Mappings

Active as of 2022-05-31

Mappings for the openimis-invoice-invoice resource profile.

Mappings for HL7 v2 Mapping (http://hl7.org/v2)

OpenIMISInvoice
InvoiceFT1
   identifierFT1.2
      useN/A
      typeCX.5
         codingC*E.1-8, C*E.10-22
            systemC*E.3
            versionC*E.7
            codeC*E.1
            displayC*E.2 - but note this is not well followed
            userSelectedSometimes implied by being first
         textC*E.9. But note many systems use C*E.2 for this
      systemCX.4 / EI-2-4
      valueCX.1 / EI.1
      periodCX.7 + CX.8
      assignerCX.4 / (CX.4,CX.9,CX.10)
   identifier (Code)FT1.2
      useN/A
      typeCX.5
         codingC*E.1-8, C*E.10-22
            systemC*E.3
            versionC*E.7
            codeC*E.1
            displayC*E.2 - but note this is not well followed
            userSelectedSometimes implied by being first
         textC*E.9. But note many systems use C*E.2 for this
      systemCX.4 / EI-2-4
      valueCX.1 / EI.1
      periodCX.7 + CX.8
      assignerCX.4 / (CX.4,CX.9,CX.10)
   identifier (UUID)FT1.2
      useN/A
      typeCX.5
         codingC*E.1-8, C*E.10-22
            systemC*E.3
            versionC*E.7
            codeC*E.1
            displayC*E.2 - but note this is not well followed
            userSelectedSometimes implied by being first
         textC*E.9. But note many systems use C*E.2 for this
      systemCX.4 / EI-2-4
      valueCX.1 / EI.1
      periodCX.7 + CX.8
      assignerCX.4 / (CX.4,CX.9,CX.10)
   statusVaries by domain
   typeFT1.7
      codingC*E.1-8, C*E.10-22
      textC*E.9. But note many systems use C*E.2 for this
   recipientPV1 in proximity to FT1 segment
   dateVaries by domain
   issuerN/A
   lineItemEVN.5 or by domain
      chargeItem[x]EVN.5 or by domain
      chargeItem[x] (chargeItemCodeableConcept)EVN.5 or by domain
      priceComponentEVN.5 or by domain
         typeFT1.7
         codeFT1.7
            codingC*E.1-8, C*E.10-22
               systemC*E.3
               versionC*E.7
               codeC*E.1
               displayC*E.2 - but note this is not well followed
               userSelectedSometimes implied by being first
            textC*E.9. But note many systems use C*E.2 for this
         factorFT1.22
         amountFT1.22
            valueMO.Value
            currencyMO.Currency
   totalNetFT1.22
      valueMO.Value
      currencyMO.Currency
   totalGrossFT1.22
      valueMO.Value
      currencyMO.Currency
   noteNTE

Mappings for RIM Mapping (http://hl7.org/v3)

OpenIMISInvoice
InvoiceEntity. Role, or Act, Act[moodCode=EVN]
   textAct.text?
   containedN/A
   extensionN/A
   modifierExtensionN/A
   identifier.identifier
      idn/a
      extensionn/a
      useRole.code or implied by context
      typeRole.code or implied by context
         idn/a
         extensionn/a
         codingunion(., ./translation)
            idn/a
            extensionn/a
            system./codeSystem
            version./codeSystemVersion
            code./code
            displayCV.displayName
            userSelectedCD.codingRationale
         text./originalText[mediaType/code="text/plain"]/data
      systemII.root or Role.id.root
      valueII.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
      periodRole.effectiveTime or implied by context
      assignerII.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
   identifier (Code).identifier
      idn/a
      extensionn/a
      useRole.code or implied by context
      typeRole.code or implied by context
         idn/a
         extensionn/a
         codingunion(., ./translation)
            idn/a
            extensionn/a
            system./codeSystem
            version./codeSystemVersion
            code./code
            displayCV.displayName
            userSelectedCD.codingRationale
         text./originalText[mediaType/code="text/plain"]/data
      systemII.root or Role.id.root
      valueII.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
      periodRole.effectiveTime or implied by context
      assignerII.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
   identifier (UUID).identifier
      idn/a
      extensionn/a
      useRole.code or implied by context
      typeRole.code or implied by context
         idn/a
         extensionn/a
         codingunion(., ./translation)
            idn/a
            extensionn/a
            system./codeSystem
            version./codeSystemVersion
            code./code
            displayCV.displayName
            userSelectedCD.codingRationale
         text./originalText[mediaType/code="text/plain"]/data
      systemII.root or Role.id.root
      valueII.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
      periodRole.effectiveTime or implied by context
      assignerII.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
   status.status
   type.code
      idn/a
      extensionn/a
      codingunion(., ./translation)
      text./originalText[mediaType/code="text/plain"]/data
   recipient.inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]
   date.effectiveTime
   issuer.scoper
   lineItem.participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]
      idn/a
      extensionn/a
      modifierExtensionN/A
      chargeItem[x].player
      chargeItem[x] (chargeItemCodeableConcept).player
      priceComponent.participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]
         idn/a
         modifierExtensionN/A
         type.code
         code.code
            idn/a
            extensionn/a
            codingunion(., ./translation)
               idn/a
               extensionn/a
               system./codeSystem
               version./codeSystemVersion
               code./code
               displayCV.displayName
               userSelectedCD.codingRationale
            text./originalText[mediaType/code="text/plain"]/data
         amount
            idn/a
            extensionn/a
   totalNet
      idn/a
      extensionn/a
   totalGross
      idn/a
      extensionn/a
   note.inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]

Mappings for FiveWs Pattern Mapping (http://hl7.org/fhir/fivews)

OpenIMISInvoice
Invoice
   identifierFiveWs.identifier
   identifier (Code)FiveWs.identifier
   identifier (UUID)FiveWs.identifier
   statusFiveWs.status
   typeFiveWs.what[x]
   dateFiveWs.done[x]

Mappings for Workflow Pattern (http://hl7.org/fhir/workflow)

OpenIMISInvoice
Invoice
   typeEvent.code
   recipientEvent.context
   lineItem
      priceComponent
         typeEvent.code
         codeEvent.code
   noteEvent.note