Generate bulk insurance id
this module will save the pregenerated insuree id and manage their status and linked data
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
This development will start as a backend only api with two enpoint
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
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
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
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)
service:
generateInsuranceCodes(number)
assignCode(Code, insureeID)
predefined querysets
getInsuranceCodes (number, holder_type, holder_code, batchid)
getInsuranceCodesBatch (number, holder_type, holder_code)
(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
???