Bulk CHFID Generator (insuree)

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)

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

 

 

 

 

 

 

 

 

Did you encounter a problem or do you have a suggestion?

Please contact our Service Desk



This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/