Versions Compared

Key

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

Request

View file
nameDescription of IMIS new features related to Epayment_reviewed.pdf

  • Generate bulk insurance id

New Modular backend module : insuree-code-management

...

  • pregenerate insuree code (aka CHFID)

  • possibility to Link to CN

  • manage the Insuree code availability to avoid the same insuree code to be sent twice

  • [nice-to-have] follow-up genreated id

Business process

This development will start as a backend only api with two enpoint

. getInsuranceCodesBatch

  • holder_type (mandatory)

  • holder_code (mandatory)

will send back json object with holder_type, holder_code and array of json object:

creationDate, batchID,number reserved, number assigned

. getInsuranceCodes

  • holder_type (mandatory)

  • holder_code (mandatory)

  • batch_id (mandatory)

will send back json object with holder_type, holder_code, creationDate, batchID and array of json object:

Insurance code, status, json_ext

.generateInsuranceCodes

  • holder_type (mandatory)

  • holder_code (mandatory)

  • number (default setable in module config)

will send back json object with holder_type, holder_code, creationDate, batchID and array of json object:

  • Insurance code, status, json_ext

Detailed design

Model

  • model to create (HistoryModel):

    • InsureeID, (fk to Insuree, default null)

    • Code , (CHFID, not null)

    • status, ( smallint: available, reserved, assigned)

    • holder, ( json like FHIR reference: ref to the holder, can be HF, printer, EO _type (default: 1 - printer)

      • other 2-EO, 3-HF, 4 Location

    • holder_code (str default not null)

    • batch_id (bigint, default null)

    • json_ext (other information, like product_id, possible link to get the QRcode image)

interface

service:

  • generateNewCodegenerateInsuranceCodes(number)

  • getAvailableCode(number, owner)

  • assignCode(CodeassignCode(Code, insureeID)

  • predefined querysets

    • getInsuranceCodes (number, holder_type, holder_code, batchid)

    • getInsuranceCodesBatch (number, holder_type, holder_code)

New Modular backend module : insuree-qrcode

...