Versions Compared

Key

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

Request

  • Generate bulk insurance id

New Modular backend module : insuree-code-management

this module will save the pregenerated insuree id and manage their status and linked data

Requirements:

  • 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)

...

creationDate, batchID,number reserved, number assigned

. getInsuranceCodes

  • holder_type (mandatory)

  • holder_code (mandatory)

  • batch_id (mandatory)

...

Insurance code, status, json_ext

.generateInsuranceCodes

  • holder_type (mandatory)

  • holder_code (mandatory)

  • number (default setable in module config)

...

  • 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_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:

  • generateInsuranceCodes(number)

  • assignCode(Code, insureeID)

  • predefined querysets

    • getInsuranceCodes (number, holder_type, holder_code, batchid)

    • getInsuranceCodesBatch (number, holder_type, holder_code)

New Modular backend module : insuree-qrcode

(To be confirmed )this module will depend of the SOP for QrCode sharing with Printers

CHF makes orders to generate cards when they need: Manual trigger

Excel

  • CHFID

  • filesName

  • ???

Requirements:

Detailed design