Models

Mongoose Docs for Billing model

undefined
Field Name Field Type Comment Required Default Min Max Nested Schema
id_registration ObjectID True
id_patient ObjectID False
billing_number String False
paid Boolean True false
is_wadiah_used Boolean False false
is_bpjs Boolean False false
is_pharmacy_confirmed Boolean False false
is_insurance Boolean False false
remaining_bill Number False
is_create_confirmed Boolean False false
insurance_limit[].id String False 30a1039f-6051-4d43-9042-e5f79eb31330
insurance_limit[].amount Number False 0
insurance_limit[].timestamps.created_at String False () => moment().format()
insurance_limit[].timestamps.updated_at String False null
insurance_limit[].timestamps.created_by ObjectID False null
insurance_limit[].timestamps.updated_by ObjectID False null
insurance_limit Array False
hak_kelas[].id String False 3e933fc5-cd27-4ae0-9ef0-2ea15bd2aac6
hak_kelas[].amount Number False 0
hak_kelas[].timestamps.created_at String False () => moment().format()
hak_kelas[].timestamps.updated_at String False null
hak_kelas[].timestamps.created_by ObjectID False null
hak_kelas[].timestamps.updated_by ObjectID False null
hak_kelas Array False
total_wadiah Number False 0
remaining_wadiah Number False 0
total_payments Number False 0
wadiah Array False
payments Array False
total_paid Number False 0
total_naik_kelas_bpjs Number False 0
total_naik_kelas_bpjs_pembulatan Number False 0
sub_total Number False 0
naik_kelas_bpjs[].id String False 4facb013-ecd6-40f8-a173-da23451cc211
naik_kelas_bpjs[].tarif_ina_cbg_hak_kelas Number False 0
naik_kelas_bpjs[].tarif_ina_cbg_naik_kelas Number False 0
naik_kelas_bpjs[].is_percentage Boolean False false
naik_kelas_bpjs[].from_class String False
naik_kelas_bpjs[].to_class String False
naik_kelas_bpjs[].tarif_ina_cbg_percentage Number False null
naik_kelas_bpjs[].timestamps.created_at String False () => moment().format()
naik_kelas_bpjs[].timestamps.updated_at String False null
naik_kelas_bpjs[].timestamps.created_by ObjectID False null
naik_kelas_bpjs[].timestamps.updated_by ObjectID False null
naik_kelas_bpjs Array False
pembulatan Number False 0
total_price Number False 0
total_return Number False 0
return_detail ObjectID False null
details.registration_card Boolean False false
details.interventions[].id String False f00e1c66-986c-4c6f-8979-de1c0fe270ff
details.interventions[].id_intervention ObjectID False
details.interventions[].code String False null
details.interventions[].name String False null
details.interventions[].price Number False null
details.interventions[].quantity Number False 1
details.interventions[].quantity_type String False null
details.interventions[].examination String False
details.interventions[].unit_type String False
details.interventions[].type String False
details.interventions[].unit_name String False
details.interventions[].insurance_name String False
details.interventions[].consumable_list[].id_goods ObjectID False
details.interventions[].consumable_list[].id_drugs ObjectID False
details.interventions[].consumable_list[].quantity Number False 0
details.interventions[].consumable_list[].type String False
details.interventions[].consumable_list[]._id ObjectID False
details.interventions[].consumable_list Array False
details.interventions[].payments[].paid_at String False null
details.interventions[].payments[].paid_by ObjectID False null
details.interventions[].payments[].amount Number False 1
details.interventions[].payments[].amount_type String False null
details.interventions[].payments[].price Number False null
details.interventions[].payments[]._id ObjectID False
details.interventions[].payments Array False
details.interventions[].timestamps.created_at String False () => moment().format()
details.interventions[].timestamps.updated_at String False null
details.interventions[].timestamps.created_by ObjectID False null
details.interventions[].timestamps.updated_by ObjectID False null
details.interventions Array False
details.pharmacy[].id String False c794385b-f88e-486a-b83f-b0b501ba92ff
details.pharmacy[].id_drugs ObjectID False
details.pharmacy[].code String False null
details.pharmacy[].name String False null
details.pharmacy[].price Number False null
details.pharmacy[].quantity Number False 1
details.pharmacy[].quantity_type String False null
details.pharmacy[].unit_type String False
details.pharmacy[].type String False
details.pharmacy[].unit_name String False
details.pharmacy[].insurance_name String False
details.pharmacy[].drugs[].id_drugs ObjectID False
details.pharmacy[].drugs[].dosage Number False
details.pharmacy[].drugs[].dosage_unit String False
details.pharmacy[].drugs[].amount Number False
details.pharmacy[].drugs[].price Number False null
details.pharmacy[].drugs[]._id ObjectID False
details.pharmacy[].drugs Array False
details.pharmacy[].payments[].paid_at String False null
details.pharmacy[].payments[].paid_by ObjectID False null
details.pharmacy[].payments[].amount Number False 1
details.pharmacy[].payments[].amount_type String False null
details.pharmacy[].payments[].price Number False null
details.pharmacy[].payments[]._id ObjectID False
details.pharmacy[].payments Array False
details.pharmacy[].timestamps.created_at String False () => moment().format()
details.pharmacy[].timestamps.updated_at String False null
details.pharmacy[].timestamps.created_by ObjectID False null
details.pharmacy[].timestamps.updated_by ObjectID False null
details.pharmacy Array False
details.consumables[].id String False d5a4f75c-89a1-4da1-8463-25598fcd759d
details.consumables[].id_drugs ObjectID False null
details.consumables[].id_goods ObjectID False null
details.consumables[].code String False null
details.consumables[].name String False null
details.consumables[].price Number False null
details.consumables[].quantity Number False 1
details.consumables[].quantity_type String False
details.consumables[].unit_type String False
details.consumables[].unit_name String False
details.consumables[].type String False
details.consumables[].insurance_name String False
details.consumables[].payments[].paid_at String False null
details.consumables[].payments[].paid_by ObjectID False null
details.consumables[].payments[].amount Number False 1
details.consumables[].payments[].amount_type String False null
details.consumables[].payments[].price Number False null
details.consumables[].payments[]._id ObjectID False
details.consumables[].payments Array False
details.consumables[].timestamps.created_at String False () => moment().format()
details.consumables[].timestamps.updated_at String False null
details.consumables[].timestamps.created_by ObjectID False null
details.consumables[].timestamps.updated_by ObjectID False null
details.consumables Array False
details.wards[].id String False b87892d3-603e-4a59-b727-3a1eea61f7e4
details.wards[].id_bed ObjectID False null
details.wards[].code String False null
details.wards[].name String False null
details.wards[].price Number False null
details.wards[].quantity Number False 0
details.wards[].quantity_type String False null
details.wards[].unit_type String False
details.wards[].unit_name String False
details.wards[].type String False
details.wards[].insurance_name String False
details.wards[].room String False
details.wards[].ward String False
details.wards[].class String False
details.wards[].bed String False
details.wards[].start_time String False () => moment().format()
details.wards[].end_time String False () => null
details.wards[].payments[].paid_at String False null
details.wards[].payments[].paid_by ObjectID False null
details.wards[].payments[].amount Number False 1
details.wards[].payments[].amount_type String False null
details.wards[].payments[].price Number False null
details.wards[].payments[]._id ObjectID False
details.wards[].payments Array False
details.wards[].timestamps.created_at String False () => moment().format()
details.wards[].timestamps.updated_at String False null
details.wards[].timestamps.created_by ObjectID False null
details.wards[].timestamps.updated_by ObjectID False null
details.wards Array False
total_bill Number False 0
timestamps.created_at String False () => moment().format()
timestamps.updated_at String False () => moment().format()
timestamps.deleted_at String False null
timestamps.canceled_at String False
timestamps.created_by ObjectID False null
timestamps.updated_by ObjectID False null
timestamps.deleted_by ObjectID False null
timestamps.canceled_by ObjectID False null
changelog[].items[].id String False
changelog[].items[].ref_id ObjectID False
changelog[].items[].code String False
changelog[].items[].name String False
changelog[].items[].price Number False
changelog[].items[].quantity Number False
changelog[].items[].unit_type String False
changelog[].items[].module String False
changelog[].items[].pos String False
changelog[].items[].is_goods Boolean False
changelog[].items[].is_drugs Boolean False
changelog[].items[].is_intervention Boolean False
changelog[].items[].is_wards Boolean False
changelog[].items[].created_at String False
changelog[].items[].created_by_id ObjectID False null
changelog[].items[].updated_by_id ObjectID False null
changelog[].items[].ward String False
changelog[].items[].room String False
changelog[].items[].bed String False
changelog[].items[].start_time String False
changelog[].items[].end_time String False
changelog[].items[].class String False
changelog[].items[]._id ObjectID False
changelog[].items Array False
changelog[].change_at String False () => moment().format()
changelog[].change_by ObjectID False null
changelog[]._id ObjectID False
changelog Array False
pharmacy_temp[].id String False 07afe49f-9a0b-4972-94b8-0f78ef0b1672
pharmacy_temp[].id_drugs ObjectID False
pharmacy_temp[].code String False null
pharmacy_temp[].name String False null
pharmacy_temp[].price Number False null
pharmacy_temp[].quantity Number False 1
pharmacy_temp[].quantity_type String False null
pharmacy_temp[].unit_type String False
pharmacy_temp[].type String False
pharmacy_temp[].unit_name String False
pharmacy_temp[].insurance_name String False
pharmacy_temp[].drugs[].id_drugs ObjectID False
pharmacy_temp[].drugs[].dosage Number False
pharmacy_temp[].drugs[].dosage_unit String False
pharmacy_temp[].drugs[].amount Number False
pharmacy_temp[].drugs[].price Number False null
pharmacy_temp[].drugs[]._id ObjectID False
pharmacy_temp[].drugs Array False
pharmacy_temp[].payments[].paid_at String False null
pharmacy_temp[].payments[].paid_by ObjectID False null
pharmacy_temp[].payments[].amount Number False 1
pharmacy_temp[].payments[].amount_type String False null
pharmacy_temp[].payments[].price Number False null
pharmacy_temp[].payments[]._id ObjectID False
pharmacy_temp[].payments Array False
pharmacy_temp[].timestamps.created_at String False () => moment().format()
pharmacy_temp[].timestamps.updated_at String False null
pharmacy_temp[].timestamps.created_by ObjectID False null
pharmacy_temp[].timestamps.updated_by ObjectID False null
pharmacy_temp Array False
_id ObjectID False
__v Number False