Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

field

type

comment

source

json

Code Block
languagejson
referenceActor {
  "label":"",
  "code":"",
  "type": "batchRun/commissionOverview/capitationReport",
  "id":"UUID",
  "address":{"text":"",...}
}

 third_party

json 

Code Block
languagejson
referenceSource {
  "label":"",
  "code":"",
  "type": "HF/Insuree/PH/payer/user",
  "id":"UUID",
  "address":{"text":"",...}
}

 id

 UUID

 code

 str 

or reference for the insurance

 code_rcp

 str 

or reference for the recipient

 code_ext

 str 

if required for external system integration

 date_due

 date 

date on which the payment is due

 date_invoice

 date 

Date of the “invoice“

 date_from

 date 

invoice covering service/item from

 date_to

 date 

invoice covering service/item to

 date_payed

 date 

Date on which the payment was actually documented as Done

 amount_discount

 float 

total of the detail discount

 amount_net

 float 

Total without tax

 tax_analysis

 json 

Code Block
languagejson
tax details {
  “lines”"lines": 

[
     {“label“:””"label":"", “rate“:””"rate":"", “base“:””"base":"", “amount”:””"amount":""}]
     ],
 “total”:””

 "total":""
}

 amount_total

 float 

total net + tax total

 status

 int 

ENUM: Draftdraft, validated, payed, cancelled, Deleteddeleted

 currency_rcp_code

 str 

currency of the recipient (if different)

 currency_code

 str 

currency of insurance

 note

 bigttext 

 terms

 bigttext 

conditions

outInvoiceDetails 

field

type

comment

 codecode

 str 

reference

invoiceId

UUID

reference to the outInvoice

 descriptiondescription

 str 

 detailsdetails

 json 

depend of the type, TBD

 ledgerledger_account

 int 

from config

 quantityquantity

 float 

 unitunit_price

 type 

 discountdiscount

 float 

to document difference between the std price and the price to be paid, usefull for relative pricing

 tax_rate

 Calculation uuid 

Calculation to calculate the tax

 taxtax_analysis

json

Code Block
languagejson
tax details
{

“lines”:

[

{“label“:””, “rate“:””, “base“:””, “amount”:””}]

],

“total”:””

 {
  "lines": [
    {"label":"", "rate":"", "base":"", "amount":""}]
    …
  ],
  "total":""
}

amount_total

float

net +tax

amount_net

qty * unitprice - discount

...

  1. Claim valuation (batchRun): https://openimis.atlassian.net/browse/OTC-10

  2. Capitation payment: https://openimis.atlassian.net/browse/OTC-10

  3. Commission payment

  4. payment Payment fees

  5. Fee-for-service

Convert the different account payable following the new structure

  1. Claim valuation (batchRun):​

  2. Capitation payment: ​

  3. Commission paymentpayment

  4. feesPayment fees

  5. Fee-for-service

Create a FHIR interface for the accounting systems

Here the Fhir FHIR ressource to be used:

https://www.hl7.org/fhir/invoice.htmlNote :

Account receivable, using the same structure as Account payable, when associated to the contract might also replace the “contribution/premium“

...