Versions Compared

Key

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

...

field

type

comment

HistoryBusinessModel fields

subject_type

str

Code Block
languagejson
  contribution/contract/funding --> Drop down

subject_id

uuid/int ?

https://stackoverflow.com/questions/33528098/django-model-one-foreign-key-to-many-tables Picker based on drop down ? (multiple picker displayed based drop down ? )

recipientthirdparty_type

str

Code Block
languagejson
Insuree/PH/payer/User --> Drop down

recipientthirdparty_id

uuid/int ?

https://stackoverflow.com/questions/33528098/django-model-one-foreign-key-to-many-tables Picker based on drop down ? (multiple picker displayed based drop down ? )

related_invoice_id

uuid

link to invoices

 code

 str 

or reference for the insurance (editable)

 code_rcptp

 str 

or reference for the recipient (editable)

 code_ext

 str 

if required for external system integration such as payment systems (editable)

 date_due

 date 

date on which the payment is due (editable)

 date_invoice

 date 

Date of the “invoice“ (date of today but editable)

 *dateValidFrom

 date 

invoice covering service/item from (editable)

 *dateValidTo

 date 

invoice covering service/item to (editable)

 date_payed

 date 

Date on which the payment was actually documented as Done (editable)

 amount_discount

 float 

total of the detail discount (calculated be)

 amount_net

 float 

Total without tax (calculated be)

 tax_analysis

 json 

Code Block
languagejson
(calculated be)
tax details {
  "lines": [
    {"code":"", "label":"", "rate":"", "base":"", "amount":""}]
    …
  ],
  "total":""
}

 amount_total

 float 

total net + tax total (calculated be)

 status

 int 

ENUM: draft, validated, payed, cancelled, deleted (editable ), amended, suspended

 currency_rcptp_code

 str 

currency of the recipient (if different) (hidden)

 currency_code

 str 

currency of insurance (calculated be) (hidden)

 note

 bigttext 

(editable)

 terms

 bigttext 

conditions (editable)

payment_reference

 str 

...

  • models: none

  • services: 1 per signal listened

  • converters: one converter from another openIMIS object to invoice

  • parameters: on for the “recipient” “thirdparty” and “subject“ on the invoice

    • change might be required in the calculation module to save it in dedicated fields instead of json_ext OR we move those in the json ext fields

    • support search on those parameters

...

Contribution plan calculation rule: Product modeling

Contract:

the invoice of a contract will match the contract value and details.

Registration on signals from other module(existing or not)

  • contractApproved

  • invoiceCreationFromCalculation

Converters:

Invoice

...

field

...

type

...

comment

...

subject

...

json

...

Code Block
languagejson
referenceSource {
  "label":contract-label
  "code":contract-code,
  "type": "Contract",
  "id":"UUID",
}

...

 recipient

...

json 

...

Code Block
languagejson
referenceActor {
  "label":ph-name,
  "code":ph-code,
  "type": "Policyholder",
  "id":"UUID",
  "address":{"text":"",...}
}

...

 code

...

 str 

...

IV-[contract code]

...

 date_due

...

 date 

...

contract-payment-due

...

 date_invoice

...

 date 

...

Date of the contract approved

...

 *dateValidFrom

...

 date 

...

validFrom: contract validFrom

...

 *dateValidTo

...

 date 

...

validTo:contract validTo

...

 amount_discount

...

 float 

...

total of the detail discount

...

 amount_net

...

 float 

...

Total without tax

...

 tax_analysis

...

 json 

...

Code Block
languagejson
null

...

 amount_total

...

 float 

...

total net

...

 status

...

 int 

...

validated

...

 currency_rcp_code

...

 str 

...

default-curency

...

 currency_code

...

 str 

...

default-curency-code

...

 note

...

 bigttext 

...

 terms

...

 bigttext 

invoiceItem

...

field

...

type

...

comment

...

HistoryBusinessModel fields

...

validFrom: contractDetails validFrom

validTo:contract contractDetails validTo

...

code

...

 str 

...

Product-code

...

description

...

 str 

...

product-desc

...

details

...

 json 

...

Dependant otherName, name, gender, age, relation to insuree

...

ledger_account

...

 int 

...

Product premium accounting code

...

quantity

...

 float 

...

1

...

unit_price

...

 type 

...

contractdetail Value

...

discount

...

 float 

...

 tax_rate

...

 Calculation uuid 

...

null

...

tax_analysis

...

json

...

Code Block
null

...

amount_total

...

float

...

net

...

amount_net

...


[out of scope]Claim Co-paiment:

...