@kenyaemr/esm-ward-app 8.5.4-pre.151 → 8.5.4-pre.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/2810.js +1 -1
- package/dist/636.js +1 -1
- package/dist/636.js.map +1 -1
- package/dist/{2830.css.map → 9124.css.map} +1 -1
- package/dist/9124.js +1 -0
- package/dist/9124.js.map +1 -0
- package/dist/9456.js +1 -1
- package/dist/kenyaemr-esm-ward-app.js +2 -2
- package/dist/kenyaemr-esm-ward-app.js.buildmanifest.json +31 -31
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/ward-patients/admitted-patients.tsx +2 -11
- package/src/ward-patients/discharge-patient-action.component.tsx +80 -0
- package/src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.workspace.tsx +24 -10
- package/dist/2830.js +0 -1
- package/dist/2830.js.map +0 -1
- /package/dist/{2830.css → 9124.css} +0 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/2810.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["2810"],{4767(A,e,t){var a={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["6468","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function i(A){if(!t.o(a,A))return Promise.resolve().then(function(){var e=Error("Cannot find module '"+A+"'");throw e.code="MODULE_NOT_FOUND",e});var e=a[A],i=e[0];return t.e(e[1]).then(function(){return t(i)})}i.keys=()=>Object.keys(a),i.id=4767,A.exports=i},7488(A,e,t){"use strict";t.d(e,{Qn:()=>r,Tt:()=>i,sZ:()=>n});var a=t(357);let i={UUID_SHARED_DECISION_ASSESSMENT:"162164AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_PLAN:"166021AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_ACTION:"160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_CONTINUE_MONITORING:"159835AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_TRANSFER_TO_CS:"159739AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_REFERRAL:"0dcc1312-e83e-4317-97c3-4b127b599744",UUID_SHARED_DECISION_TWIN_ONE_BIRTH:"d9ad3cc2-5800-4cd0-ab51-fa3306295617",UUID_SHARED_DECISION_BIRTH:"fb50f3e1-0971-4f82-9774-41ff57e38043",UUID_CONTRACTION_NONE:"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_MILD:"1498AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_MODERATE:"1499AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_STRONG:"166788AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_STRONG_FALLBACK:"4b90b73a-ad11-4650-91b0-baea131974e0",UUID_URINE_NEGATIVE:"1874AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_ONE_PLUS:"1362AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_TWO_PLUS:"1363AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_THREE_PLUS:"1364AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_NOT_DONE:"1118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_TEST_TIME_SLOT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",UUID_PARTOGRAPHY_ENCOUNTER:"022d62af-e2a5-4282-953b-52dd5cba3296",UUID_MEDICATION_OXYTOCIN_ADMINISTERED:"82580974-ff46-41c5-b218-4bea7f53bf7e",UUID_MEDICATION_OXYTOCIN_DOSE:"166530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MEDICATION_MEDICATION:"1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MEDICATION_NAME:"c3082af8-f935-40c5-aa5b-74c684e81aea",UUID_YES:"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_NO:"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SUPPORTIVE_CARE_COMPANION:"8a5757a7-b607-4948-b8a8-587b1f44366a",UUID_SUPPORTIVE_CARE_PAIN_RELIEF:"a563b9bd-eb1d-4a0e-8271-f3ee00da6d25",UUID_SUPPORTIVE_CARE_ORAL:"217c3dcb-d13e-48d6-89b9-f2c588d50a3c",UUID_SUPPORTIVE_CARE_POSTURE:"dc94a788-de10-417d-aac8-0aed5ba3b806",UUID_SUPPORTIVE_CARE_DECLINED:"167156AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SUPPORTIVE_CARE_SUPINE:"159629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SUPPORTIVE_CARE_MOBILE:"c05125ad-e297-491f-aa65-d73ecc3245f0",UUID_BABY_BASELINE_FHR:"1440AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FHR_DECELERATION:"c608022e-a29c-44c9-a4c8-24b6e3105ae4",UUID_BABY_AMNIOTIC_FLUID:"30ea66be-16d1-44f6-af40-4fe273814454",UUID_BABY_FETAL_POSITION:"78a5cb66-ca95-4965-9c54-0cb6198c9389",UUID_BABY_CAPUT:"4e54e9bf-9a1a-4dfd-a4a1-b727860f1c4a",UUID_BABY_MOULDING:"166527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FHR_DECELERATION_LATE:"167151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FHR_DECELERATION_EARLY:"58f1c745-8873-44ff-9680-2a3bbe172990",UUID_BABY_FHR_DECELERATION_VARIABLE:"155653AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_INTACT:"164899AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_CLEAR:"159484AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_BLOOD:"1077AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_MECONIUM:"134488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FETAL_POSITION_ANTERIOR:"164148AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FETAL_POSITION_POSTERIOR:"541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FETAL_POSITION_TRANSVERSE:"124261AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MATERNITY_INPATIENT_ENCOUNTER_TYPE:"6877a5b4-441d-4dff-ada1-fcc2485c33e6",UUID_MATERNITY_INPATIENT_FORM:"57b8bb54-321f-4b94-bba5-58850527bfd6",UUID_PARITY_CONCEPT:"160080AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MISCARRIAGE_ABORTIONS_CONCEPT:"1823AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URGE_TO_PUSH:"9ad5b56d-597c-4a40-ade6-387802daa44a",UUID_EMERGENCY_OVERRIDE:"1670AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_EMERGENCY_REASON:"163761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_TERMINATE_ONGOING_PROGRESS:"737fa73a-509f-40d8-9e84-91dc71db7f4c",UUID_LCG_TERMINATION_REASON_TYPE:"6098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_TERMINATION_REASON_WRONG_PATIENT:"164144AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_TERMINATION_REASON_OTHER:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_ENCOUNTER_TYPE:"b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f",UUID_LCG_CORRECTION_TYPE:"4b3eb27b-43c0-4862-bd83-be06beb3d699",UUID_LCG_CORRECTION_TYPE_WRONG_PATIENT_TRANSFER:"1286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_SOURCE_PATIENT_UUID:"162720AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_SOURCE_TERMINATE_ENCOUNTER_UUID:"1671AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_TERMINATION_REASON:"162704AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_SOURCE_PATIENT_DISPLAY:"850a960b-e8b5-4775-ba74-aaddb2abbf51",UUID_LCG_CORRECTION_TERMINATED_AT:"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_TRANSFER_NOTES:"1056dc03-ce4d-45cb-a1eb-87707162e6ee",FETAL_HEART_RATE_CONCEPT:"1440AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",FETAL_HEART_RATE_TIME_CONCEPT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",FETAL_HEART_RATE_HOUR_CONCEPT:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_FLUID_CONCEPT:"162653AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",RUPTURED_MEMBRANES_CONCEPT:"164900AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_CLEAR_LIQUOR_CONCEPT:"159484AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_MECONIUM_STAINED_CONCEPT:"134488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_ABSENT_CONCEPT:"163747AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_BLOOD_STAINED_CONCEPT:"1077AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_MEMBRANE_INTACT_CONCEPT:"d1787a76-7310-4223-a645-9fd410d418c1",UTERINE_CONTRACTIONS_CONCEPT:"163750AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_LEVEL_MILD_CONCEPT:"1498AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_LEVEL_MODERATE_CONCEPT:"1499AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_LEVEL_STRONG_CONCEPT:"166788AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UTERINE_CONTRACTION_FREQUENCY_CONCEPT:"d266dee4-bbe8-4736-b94d-c33300f55bca",UTERINE_CONTRACTION_DURATION_CONCEPT:"159368AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",OXYTOCIN_TIME_CONCEPT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",OXYTOCIN_DROPS_PER_MINUTE_CONCEPT:"1d109b10-7b30-4bfa-8a7c-6ecb73357fc2",OXYTOCIN_DOSE_CONCEPT:"81369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",ROUTE_CONCEPT:"8878f9c0-a1ce-47ec-a88f-69ef0f6576ba",FREQUENCY_CONCEPT:"fd9f82fd-f327-4502-ac8e-5d9144dbd504",MEDICATION_CONCEPT:"c3082af8-f935-40c5-aa5b-74c684e81aea",IV_FLUIDS_CONCEPT:"644504bd-23bc-4f1e-b9a0-d44f81f4148e",IV_FLUID_TYPE_CONCEPT:"161911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DOSAGE_CONCEPT:"b71ddb80-2d7f-4bde-a44b-236e62d4c1b6",DRUG_DOSE_CONCEPT:"162384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MATERNAL_PULSE_CONCEPT:"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",SYSTOLIC_BP_CONCEPT:"5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DIASTOLIC_BP_CONCEPT:"5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",PULSE_BP_TIME_CONCEPT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",PROTEIN_LEVEL_CONCEPT:"1875AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",GLUCOSE_LEVEL_CONCEPT:"887AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",KETONE_LEVEL_CONCEPT:"161442AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",URINE_VOLUME_CONCEPT:"159660AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",URINE_CHARACTERISTICS_CONCEPT:"56AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",TIME_RESULTS_RETURNED:"67c3d4c6-465e-4c12-9b7f-d8587ca90603",TIME_SAMPLE_COLLECTED:"c554f157-2e16-4585-af29-c48f5e765ce0",CERVIX_CONCEPT:"162261AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DESCENT_OF_HEAD_CONCEPT:"166528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_0_CONCEPT:"160769AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_1_CONCEPT:"162135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_2_CONCEPT:"166065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_3_CONCEPT:"166066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_4_CONCEPT:"166067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_5_CONCEPT:"163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DRUG_ORDER_TYPE_UUID:"131168f4-15f5-102d-96e4-000c29c2a5d7",ENCOUNTER_ROLE:"240b26f9-dd88-4172-823d-4a8bfeb7841f",MOULDING_NONE_CONCEPT:"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_SLIGHT_CONCEPT:"1362AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_MODERATE_CONCEPT:"1363AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_SEVERE_CONCEPT:"1364AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",TEMPERATURE_CONCEPT:"5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_COUNT_CONCEPT:"d266dee4-bbe8-4736-b94d-c33300f55bca",MEDICATION_NAME_CONCEPT:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",EVENT_TYPE_CONCEPT:"162879AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",EVENT_DESCRIPTION_CONCEPT:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_CONCEPT:"166527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",BLOOD_GROUP_CONCEPT:"300AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",TIME_SLOT_CONCEPT:"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",LABOR_PATTERN_CONCEPT:"164135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",HOURS_SINCE_RUPTURE_CONCEPT:"167149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DATE_OF_ADMISSION_CONCEPT:"1640AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",GESTATION_WEEKS_CONCEPT:"1789AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",ESTIMATED_DELIVERY_DATE_CONCEPT:"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",LAST_MENSTRUAL_PERIOD_CONCEPT:"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},n={conceptMappings:{"fetal-heart-rate":[i.FETAL_HEART_RATE_CONCEPT],"blood-pressure":[i.SYSTOLIC_BP_CONCEPT,i.DIASTOLIC_BP_CONCEPT],"maternal-pulse":[i.MATERNAL_PULSE_CONCEPT],temperature:[i.TEMPERATURE_CONCEPT],"cervical-dilation":[i.CERVIX_CONCEPT],"descent-of-head":[i.DESCENT_OF_HEAD_CONCEPT],"uterine-contractions":[i.UTERINE_CONTRACTION_FREQUENCY_CONCEPT],"urine-analysis":[i.PROTEIN_LEVEL_CONCEPT,i.GLUCOSE_LEVEL_CONCEPT,i.KETONE_LEVEL_CONCEPT],"drugs-fluids":[i.UUID_MEDICATION_MEDICATION,i.IV_FLUIDS_CONCEPT,i.IV_FLUID_TYPE_CONCEPT],"progress-events":[i.EVENT_TYPE_CONCEPT,i.EVENT_DESCRIPTION_CONCEPT,i.FETAL_HEART_RATE_CONCEPT,i.CERVIX_CONCEPT,i.UTERINE_CONTRACTIONS_CONCEPT]},conceptUuids:{cervix:i.CERVIX_CONCEPT,"fetal-heart-rate":i.FETAL_HEART_RATE_CONCEPT,"fetal-heart-rate-hour":i.FETAL_HEART_RATE_HOUR_CONCEPT,"fetal-heart-rate-time":i.FETAL_HEART_RATE_TIME_CONCEPT,"cervical-dilation":i.CERVIX_CONCEPT,"descent-of-head":i.DESCENT_OF_HEAD_CONCEPT,"uterine-contractions":i.UTERINE_CONTRACTIONS_CONCEPT,"uterine-contraction-frequency":i.UTERINE_CONTRACTION_FREQUENCY_CONCEPT,"uterine-contraction-duration":i.UTERINE_CONTRACTION_DURATION_CONCEPT,"maternal-pulse":i.MATERNAL_PULSE_CONCEPT,"systolic-bp":i.SYSTOLIC_BP_CONCEPT,"diastolic-bp":i.DIASTOLIC_BP_CONCEPT,temperature:i.TEMPERATURE_CONCEPT,"protein-level":i.PROTEIN_LEVEL_CONCEPT,"glucose-level":i.GLUCOSE_LEVEL_CONCEPT,"ketone-level":i.KETONE_LEVEL_CONCEPT,"urine-volume":i.URINE_VOLUME_CONCEPT,"contraction-count":i.CONTRACTION_COUNT_CONCEPT,"urine-characteristics":i.URINE_CHARACTERISTICS_CONCEPT,medication:i.MEDICATION_CONCEPT,"medication-name":i.MEDICATION_NAME_CONCEPT,"oxytocin-dose":i.OXYTOCIN_DOSE_CONCEPT,"oxytocin-drops-per-minute":i.OXYTOCIN_DROPS_PER_MINUTE_CONCEPT,"oxytocin-time":i.OXYTOCIN_TIME_CONCEPT,"iv-fluids":i.IV_FLUIDS_CONCEPT,"iv-fluid-type":i.IV_FLUID_TYPE_CONCEPT,dosage:i.DOSAGE_CONCEPT,route:i.ROUTE_CONCEPT,frequency:i.FREQUENCY_CONCEPT,"drug-dose":i.DRUG_DOSE_CONCEPT,"event-type":i.EVENT_TYPE_CONCEPT,"event-description":i.EVENT_DESCRIPTION_CONCEPT,"amniotic-fluid":i.AMNIOTIC_FLUID_CONCEPT,"amniotic-clear-liquor":i.AMNIOTIC_CLEAR_LIQUOR_CONCEPT,"amniotic-meconium-stained":i.AMNIOTIC_MECONIUM_STAINED_CONCEPT,"amniotic-absent":i.AMNIOTIC_ABSENT_CONCEPT,"amniotic-blood-stained":i.AMNIOTIC_BLOOD_STAINED_CONCEPT,moulding:i.MOULDING_CONCEPT,"moulding-none":i.MOULDING_NONE_CONCEPT,"moulding-slight":i.MOULDING_SLIGHT_CONCEPT,"moulding-moderate":i.MOULDING_MODERATE_CONCEPT,"moulding-severe":i.MOULDING_SEVERE_CONCEPT,"blood-group":i.BLOOD_GROUP_CONCEPT,"time-slot":i.TIME_SLOT_CONCEPT,"pulse-time-slot":i.PULSE_BP_TIME_CONCEPT,"labor-pattern":i.LABOR_PATTERN_CONCEPT,"hours-since-rupture":i.HOURS_SINCE_RUPTURE_CONCEPT,"ruptured-membranes":i.RUPTURED_MEMBRANES_CONCEPT,"date-of-admission":i.DATE_OF_ADMISSION_CONCEPT,"gestation-weeks":i.GESTATION_WEEKS_CONCEPT,"estimated-delivery-date":i.ESTIMATED_DELIVERY_DATE_CONCEPT,"last-menstrual-period":i.LAST_MENSTRUAL_PERIOD_CONCEPT,"baby-twin-index":"163460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","station-0":i.STATION_0_CONCEPT,"station-1":i.STATION_1_CONCEPT,"station-2":i.STATION_2_CONCEPT,"station-3":i.STATION_3_CONCEPT,"station-4":i.STATION_4_CONCEPT,"station-5":i.STATION_5_CONCEPT},stationDisplayMapping:{[i.STATION_0_CONCEPT]:"0/5",[i.STATION_1_CONCEPT]:"1/5",[i.STATION_2_CONCEPT]:"2/5",[i.STATION_3_CONCEPT]:"3/5",[i.STATION_4_CONCEPT]:"4/5",[i.STATION_5_CONCEPT]:"5/5"},stationValueMapping:{[i.STATION_0_CONCEPT]:0,[i.STATION_1_CONCEPT]:1,[i.STATION_2_CONCEPT]:2,[i.STATION_3_CONCEPT]:3,[i.STATION_4_CONCEPT]:4,[i.STATION_5_CONCEPT]:5},encounterPatterns:["mch-partograph","partography","fetal-monitoring","maternal-monitoring","obstetric-vitals","labor-monitoring","labour-monitoring"],fallbackEncounterMapping:{"fetal-heart-rate":["mch-mother-consultation","vitals","obstetric","maternal","consultation","clinical"],"cervical-dilation":["mch-mother-consultation","obstetric","maternal","consultation","clinical"],"maternal-pulse":["vitals","maternal","consultation","clinical"],"blood-pressure":["vitals","maternal","consultation","clinical"],temperature:["vitals","consultation","clinical"],"urine-analysis":["vitals","laboratory","consultation","clinical"],"drugs-fluids":["medication","treatment","consultation","clinical"],"progress-events":["obstetric","maternal","consultation","clinical"]},defaultFallbackSequence:["consultation","clinical"],retryFallbackTypes:["vitals","consultation","clinical"],defaultEncounterProviderRole:"a0b03050-c99b-11e0-9572-0800200c9a66",defaultLocationUuid:"1",storage:{maxLocalEntries:100,storageKeyPrefix:"partography_",cacheKeyPrefix:"partography_encounters_"},timeConfig:{defaultEncounterOffset:3e5,retryEncounterOffset:36e5,cacheInvalidationDelay:1e3},progressEventConceptNames:{[i.FETAL_HEART_RATE_CONCEPT]:{name:"Fetal Heart Rate",unit:"BPM"},[i.CERVIX_CONCEPT]:{name:"Cervical Dilation",unit:"cm"},[i.UTERINE_CONTRACTIONS_CONCEPT]:{name:"Uterine Contractions",unit:"per 10min"}},uuids:{timeSlot:"a1b2c3d4-1111-2222-3333-444455556666",mchPartographyEncounterUuid:i.UUID_PARTOGRAPHY_ENCOUNTER,drugsFluidsEncounterUuid:"39da3525-afe4-45ff-8977-c53b7b359158",contractionStrongConceptUuid:i.UUID_CONTRACTION_STRONG_FALLBACK},graphTypeDisplayNames:{"fetal-heart-rate":"Fetal Heart Rate","cervical-dilation":"Cervical Dilation","descent-of-head":"Descent of Head","uterine-contractions":"Uterine Contractions","maternal-pulse":"Maternal Pulse","blood-pressure":"Blood Pressure",temperature:"Temperature","urine-analysis":"Urine Analysis","drugs-fluids":"Drugs & Fluids","progress-events":"Progress & Events"},amnioticFluidMap:{"Membrane intact":i.UUID_BABY_AMNIOTIC_INTACT,"Clear liquor":i.UUID_BABY_AMNIOTIC_CLEAR,"Meconium Stained":i.UUID_BABY_AMNIOTIC_MECONIUM,Absent:i.AMNIOTIC_ABSENT_CONCEPT,"Blood Stained":i.UUID_BABY_AMNIOTIC_BLOOD},mouldingMap:{0:i.UUID_CONTRACTION_NONE,"+":i.UUID_URINE_ONE_PLUS,"++":i.UUID_URINE_TWO_PLUS,"+++":i.UUID_URINE_THREE_PLUS},testData:{testGraphTypes:["fetal-heart-rate","cervical-dilation","maternal-pulse","temperature","blood-pressure"],sampleDataPoints:[{value:120,time:"10:00"},{value:125,time:"11:00"},{value:130,time:"12:00"},{value:128,time:"13:00"}],valueIncrement:10,bloodPressureDecrement:40},descentOfHeadUuidToValue:{[i.STATION_0_CONCEPT]:0,[i.STATION_1_CONCEPT]:1,[i.STATION_2_CONCEPT]:2,[i.STATION_3_CONCEPT]:3,[i.STATION_4_CONCEPT]:4,[i.STATION_5_CONCEPT]:5}},r={patientCardElements:{_description:"Configuration of various patient card elements. Each configured element must have a unique id, defined in the ward React component being used.",obs:{_type:a.Type.Array,_description:"Configures obs values to display.",_default:[],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:a.Type.UUID,_description:"Identifies the concept to use to identify the desired observations."},label:{_type:a.Type.String,_description:"Optional. The custom label or i18n key to the translated label to display. If not provided, defaults to the concept's name. (Note that this can be set to an empty string to not show a label)",_default:null},orderBy:{_type:a.Type.String,_description:"One of 'ascending' or 'descending', specifying whether to display the obs by obsDatetime ascendingly or descendingly.",_default:"descending",_validators:[a.validators.oneOf(["ascending","descending"])]},limit:{_type:a.Type.Number,_description:"If set to a number greater than one, this will show multiple obs for this concept, which will appear as a list. Set to 0 for unlimited.",_default:1},onlyWithinCurrentVisit:{_type:a.Type.Boolean,_description:"Optional. If true, limits display to only observations within current visit. Defaults to false",_default:!1}}},pendingItems:{_type:a.Type.Array,_description:"Configures pending orders and transfers to display.",_default:[{id:"pending-items",orders:{orderTypes:[{label:"Labs",uuid:"52a447d3-a64a-11e3-9aeb-50e549534c5e"}]},showPendingItems:!0}],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},orders:{orderTypes:{_type:a.Type.Array,_description:"Configures pending orders and transfers to display.",_elements:{uuid:{_type:a.Type.UUID,_description:"Identifies the order type."},label:{_type:a.Type.String,_description:"The label or i18n key to the translated label to display. If not provided, defaults to 'Orders'",_default:null}}}},showPendingItems:{_type:a.Type.Boolean,_description:"Optional. If true, pending items (e.g., number of pending orders) will be displayed on the patient card."}}},patientIdentifier:{_type:a.Type.Array,_description:"Configures patient identifier to display. An unconfigured element displays the preferred identifier.",_default:[{id:"patient-identifier",showIdentifierLabel:!1}],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},showIdentifierLabel:{_type:a.Type.Boolean,_description:'If true, the identifier type (eg: "OpenMRS ID") is shown along with the identifier itself. Defaults to false'}}},patientAddress:{_type:a.Type.Array,_description:"Configures patient address elements.",_default:[{id:"patient-address",fields:["cityVillage","country"]}],_elements:{fields:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},fields:{_type:a.Type.Array,_description:"The fields of the address to display",_elements:{_type:a.Type.String,_validators:[a.validators.oneOf(["cityVillage","stateProvince","country","postalCode","countyDistrict","latitude","longitude","address1","address2","address3","address4","address5","address6","address7","address8","address9","address10","address11","address12","address13","address14","address15"])]}}}}},admissionRequestNote:{_type:a.Type.Array,_description:"Configures admission request notes to display.",_default:[{id:"admission-request-note",conceptUuid:"161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}],_elements:{fields:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:a.Type.UUID,_description:"Required. Identifies the concept for the admission request note."}}},coloredObsTags:{_type:a.Type.Array,_description:"Configures observation values to display as Carbon tags.",_elements:{conceptUuid:{_type:a.Type.UUID,_description:"Required. Identifies the concept to use to identify the desired observations.",_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},summaryLabel:{_type:a.Type.String,_description:"Optional. The custom label or i18n key to the translated label to display for the summary tag. The summary tag shows the count of the number of answers that are present but not configured to show as their own tags. If not provided, defaults to the name of the concept.",_default:null},summaryLabelI18nModule:{_type:a.Type.String,_description:"Optional. The custom module to use for translation of the summary label",_default:null},summaryLabelColor:{_type:a.Type.String,_description:"The color of the summary tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors",_default:null},tags:{_type:a.Type.Array,_description:"An array specifying concept sets and color. Observations with coded values that are members of the specified concept sets will be displayed as their own tags with the specified color. Any observation with coded values not belonging to any concept sets specified will be summarized as a count in the summary tag. If a concept set is listed multiple times, the first matching applied-to rule takes precedence.",_default:[],_elements:{color:{_type:a.Type.String,_description:"Color of the tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors."},appliedToConceptSets:{_type:a.Type.Array,_description:"The concept sets which the color applies to. Observations with coded values that are members of the specified concept sets will be displayed as their own tag with the specified color. If an observation's coded value belongs to multiple concept sets, the first matching applied-to rule takes precedence.",_elements:{_type:a.Type.UUID}}}}}}}},wards:{_description:"Configuration of what type of ward to use at different ward locations.",_type:a.Type.Array,_default:[{id:"default-ward"}],_elements:{id:{_type:a.Type.String,_description:'The ward type to use. Currently, "default-ward" and "maternal-ward" are supported. This string also serves as the extension slot name for the ward view.'},appliedTo:{_type:a.Type.Array,_description:"Optional. Conditions under which this card definition should be used. If not provided, the configuration is applied to all wards.",_elements:{location:{_type:a.Type.UUID,_description:"The UUID of the location. If not provided, applies to all wards.",_default:null}}}}},hideWorkspaceVitalsLinks:{_description:"Configure whether to hide vital history and record vital links in the ward patient workspace.",_type:a.Type.Boolean,_default:!1},ipdDischargeEncounterTypeUuid:{_description:"IPD Discharge encounter type",_type:a.Type.String,_default:"7e618d13-ffdb-4650-9a97-10ccd16ca36d"},transferRequestEncounterTypeUuid:{_description:"Tranfer request encounter type",_type:a.Type.String,_default:"b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f"},referralsConceptUuid:{_description:"Referrals concept uuid",_type:a.Type.String,_default:"1695AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},referringToAnotherFacilityConceptUuid:{_description:"Referring to another facility concept uuid",_type:a.Type.String,_default:"164165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},inpatientDischargeFormUuid:{_description:"IPD Discharge form uuid",_type:a.Type.String,_default:"98a781d2-b777-4756-b4c9-c9b0deb3483c"},admissionRequestFormUuid:{_description:"Admission request form uuid",_type:a.Type.String,_default:"0bae7646-b079-4cbb-8130-b24274fc16f7"},admissionFormUuid:{_description:"Admission form uuid",_type:a.Type.String,_default:"49f3686d-b83c-4263-a5a1-89040f643a78"},conceptUuidForWardAdmission:{_description:"Concept UUID for ward admission",_type:a.Type.Object,_default:{paymentMethod:"ffd8e033-a286-42b4-89d5-c6d6506d3161",mpesaPaymentMethod:"9b24f997-6582-46b5-8f58-924b0e39ad9a",cashPaymentMethod:"fc894152-07be-4e77-9dac-2a164e400a13",insurancePaymentMethod:"159356AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",otherInsuaranceType:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",insuranceOtherSpecify:"162169AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",primaryDoctor:"2b537713-298c-4b60-83c3-8006ea622d70",primaryDoctorPhoneNumber:"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",emmergencyDoctor:"1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",dischargingDoctor:"1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",emmergencyDoctorPhoneNumber:"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",admissionDateTime:"1640AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",chiefComplaint:"5219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",complaint:"160531AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",physicalExamination:"162737AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",dischargeInstruction:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",drugReaction:"162747AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",reactingDrug:"1193AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},diagnosisConceptSourceUud:{_type:a.Type.UUID,_description:"Diagnosis concept source",_default:"39ADDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"},insuaranceTypes:{_description:"Insuarance Types",_type:a.Type.Array,_elements:{concept:{_type:a.Type.UUID,_description:"Concept Uuid"},label:{_type:a.Type.String,_description:"Display string"}},_default:[{concept:"1a7fb8b5-6093-486d-baa2-65f8b4388544",label:"SHA"},{concept:"1917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Policy Holder"},{concept:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"OTHER"}]},inpatientAdmissionEncounterProviderRole:{_type:a.Type.UUID,_description:"Encounter provider role",_default:"'a0b03050-c99b-11e0-9572-0800200c9a66'"},mortuaryAdmissionLoctionTagUuid:{_description:"Mortuary admission location tag uuid",_type:a.Type.String,_default:"1dbbfe22-d21f-499c-bf33-cc9f75b6c7e8"},dailyBedFeeBillableService:{_description:"Daily Bed Fee bILLABLE SERVICE uuid",_type:a.Type.UUID,_default:"0a5a23e3-c953-428c-92e3-3b99f8a822f0"},cashPointUuid:{_type:a.Type.String,_description:"Cash point uuid used when raising a ward bill",_default:"54065383-b4d4-42d2-af4d-d250a1fd2590"},cashierUuid:{_type:a.Type.String,_description:"Cashier uuid used when raising a ward bill",_default:"54065383-b4d4-42d2-af4d-d250a1fd2590"},wardBillingCurrencyLocaleMap:{_type:a.Type.Object,_description:"Optional mapping of locale (e.g. en-KE) to ISO currency code (e.g. KES) for ward billing displays.",_default:{en:"KES",sw:"KES","en-KE":"KES","sw-KE":"KES"}},drugOrderEncounterType:{_description:"Drug Order encounter type Uuid",_type:a.Type.UUID,_default:"7df67b83-1b84-4fe2-b1b7-794b4e9bfcc3"},clinicalConsultationEncounterType:{_description:"Clinical consultation encounter type Uuid",_type:a.Type.UUID,_default:"465a92f2-baf8-42e9-9612-53064be868e8"},doctorsNoteEncounterType:{_description:"Doctors note encounter type Uuid",_type:a.Type.UUID,_default:"14b36860-5033-4765-b91b-ace856ab64c2"},inPatientForms:{_type:a.Type.Array,_description:"List of forms that can be filled out for in-patients",_default:[{label:"Cardex Nursing Plan",uuid:"1f81d5e2-3569-40cf-bbb9-361a53ba409b",tags:[]},{label:"IPD Procedure Form",uuid:"2b9c2b94-0b03-416a-b312-eef49b42f72c",tags:[]},{label:"Newborn Unit Admission ",uuid:"5b0a08f5-87c1-40cc-8c09-09c33b44523d",hideExpression:"ageInDays < 28",tags:[]},{uuid:"87379b0a-738b-4799-9736-cdac614cee2a",label:"Inpatient Review Notes",tags:[]},{uuid:"dbc4ff03-3eee-49f0-86a8-7cfd33dc2460",label:"Admission Notes",dependancies:["87379b0a-738b-4799-9736-cdac614cee2a"],tags:[]},{uuid:"a14824ca-29af-4d37-b9da-6bdee39f8808",label:"Pre-Operation Checklist",tags:[]},{uuid:"b4bfa7a3-f6ed-4339-a4ec-b076463c0696",label:"Fluid Intake",tags:[]},{uuid:"3efe6966-a011-4d24-aa43-d3051bfbb8e3",label:"Initial Nursing Cardex",tags:[]},{uuid:"57b8bb54-321f-4b94-bba5-58850527bfd6",label:"Maternity inpatient form",tags:[{uuid:"dab3c2bb-0b0b-4ebd-8f99-3ad44996d311",tag:"Antenantal Ward"}]},{uuid:"98a781d2-b777-4756-b4c9-c9b0deb3483c",label:"Inpatient Discharge form",tags:[{uuid:"dab3c2bb-0b0b-4ebd-8f99-3ad44996d311",tag:"Antenantal Ward"},{uuid:"7680b7ee-6880-450c-8b7e-2a748b6f9dc7",tag:"Labour & Delivery Ward"},{uuid:"473001b4-5a6e-4e2e-b39c-f54edea89c6f",tag:"Postnatal Ward"}]},{uuid:"496c7cc3-0eea-4e84-a04c-2292949e2f7f",label:"Delivery form",tags:[{uuid:"7680b7ee-6880-450c-8b7e-2a748b6f9dc7",tag:"Labour & Delivery Ward"}]},{uuid:"07dc609f-e607-43d6-9dc3-8bd405c4226a",label:"Post Delivery form",tags:[{uuid:"473001b4-5a6e-4e2e-b39c-f54edea89c6f",tag:"Postnatal Ward"}]},{uuid:"2061790f-815e-43a9-8a1e-dae9e4956c2a",label:"Surgical Safety Checklist (Sign In)",tags:[]},{uuid:"982af61b-fd51-474c-85d2-0459b7e3640b",label:"Surgical Safety Checklist (Sign Out)",tags:[]},{uuid:"923411a3-4aae-4242-ba85-bb5b5176e6b1",label:"Surgical Safety Checklist (Time Out)",tags:[]},{uuid:"77a06fb9-0035-474e-8b2b-c247ac75d2e7",label:"Preoperative Questionnaire",tags:[]},{uuid:"b8368c5e-7b3b-419e-bd33-bb05cdf34952",label:"Doctor's Follow up Note",tags:[]},{uuid:"e8054795-3df5-435d-9ae3-6ae3a6a1857f",label:"Pre- Anaesthesia Checklist",tags:[]},{uuid:"56b3ca43-2687-49d4-a03e-1b4329fe0f63",label:"Nursing Care Plan",tags:[]}]},inPatientVisitTypeUuid:{_type:a.Type.String,_description:"The visit type uuid for in-patient",_default:"a73e2ac6-263b-47fc-99fc-e0f2c09fc914"},postProcedureEncounterTypeUuid:{_description:"Post Procedure encounter type Uuid",_type:a.Type.UUID,_default:"13beea61-7d3d-4860-abe3-d5b874f736fb"},postProcedureConceptUuids:{_description:"Concept UUIDs for the Post Procedure form",_type:a.Type.Object,_default:{surgeryDateTime:"160715AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",operativeProcedure:"166635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",procedurePerformed:"1651AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",anaesthesiaType:"164254AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",patientPosition:"159633AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",incisionLocation:"163049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",incisionType:"b9879725-26f6-4aa4-8777-bc7f75d388c1",closureMethod:"166629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",findings:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",histologySpecimen:"161934AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",specimenType:"163761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",procedureNotes:"160716AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},paymentMethods:{_type:a.Type.Array,_description:"List of payment methods used when printing gatepass",_default:["Cash [ ]","Cheque [ ]","SHA [ ]","Scheme [ ]","M.R.M [ ]"]},nursingCardex:{_type:a.Type.Object,_description:"Nursing Cardex form concept UUIDs, form field paths and encounter role.",_default:{encounterRoleUuid:"a0b03050-c99b-11e0-9572-0800200c9a66",concepts:{nursingNotes:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",actionTaken:"1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",yes:"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",no:"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",medicationGivenGroup:"159369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",fluidsGivenGroup:"161911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",nameField:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",timeField:"9c4c7722-ba3e-4bdf-ab97-c04170100037",encounterType:"b6569074-3b8c-43ba-bd4a-98c445405035",formUuid:"1f81d5e2-3569-40cf-bbb9-361a53ba409b"},formFieldPaths:{nursingNotes:"nursingNotes~9",actionTaken:"actionTaKen~10",medicationName:"medicatIonName~11",medicationMeta:"medicatIonMeta~11m",medicationTime:"TtakEn~12",medicationGroup:"medsRepeat~13",actionTakenFluids:"actionTaKenIVfluids~14",fluidName:"flUidName~15",fluidMeta:"flUidMeta~15m",fluidTime:"fluiDsTtakEn~16",fluidGroup:"fluiDsRepeat~17"}}},inpatientLocationTags:{_description:"Location tag UUIDs used to show partograph and labour care guide (maternity and labour ward only).",_default:{maternityWard:"b95dd376-fa35-40a6-b140-d144c5f22f62",labourWard:"7680b7ee-6880-450c-8b7e-2a748b6f9dc7",icuWard:"770f6a93-8e59-48ad-ba7d-98d5652db240",hduWard:"25439b2d-6495-4f5d-9ec6-4fe64686cf46",nicuWard:"17558b82-7275-409c-9f77-0d934ae881cf",picuWard:"d9aaa6fa-8594-416c-b5da-e50fd3a180b2",pediatricWard:"0db2eb63-f0ac-4f22-8d65-766a4828c9ba"}},bypassPartographAdmissionChecks:{_type:a.Type.Boolean,_description:"Demo flag. When true, skip admission and labour-ward tag checks and show partograph for female patients. Set to false for production.",_default:!0},treatmentChartCardexEncounterTypeUuid:{_description:"Encounter type uuid for the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"b6569074-3b8c-43ba-bd4a-98c445405035"},treatmentChartCardexFormUuid:{_description:"Form uuid for the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"1f81d5e2-3569-40cf-bbb9-361a53ba409b"},treatmentChartMedicationGroupUuid:{_description:"Concept uuid for the medication group in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"159369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},treatmentChartFluidGroupUuid:{_description:"Concept uuid for the fluids group in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"161911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},treatmentChartNameConceptUuid:{_description:"Concept uuid for the name field in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},treatmentChartTimeConceptUuid:{_description:"Concept uuid for the time field in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"9c4c7722-ba3e-4bdf-ab97-c04170100037"},partography:{_type:a.Type.Object,_description:"Labour care guide partography module configuration",_default:n},lcgSessionCorrectionPrivilege:{_type:a.Type.String,_description:"OpenMRS privilege required to open the LCG wrong-patient correction wizard",_default:"Correct LCG Wrong Patient"},nationIdIdentifierTypeUuid:{_type:a.Type.UUID,_description:"Identifier type uuid for the national ID",_default:"49af6cdc-7968-4abb-bf46-de10d7f4859f"},crIdentifierTypeUuid:{_type:a.Type.UUID,_description:"Identifier type uuid for the SHIF ID",_default:"24aedd37-b5be-4e08-8311-3721b8d5100d"},showCrIdentifierOnSummary:{_type:a.Type.Boolean,_description:"Whether to show the CR ID on the patient summary",_default:!0}}},5132(A,e,t){"use strict";t.d(e,{A:()=>a});let a="@kenyaemr/esm-ward-app"},9633(A,e,t){"use strict";t.r(e),t.d(e,{patientTransferAndSwapWorkspaceSiderailIcon:()=>P,root:()=>C,patientDischargeDocumentPreview:()=>q,nursingCardexPlanWorkspace:()=>Z,wardPatientNotesActionButtonExtension:()=>y,patientDischargeWorkspace:()=>m,clinicalFormWorkspaceSideRailIcon:()=>M,wardPatientsUnassignedTable:()=>Y,labourCareGuide:()=>J,inPatientDetailView:()=>z,inPatientAdmissionRequest:()=>Q,wardPatientsAdmittedTable:()=>V,globalCdsAlertBanner:()=>Ae,inPatientPartographView:()=>At,defaultWardView:()=>F,patientBedSwapForm:()=>S,patientClinicalFormsWorkspace:()=>R,importTranslation:()=>T,maternityInpatientFormWorkspace:()=>AA,patientDischargeWorkspaceSideRailIcon:()=>h,wardPatientsDischargeInTable:()=>H,wardSwitchModal:()=>x,wardView:()=>u,admissionRequestWorkspace:()=>O,inPatientChartLink:()=>K,createAdmissionEncounterWorkspaceSideRailIcon:()=>v,wardPatientWorkspaceBanner:()=>j,inPatientTreatmentChart:()=>$,maternalWardView:()=>k,createWardBillWorkspace:()=>Ai,admitPatientFormWorkspace:()=>N,admissionRequestsWorkspaceSideRailIcon:()=>w,inPatientChartDashboard:()=>X,startupApp:()=>Aa,wardPatientNotesWorkspace:()=>I,patientAdmitOrTransferRequestForm:()=>g,patientTransferAndSwapWorkspace:()=>U,wardPatientWorkspace:()=>f,wardPatientsAwaitingAdmissionTable:()=>G,createAdmissionEncounterWorkspace:()=>B,patientTransferRequestWorkspace:()=>D,wardPatientActionButtonExtension:()=>b,wardPatientsDischargedTable:()=>W,wardDashboardLink:()=>p,cancelAdmissionRequestWorkspace:()=>L});var a=t(357),i=t(7488),n=t(5132),r=t(8602),o=t.n(r),d=t(1907),s=t(5614),c=t(4441);function _({dashboardLinkConfig:A}){var e;let{name:t,title:i,icon:n}=A,{t:l}=(0,s.useTranslation)(),T=(0,d.useLocation)(),E=window.getOpenmrsSpaBase()+"home",C=(0,r.useMemo)(()=>decodeURIComponent((0,c.A)(T.pathname.split("/"))),[T.pathname]);return e=C,/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)&&(C=T.pathname.split("/").at(-1)),o().createElement(a.ConfigurableLink,{className:`cds--side-nav__link ${t===C&&"active-left-nav-link"}`,to:E+"/"+t},o().createElement("span",{className:"-esm-ward__create-dashboard__menu___57tGE"},o().createElement(a.MaybeIcon,{icon:n,className:"-esm-ward__create-dashboard__icon___uvnSQ",size:16}),o().createElement("span",null,l(i))))}let l=A=>()=>o().createElement(d.BrowserRouter,null,o().createElement(_,{dashboardLinkConfig:A})),T=t(4767),E={featureName:"ward",moduleName:n.A},C=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("5576"),t.e("4321"),t.e("3549"),t.e("9396")]).then(t.bind(t,3615)),E),p=(0,a.getSyncLifecycle)(l({name:"ward",title:"admissions",icon:""}),E),u=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("3549"),t.e("2101")]).then(t.bind(t,8804)),E),O=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("3549"),t.e("4266")]).then(t.bind(t,9265)),E),N=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("2304"),t.e("4321"),t.e("3549"),t.e("5493")]).then(t.bind(t,5956)),E),f=(0,a.getAsyncLifecycle)(()=>t.e("9080").then(t.bind(t,6811)),E),I=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("5460")]).then(t.bind(t,6188)),E),b=(0,a.getAsyncLifecycle)(()=>t.e("5650").then(t.bind(t,9705)),E),y=(0,a.getAsyncLifecycle)(()=>t.e("7683").then(t.bind(t,3822)),E),U=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("5862")]).then(t.bind(t,6997)),E),m=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("636")]).then(t.bind(t,7447)),E),P=(0,a.getAsyncLifecycle)(()=>t.e("502").then(t.bind(t,7653)),E),D=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("2764"),t.e("1613")]).then(t.bind(t,3313)),E),h=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("8990"),t.e("9427")]).then(t.bind(t,4078)),E),R=(0,a.getAsyncLifecycle)(()=>t.e("5060").then(t.bind(t,2239)),E),g=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("2764"),t.e("9309")]).then(t.bind(t,7895)),E),S=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("4847")]).then(t.bind(t,5554)),E),L=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("3276")]).then(t.bind(t,4807)),E),M=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("9011"),t.e("4777")]).then(t.bind(t,4109)),E),w=(0,a.getAsyncLifecycle)(()=>t.e("9143").then(t.bind(t,3354)),E),v=(0,a.getAsyncLifecycle)(()=>t.e("6126").then(t.bind(t,8829)),E),B=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("3549"),t.e("7891")]).then(t.bind(t,2222)),E),F=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("2124"),t.e("4926"),t.e("9049"),t.e("4321"),t.e("3549"),t.e("1033"),t.e("2446")]).then(t.bind(t,1247)),E),k=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("2124"),t.e("4926"),t.e("4321"),t.e("3549"),t.e("1033"),t.e("5050")]).then(t.bind(t,6476)),E),G=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("2290")]).then(t.bind(t,7623)),E),V=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("2830")]).then(t.bind(t,9635)),E),Y=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("8302")]).then(t.bind(t,7745)),E),H=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("6380")]).then(t.bind(t,9025)),E),W=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("5591")]).then(t.bind(t,5359)),E),j=(0,a.getAsyncLifecycle)(()=>t.e("6703").then(t.bind(t,1378)),E),q=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("4883")]).then(t.bind(t,5422)),E),x=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("3549"),t.e("6079")]).then(t.bind(t,5138)),E),K=(0,a.getSyncLifecycle)(l({slot:"patient-chart-in-patient-dashboard-slot",path:"in-patient",title:"In Patient",moduleName:"@kenyaemr/esm-bed-management-app",name:"In Patient",columns:1,config:{},icon:"omrs-icon-hospital-bed",icon:"omrs-icon-activity"}),E),X=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("5181")]).then(t.bind(t,6092)),E),Q=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("1992")]).then(t.bind(t,6332)),E),z=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7240")]).then(t.bind(t,92)),E),Z=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("2304"),t.e("5976"),t.e("4321"),t.e("9926")]).then(t.bind(t,7637)),E),$=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("5976"),t.e("4321"),t.e("3549"),t.e("8923")]).then(t.bind(t,8137)),E),J=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("4321"),t.e("4892")]).then(t.bind(t,2583)),E),AA=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("7984")]).then(t.bind(t,3891)),E),Ae=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4162")]).then(t.bind(t,6505)),E),At=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("1364")]).then(t.bind(t,9647)),E);function Aa(){(0,a.registerBreadcrumbs)([]),(0,a.defineConfigSchema)(n.A,i.Qn),(0,a.registerFeatureFlag)("bedmanagement-module","Bed management module","Enables features related to bed management / assignment. Requires the backend bed management module to be installed.")}let Ai=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("2304"),t.e("4321"),t.e("3549"),t.e("9456")]).then(t.bind(t,4873)),E)},4441(A,e,t){"use strict";t.d(e,{A:()=>a});let a=function(A){var e=null==A?0:A.length;return e?A[e-1]:void 0}}}]);
|
|
1
|
+
(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["2810"],{4767(A,e,t){var a={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["6468","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function i(A){if(!t.o(a,A))return Promise.resolve().then(function(){var e=Error("Cannot find module '"+A+"'");throw e.code="MODULE_NOT_FOUND",e});var e=a[A],i=e[0];return t.e(e[1]).then(function(){return t(i)})}i.keys=()=>Object.keys(a),i.id=4767,A.exports=i},7488(A,e,t){"use strict";t.d(e,{Qn:()=>r,Tt:()=>i,sZ:()=>n});var a=t(357);let i={UUID_SHARED_DECISION_ASSESSMENT:"162164AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_PLAN:"166021AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_ACTION:"160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_CONTINUE_MONITORING:"159835AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_TRANSFER_TO_CS:"159739AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_REFERRAL:"0dcc1312-e83e-4317-97c3-4b127b599744",UUID_SHARED_DECISION_TWIN_ONE_BIRTH:"d9ad3cc2-5800-4cd0-ab51-fa3306295617",UUID_SHARED_DECISION_BIRTH:"fb50f3e1-0971-4f82-9774-41ff57e38043",UUID_CONTRACTION_NONE:"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_MILD:"1498AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_MODERATE:"1499AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_STRONG:"166788AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_CONTRACTION_STRONG_FALLBACK:"4b90b73a-ad11-4650-91b0-baea131974e0",UUID_URINE_NEGATIVE:"1874AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_ONE_PLUS:"1362AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_TWO_PLUS:"1363AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_THREE_PLUS:"1364AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_NOT_DONE:"1118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URINE_TEST_TIME_SLOT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",UUID_PARTOGRAPHY_ENCOUNTER:"022d62af-e2a5-4282-953b-52dd5cba3296",UUID_MEDICATION_OXYTOCIN_ADMINISTERED:"82580974-ff46-41c5-b218-4bea7f53bf7e",UUID_MEDICATION_OXYTOCIN_DOSE:"166530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MEDICATION_MEDICATION:"1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MEDICATION_NAME:"c3082af8-f935-40c5-aa5b-74c684e81aea",UUID_YES:"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_NO:"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SUPPORTIVE_CARE_COMPANION:"8a5757a7-b607-4948-b8a8-587b1f44366a",UUID_SUPPORTIVE_CARE_PAIN_RELIEF:"a563b9bd-eb1d-4a0e-8271-f3ee00da6d25",UUID_SUPPORTIVE_CARE_ORAL:"217c3dcb-d13e-48d6-89b9-f2c588d50a3c",UUID_SUPPORTIVE_CARE_POSTURE:"dc94a788-de10-417d-aac8-0aed5ba3b806",UUID_SUPPORTIVE_CARE_DECLINED:"167156AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SUPPORTIVE_CARE_SUPINE:"159629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SUPPORTIVE_CARE_MOBILE:"c05125ad-e297-491f-aa65-d73ecc3245f0",UUID_BABY_BASELINE_FHR:"1440AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FHR_DECELERATION:"c608022e-a29c-44c9-a4c8-24b6e3105ae4",UUID_BABY_AMNIOTIC_FLUID:"30ea66be-16d1-44f6-af40-4fe273814454",UUID_BABY_FETAL_POSITION:"78a5cb66-ca95-4965-9c54-0cb6198c9389",UUID_BABY_CAPUT:"4e54e9bf-9a1a-4dfd-a4a1-b727860f1c4a",UUID_BABY_MOULDING:"166527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FHR_DECELERATION_LATE:"167151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FHR_DECELERATION_EARLY:"58f1c745-8873-44ff-9680-2a3bbe172990",UUID_BABY_FHR_DECELERATION_VARIABLE:"155653AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_INTACT:"164899AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_CLEAR:"159484AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_BLOOD:"1077AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_AMNIOTIC_MECONIUM:"134488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FETAL_POSITION_ANTERIOR:"164148AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FETAL_POSITION_POSTERIOR:"541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_BABY_FETAL_POSITION_TRANSVERSE:"124261AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MATERNITY_INPATIENT_ENCOUNTER_TYPE:"6877a5b4-441d-4dff-ada1-fcc2485c33e6",UUID_MATERNITY_INPATIENT_FORM:"57b8bb54-321f-4b94-bba5-58850527bfd6",UUID_PARITY_CONCEPT:"160080AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_MISCARRIAGE_ABORTIONS_CONCEPT:"1823AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_URGE_TO_PUSH:"9ad5b56d-597c-4a40-ade6-387802daa44a",UUID_EMERGENCY_OVERRIDE:"1670AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_EMERGENCY_REASON:"163761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_SHARED_DECISION_TERMINATE_ONGOING_PROGRESS:"737fa73a-509f-40d8-9e84-91dc71db7f4c",UUID_LCG_TERMINATION_REASON_TYPE:"6098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_TERMINATION_REASON_WRONG_PATIENT:"164144AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_TERMINATION_REASON_OTHER:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_ENCOUNTER_TYPE:"b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f",UUID_LCG_CORRECTION_TYPE:"4b3eb27b-43c0-4862-bd83-be06beb3d699",UUID_LCG_CORRECTION_TYPE_WRONG_PATIENT_TRANSFER:"1286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_SOURCE_PATIENT_UUID:"162720AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_SOURCE_TERMINATE_ENCOUNTER_UUID:"1671AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_TERMINATION_REASON:"162704AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_SOURCE_PATIENT_DISPLAY:"850a960b-e8b5-4775-ba74-aaddb2abbf51",UUID_LCG_CORRECTION_TERMINATED_AT:"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UUID_LCG_CORRECTION_TRANSFER_NOTES:"1056dc03-ce4d-45cb-a1eb-87707162e6ee",FETAL_HEART_RATE_CONCEPT:"1440AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",FETAL_HEART_RATE_TIME_CONCEPT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",FETAL_HEART_RATE_HOUR_CONCEPT:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_FLUID_CONCEPT:"162653AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",RUPTURED_MEMBRANES_CONCEPT:"164900AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_CLEAR_LIQUOR_CONCEPT:"159484AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_MECONIUM_STAINED_CONCEPT:"134488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_ABSENT_CONCEPT:"163747AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_BLOOD_STAINED_CONCEPT:"1077AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",AMNIOTIC_MEMBRANE_INTACT_CONCEPT:"d1787a76-7310-4223-a645-9fd410d418c1",UTERINE_CONTRACTIONS_CONCEPT:"163750AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_LEVEL_MILD_CONCEPT:"1498AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_LEVEL_MODERATE_CONCEPT:"1499AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_LEVEL_STRONG_CONCEPT:"166788AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",UTERINE_CONTRACTION_FREQUENCY_CONCEPT:"d266dee4-bbe8-4736-b94d-c33300f55bca",UTERINE_CONTRACTION_DURATION_CONCEPT:"159368AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",OXYTOCIN_TIME_CONCEPT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",OXYTOCIN_DROPS_PER_MINUTE_CONCEPT:"1d109b10-7b30-4bfa-8a7c-6ecb73357fc2",OXYTOCIN_DOSE_CONCEPT:"81369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",ROUTE_CONCEPT:"8878f9c0-a1ce-47ec-a88f-69ef0f6576ba",FREQUENCY_CONCEPT:"fd9f82fd-f327-4502-ac8e-5d9144dbd504",MEDICATION_CONCEPT:"c3082af8-f935-40c5-aa5b-74c684e81aea",IV_FLUIDS_CONCEPT:"644504bd-23bc-4f1e-b9a0-d44f81f4148e",IV_FLUID_TYPE_CONCEPT:"161911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DOSAGE_CONCEPT:"b71ddb80-2d7f-4bde-a44b-236e62d4c1b6",DRUG_DOSE_CONCEPT:"162384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MATERNAL_PULSE_CONCEPT:"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",SYSTOLIC_BP_CONCEPT:"5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DIASTOLIC_BP_CONCEPT:"5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",PULSE_BP_TIME_CONCEPT:"bb3724c9-fbcc-49c5-9702-6cde0be325ca",PROTEIN_LEVEL_CONCEPT:"1875AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",GLUCOSE_LEVEL_CONCEPT:"887AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",KETONE_LEVEL_CONCEPT:"161442AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",URINE_VOLUME_CONCEPT:"159660AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",URINE_CHARACTERISTICS_CONCEPT:"56AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",TIME_RESULTS_RETURNED:"67c3d4c6-465e-4c12-9b7f-d8587ca90603",TIME_SAMPLE_COLLECTED:"c554f157-2e16-4585-af29-c48f5e765ce0",CERVIX_CONCEPT:"162261AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DESCENT_OF_HEAD_CONCEPT:"166528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_0_CONCEPT:"160769AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_1_CONCEPT:"162135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_2_CONCEPT:"166065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_3_CONCEPT:"166066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_4_CONCEPT:"166067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",STATION_5_CONCEPT:"163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DRUG_ORDER_TYPE_UUID:"131168f4-15f5-102d-96e4-000c29c2a5d7",ENCOUNTER_ROLE:"240b26f9-dd88-4172-823d-4a8bfeb7841f",MOULDING_NONE_CONCEPT:"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_SLIGHT_CONCEPT:"1362AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_MODERATE_CONCEPT:"1363AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_SEVERE_CONCEPT:"1364AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",TEMPERATURE_CONCEPT:"5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",CONTRACTION_COUNT_CONCEPT:"d266dee4-bbe8-4736-b94d-c33300f55bca",MEDICATION_NAME_CONCEPT:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",EVENT_TYPE_CONCEPT:"162879AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",EVENT_DESCRIPTION_CONCEPT:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",MOULDING_CONCEPT:"166527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",BLOOD_GROUP_CONCEPT:"300AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",TIME_SLOT_CONCEPT:"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",LABOR_PATTERN_CONCEPT:"164135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",HOURS_SINCE_RUPTURE_CONCEPT:"167149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",DATE_OF_ADMISSION_CONCEPT:"1640AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",GESTATION_WEEKS_CONCEPT:"1789AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",ESTIMATED_DELIVERY_DATE_CONCEPT:"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",LAST_MENSTRUAL_PERIOD_CONCEPT:"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},n={conceptMappings:{"fetal-heart-rate":[i.FETAL_HEART_RATE_CONCEPT],"blood-pressure":[i.SYSTOLIC_BP_CONCEPT,i.DIASTOLIC_BP_CONCEPT],"maternal-pulse":[i.MATERNAL_PULSE_CONCEPT],temperature:[i.TEMPERATURE_CONCEPT],"cervical-dilation":[i.CERVIX_CONCEPT],"descent-of-head":[i.DESCENT_OF_HEAD_CONCEPT],"uterine-contractions":[i.UTERINE_CONTRACTION_FREQUENCY_CONCEPT],"urine-analysis":[i.PROTEIN_LEVEL_CONCEPT,i.GLUCOSE_LEVEL_CONCEPT,i.KETONE_LEVEL_CONCEPT],"drugs-fluids":[i.UUID_MEDICATION_MEDICATION,i.IV_FLUIDS_CONCEPT,i.IV_FLUID_TYPE_CONCEPT],"progress-events":[i.EVENT_TYPE_CONCEPT,i.EVENT_DESCRIPTION_CONCEPT,i.FETAL_HEART_RATE_CONCEPT,i.CERVIX_CONCEPT,i.UTERINE_CONTRACTIONS_CONCEPT]},conceptUuids:{cervix:i.CERVIX_CONCEPT,"fetal-heart-rate":i.FETAL_HEART_RATE_CONCEPT,"fetal-heart-rate-hour":i.FETAL_HEART_RATE_HOUR_CONCEPT,"fetal-heart-rate-time":i.FETAL_HEART_RATE_TIME_CONCEPT,"cervical-dilation":i.CERVIX_CONCEPT,"descent-of-head":i.DESCENT_OF_HEAD_CONCEPT,"uterine-contractions":i.UTERINE_CONTRACTIONS_CONCEPT,"uterine-contraction-frequency":i.UTERINE_CONTRACTION_FREQUENCY_CONCEPT,"uterine-contraction-duration":i.UTERINE_CONTRACTION_DURATION_CONCEPT,"maternal-pulse":i.MATERNAL_PULSE_CONCEPT,"systolic-bp":i.SYSTOLIC_BP_CONCEPT,"diastolic-bp":i.DIASTOLIC_BP_CONCEPT,temperature:i.TEMPERATURE_CONCEPT,"protein-level":i.PROTEIN_LEVEL_CONCEPT,"glucose-level":i.GLUCOSE_LEVEL_CONCEPT,"ketone-level":i.KETONE_LEVEL_CONCEPT,"urine-volume":i.URINE_VOLUME_CONCEPT,"contraction-count":i.CONTRACTION_COUNT_CONCEPT,"urine-characteristics":i.URINE_CHARACTERISTICS_CONCEPT,medication:i.MEDICATION_CONCEPT,"medication-name":i.MEDICATION_NAME_CONCEPT,"oxytocin-dose":i.OXYTOCIN_DOSE_CONCEPT,"oxytocin-drops-per-minute":i.OXYTOCIN_DROPS_PER_MINUTE_CONCEPT,"oxytocin-time":i.OXYTOCIN_TIME_CONCEPT,"iv-fluids":i.IV_FLUIDS_CONCEPT,"iv-fluid-type":i.IV_FLUID_TYPE_CONCEPT,dosage:i.DOSAGE_CONCEPT,route:i.ROUTE_CONCEPT,frequency:i.FREQUENCY_CONCEPT,"drug-dose":i.DRUG_DOSE_CONCEPT,"event-type":i.EVENT_TYPE_CONCEPT,"event-description":i.EVENT_DESCRIPTION_CONCEPT,"amniotic-fluid":i.AMNIOTIC_FLUID_CONCEPT,"amniotic-clear-liquor":i.AMNIOTIC_CLEAR_LIQUOR_CONCEPT,"amniotic-meconium-stained":i.AMNIOTIC_MECONIUM_STAINED_CONCEPT,"amniotic-absent":i.AMNIOTIC_ABSENT_CONCEPT,"amniotic-blood-stained":i.AMNIOTIC_BLOOD_STAINED_CONCEPT,moulding:i.MOULDING_CONCEPT,"moulding-none":i.MOULDING_NONE_CONCEPT,"moulding-slight":i.MOULDING_SLIGHT_CONCEPT,"moulding-moderate":i.MOULDING_MODERATE_CONCEPT,"moulding-severe":i.MOULDING_SEVERE_CONCEPT,"blood-group":i.BLOOD_GROUP_CONCEPT,"time-slot":i.TIME_SLOT_CONCEPT,"pulse-time-slot":i.PULSE_BP_TIME_CONCEPT,"labor-pattern":i.LABOR_PATTERN_CONCEPT,"hours-since-rupture":i.HOURS_SINCE_RUPTURE_CONCEPT,"ruptured-membranes":i.RUPTURED_MEMBRANES_CONCEPT,"date-of-admission":i.DATE_OF_ADMISSION_CONCEPT,"gestation-weeks":i.GESTATION_WEEKS_CONCEPT,"estimated-delivery-date":i.ESTIMATED_DELIVERY_DATE_CONCEPT,"last-menstrual-period":i.LAST_MENSTRUAL_PERIOD_CONCEPT,"baby-twin-index":"163460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","station-0":i.STATION_0_CONCEPT,"station-1":i.STATION_1_CONCEPT,"station-2":i.STATION_2_CONCEPT,"station-3":i.STATION_3_CONCEPT,"station-4":i.STATION_4_CONCEPT,"station-5":i.STATION_5_CONCEPT},stationDisplayMapping:{[i.STATION_0_CONCEPT]:"0/5",[i.STATION_1_CONCEPT]:"1/5",[i.STATION_2_CONCEPT]:"2/5",[i.STATION_3_CONCEPT]:"3/5",[i.STATION_4_CONCEPT]:"4/5",[i.STATION_5_CONCEPT]:"5/5"},stationValueMapping:{[i.STATION_0_CONCEPT]:0,[i.STATION_1_CONCEPT]:1,[i.STATION_2_CONCEPT]:2,[i.STATION_3_CONCEPT]:3,[i.STATION_4_CONCEPT]:4,[i.STATION_5_CONCEPT]:5},encounterPatterns:["mch-partograph","partography","fetal-monitoring","maternal-monitoring","obstetric-vitals","labor-monitoring","labour-monitoring"],fallbackEncounterMapping:{"fetal-heart-rate":["mch-mother-consultation","vitals","obstetric","maternal","consultation","clinical"],"cervical-dilation":["mch-mother-consultation","obstetric","maternal","consultation","clinical"],"maternal-pulse":["vitals","maternal","consultation","clinical"],"blood-pressure":["vitals","maternal","consultation","clinical"],temperature:["vitals","consultation","clinical"],"urine-analysis":["vitals","laboratory","consultation","clinical"],"drugs-fluids":["medication","treatment","consultation","clinical"],"progress-events":["obstetric","maternal","consultation","clinical"]},defaultFallbackSequence:["consultation","clinical"],retryFallbackTypes:["vitals","consultation","clinical"],defaultEncounterProviderRole:"a0b03050-c99b-11e0-9572-0800200c9a66",defaultLocationUuid:"1",storage:{maxLocalEntries:100,storageKeyPrefix:"partography_",cacheKeyPrefix:"partography_encounters_"},timeConfig:{defaultEncounterOffset:3e5,retryEncounterOffset:36e5,cacheInvalidationDelay:1e3},progressEventConceptNames:{[i.FETAL_HEART_RATE_CONCEPT]:{name:"Fetal Heart Rate",unit:"BPM"},[i.CERVIX_CONCEPT]:{name:"Cervical Dilation",unit:"cm"},[i.UTERINE_CONTRACTIONS_CONCEPT]:{name:"Uterine Contractions",unit:"per 10min"}},uuids:{timeSlot:"a1b2c3d4-1111-2222-3333-444455556666",mchPartographyEncounterUuid:i.UUID_PARTOGRAPHY_ENCOUNTER,drugsFluidsEncounterUuid:"39da3525-afe4-45ff-8977-c53b7b359158",contractionStrongConceptUuid:i.UUID_CONTRACTION_STRONG_FALLBACK},graphTypeDisplayNames:{"fetal-heart-rate":"Fetal Heart Rate","cervical-dilation":"Cervical Dilation","descent-of-head":"Descent of Head","uterine-contractions":"Uterine Contractions","maternal-pulse":"Maternal Pulse","blood-pressure":"Blood Pressure",temperature:"Temperature","urine-analysis":"Urine Analysis","drugs-fluids":"Drugs & Fluids","progress-events":"Progress & Events"},amnioticFluidMap:{"Membrane intact":i.UUID_BABY_AMNIOTIC_INTACT,"Clear liquor":i.UUID_BABY_AMNIOTIC_CLEAR,"Meconium Stained":i.UUID_BABY_AMNIOTIC_MECONIUM,Absent:i.AMNIOTIC_ABSENT_CONCEPT,"Blood Stained":i.UUID_BABY_AMNIOTIC_BLOOD},mouldingMap:{0:i.UUID_CONTRACTION_NONE,"+":i.UUID_URINE_ONE_PLUS,"++":i.UUID_URINE_TWO_PLUS,"+++":i.UUID_URINE_THREE_PLUS},testData:{testGraphTypes:["fetal-heart-rate","cervical-dilation","maternal-pulse","temperature","blood-pressure"],sampleDataPoints:[{value:120,time:"10:00"},{value:125,time:"11:00"},{value:130,time:"12:00"},{value:128,time:"13:00"}],valueIncrement:10,bloodPressureDecrement:40},descentOfHeadUuidToValue:{[i.STATION_0_CONCEPT]:0,[i.STATION_1_CONCEPT]:1,[i.STATION_2_CONCEPT]:2,[i.STATION_3_CONCEPT]:3,[i.STATION_4_CONCEPT]:4,[i.STATION_5_CONCEPT]:5}},r={patientCardElements:{_description:"Configuration of various patient card elements. Each configured element must have a unique id, defined in the ward React component being used.",obs:{_type:a.Type.Array,_description:"Configures obs values to display.",_default:[],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:a.Type.UUID,_description:"Identifies the concept to use to identify the desired observations."},label:{_type:a.Type.String,_description:"Optional. The custom label or i18n key to the translated label to display. If not provided, defaults to the concept's name. (Note that this can be set to an empty string to not show a label)",_default:null},orderBy:{_type:a.Type.String,_description:"One of 'ascending' or 'descending', specifying whether to display the obs by obsDatetime ascendingly or descendingly.",_default:"descending",_validators:[a.validators.oneOf(["ascending","descending"])]},limit:{_type:a.Type.Number,_description:"If set to a number greater than one, this will show multiple obs for this concept, which will appear as a list. Set to 0 for unlimited.",_default:1},onlyWithinCurrentVisit:{_type:a.Type.Boolean,_description:"Optional. If true, limits display to only observations within current visit. Defaults to false",_default:!1}}},pendingItems:{_type:a.Type.Array,_description:"Configures pending orders and transfers to display.",_default:[{id:"pending-items",orders:{orderTypes:[{label:"Labs",uuid:"52a447d3-a64a-11e3-9aeb-50e549534c5e"}]},showPendingItems:!0}],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},orders:{orderTypes:{_type:a.Type.Array,_description:"Configures pending orders and transfers to display.",_elements:{uuid:{_type:a.Type.UUID,_description:"Identifies the order type."},label:{_type:a.Type.String,_description:"The label or i18n key to the translated label to display. If not provided, defaults to 'Orders'",_default:null}}}},showPendingItems:{_type:a.Type.Boolean,_description:"Optional. If true, pending items (e.g., number of pending orders) will be displayed on the patient card."}}},patientIdentifier:{_type:a.Type.Array,_description:"Configures patient identifier to display. An unconfigured element displays the preferred identifier.",_default:[{id:"patient-identifier",showIdentifierLabel:!1}],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},showIdentifierLabel:{_type:a.Type.Boolean,_description:'If true, the identifier type (eg: "OpenMRS ID") is shown along with the identifier itself. Defaults to false'}}},patientAddress:{_type:a.Type.Array,_description:"Configures patient address elements.",_default:[{id:"patient-address",fields:["cityVillage","country"]}],_elements:{fields:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},fields:{_type:a.Type.Array,_description:"The fields of the address to display",_elements:{_type:a.Type.String,_validators:[a.validators.oneOf(["cityVillage","stateProvince","country","postalCode","countyDistrict","latitude","longitude","address1","address2","address3","address4","address5","address6","address7","address8","address9","address10","address11","address12","address13","address14","address15"])]}}}}},admissionRequestNote:{_type:a.Type.Array,_description:"Configures admission request notes to display.",_default:[{id:"admission-request-note",conceptUuid:"161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}],_elements:{fields:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:a.Type.UUID,_description:"Required. Identifies the concept for the admission request note."}}},coloredObsTags:{_type:a.Type.Array,_description:"Configures observation values to display as Carbon tags.",_elements:{conceptUuid:{_type:a.Type.UUID,_description:"Required. Identifies the concept to use to identify the desired observations.",_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},summaryLabel:{_type:a.Type.String,_description:"Optional. The custom label or i18n key to the translated label to display for the summary tag. The summary tag shows the count of the number of answers that are present but not configured to show as their own tags. If not provided, defaults to the name of the concept.",_default:null},summaryLabelI18nModule:{_type:a.Type.String,_description:"Optional. The custom module to use for translation of the summary label",_default:null},summaryLabelColor:{_type:a.Type.String,_description:"The color of the summary tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors",_default:null},tags:{_type:a.Type.Array,_description:"An array specifying concept sets and color. Observations with coded values that are members of the specified concept sets will be displayed as their own tags with the specified color. Any observation with coded values not belonging to any concept sets specified will be summarized as a count in the summary tag. If a concept set is listed multiple times, the first matching applied-to rule takes precedence.",_default:[],_elements:{color:{_type:a.Type.String,_description:"Color of the tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors."},appliedToConceptSets:{_type:a.Type.Array,_description:"The concept sets which the color applies to. Observations with coded values that are members of the specified concept sets will be displayed as their own tag with the specified color. If an observation's coded value belongs to multiple concept sets, the first matching applied-to rule takes precedence.",_elements:{_type:a.Type.UUID}}}}}}}},wards:{_description:"Configuration of what type of ward to use at different ward locations.",_type:a.Type.Array,_default:[{id:"default-ward"}],_elements:{id:{_type:a.Type.String,_description:'The ward type to use. Currently, "default-ward" and "maternal-ward" are supported. This string also serves as the extension slot name for the ward view.'},appliedTo:{_type:a.Type.Array,_description:"Optional. Conditions under which this card definition should be used. If not provided, the configuration is applied to all wards.",_elements:{location:{_type:a.Type.UUID,_description:"The UUID of the location. If not provided, applies to all wards.",_default:null}}}}},hideWorkspaceVitalsLinks:{_description:"Configure whether to hide vital history and record vital links in the ward patient workspace.",_type:a.Type.Boolean,_default:!1},ipdDischargeEncounterTypeUuid:{_description:"IPD Discharge encounter type",_type:a.Type.String,_default:"7e618d13-ffdb-4650-9a97-10ccd16ca36d"},transferRequestEncounterTypeUuid:{_description:"Tranfer request encounter type",_type:a.Type.String,_default:"b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f"},referralsConceptUuid:{_description:"Referrals concept uuid",_type:a.Type.String,_default:"1695AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},referringToAnotherFacilityConceptUuid:{_description:"Referring to another facility concept uuid",_type:a.Type.String,_default:"164165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},inpatientDischargeFormUuid:{_description:"IPD Discharge form uuid",_type:a.Type.String,_default:"98a781d2-b777-4756-b4c9-c9b0deb3483c"},admissionRequestFormUuid:{_description:"Admission request form uuid",_type:a.Type.String,_default:"0bae7646-b079-4cbb-8130-b24274fc16f7"},admissionFormUuid:{_description:"Admission form uuid",_type:a.Type.String,_default:"49f3686d-b83c-4263-a5a1-89040f643a78"},conceptUuidForWardAdmission:{_description:"Concept UUID for ward admission",_type:a.Type.Object,_default:{paymentMethod:"ffd8e033-a286-42b4-89d5-c6d6506d3161",mpesaPaymentMethod:"9b24f997-6582-46b5-8f58-924b0e39ad9a",cashPaymentMethod:"fc894152-07be-4e77-9dac-2a164e400a13",insurancePaymentMethod:"159356AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",otherInsuaranceType:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",insuranceOtherSpecify:"162169AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",primaryDoctor:"2b537713-298c-4b60-83c3-8006ea622d70",primaryDoctorPhoneNumber:"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",emmergencyDoctor:"1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",dischargingDoctor:"1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",emmergencyDoctorPhoneNumber:"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",admissionDateTime:"1640AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",chiefComplaint:"5219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",complaint:"160531AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",physicalExamination:"162737AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",dischargeInstruction:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",drugReaction:"162747AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",reactingDrug:"1193AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},diagnosisConceptSourceUud:{_type:a.Type.UUID,_description:"Diagnosis concept source",_default:"39ADDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"},insuaranceTypes:{_description:"Insuarance Types",_type:a.Type.Array,_elements:{concept:{_type:a.Type.UUID,_description:"Concept Uuid"},label:{_type:a.Type.String,_description:"Display string"}},_default:[{concept:"1a7fb8b5-6093-486d-baa2-65f8b4388544",label:"SHA"},{concept:"1917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Policy Holder"},{concept:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"OTHER"}]},inpatientAdmissionEncounterProviderRole:{_type:a.Type.UUID,_description:"Encounter provider role",_default:"'a0b03050-c99b-11e0-9572-0800200c9a66'"},mortuaryAdmissionLoctionTagUuid:{_description:"Mortuary admission location tag uuid",_type:a.Type.String,_default:"1dbbfe22-d21f-499c-bf33-cc9f75b6c7e8"},dailyBedFeeBillableService:{_description:"Daily Bed Fee bILLABLE SERVICE uuid",_type:a.Type.UUID,_default:"0a5a23e3-c953-428c-92e3-3b99f8a822f0"},cashPointUuid:{_type:a.Type.String,_description:"Cash point uuid used when raising a ward bill",_default:"54065383-b4d4-42d2-af4d-d250a1fd2590"},cashierUuid:{_type:a.Type.String,_description:"Cashier uuid used when raising a ward bill",_default:"54065383-b4d4-42d2-af4d-d250a1fd2590"},wardBillingCurrencyLocaleMap:{_type:a.Type.Object,_description:"Optional mapping of locale (e.g. en-KE) to ISO currency code (e.g. KES) for ward billing displays.",_default:{en:"KES",sw:"KES","en-KE":"KES","sw-KE":"KES"}},drugOrderEncounterType:{_description:"Drug Order encounter type Uuid",_type:a.Type.UUID,_default:"7df67b83-1b84-4fe2-b1b7-794b4e9bfcc3"},clinicalConsultationEncounterType:{_description:"Clinical consultation encounter type Uuid",_type:a.Type.UUID,_default:"465a92f2-baf8-42e9-9612-53064be868e8"},doctorsNoteEncounterType:{_description:"Doctors note encounter type Uuid",_type:a.Type.UUID,_default:"14b36860-5033-4765-b91b-ace856ab64c2"},inPatientForms:{_type:a.Type.Array,_description:"List of forms that can be filled out for in-patients",_default:[{label:"Cardex Nursing Plan",uuid:"1f81d5e2-3569-40cf-bbb9-361a53ba409b",tags:[]},{label:"IPD Procedure Form",uuid:"2b9c2b94-0b03-416a-b312-eef49b42f72c",tags:[]},{label:"Newborn Unit Admission ",uuid:"5b0a08f5-87c1-40cc-8c09-09c33b44523d",hideExpression:"ageInDays < 28",tags:[]},{uuid:"87379b0a-738b-4799-9736-cdac614cee2a",label:"Inpatient Review Notes",tags:[]},{uuid:"dbc4ff03-3eee-49f0-86a8-7cfd33dc2460",label:"Admission Notes",dependancies:["87379b0a-738b-4799-9736-cdac614cee2a"],tags:[]},{uuid:"a14824ca-29af-4d37-b9da-6bdee39f8808",label:"Pre-Operation Checklist",tags:[]},{uuid:"b4bfa7a3-f6ed-4339-a4ec-b076463c0696",label:"Fluid Intake",tags:[]},{uuid:"3efe6966-a011-4d24-aa43-d3051bfbb8e3",label:"Initial Nursing Cardex",tags:[]},{uuid:"57b8bb54-321f-4b94-bba5-58850527bfd6",label:"Maternity inpatient form",tags:[{uuid:"dab3c2bb-0b0b-4ebd-8f99-3ad44996d311",tag:"Antenantal Ward"}]},{uuid:"98a781d2-b777-4756-b4c9-c9b0deb3483c",label:"Inpatient Discharge form",tags:[{uuid:"dab3c2bb-0b0b-4ebd-8f99-3ad44996d311",tag:"Antenantal Ward"},{uuid:"7680b7ee-6880-450c-8b7e-2a748b6f9dc7",tag:"Labour & Delivery Ward"},{uuid:"473001b4-5a6e-4e2e-b39c-f54edea89c6f",tag:"Postnatal Ward"}]},{uuid:"496c7cc3-0eea-4e84-a04c-2292949e2f7f",label:"Delivery form",tags:[{uuid:"7680b7ee-6880-450c-8b7e-2a748b6f9dc7",tag:"Labour & Delivery Ward"}]},{uuid:"07dc609f-e607-43d6-9dc3-8bd405c4226a",label:"Post Delivery form",tags:[{uuid:"473001b4-5a6e-4e2e-b39c-f54edea89c6f",tag:"Postnatal Ward"}]},{uuid:"2061790f-815e-43a9-8a1e-dae9e4956c2a",label:"Surgical Safety Checklist (Sign In)",tags:[]},{uuid:"982af61b-fd51-474c-85d2-0459b7e3640b",label:"Surgical Safety Checklist (Sign Out)",tags:[]},{uuid:"923411a3-4aae-4242-ba85-bb5b5176e6b1",label:"Surgical Safety Checklist (Time Out)",tags:[]},{uuid:"77a06fb9-0035-474e-8b2b-c247ac75d2e7",label:"Preoperative Questionnaire",tags:[]},{uuid:"b8368c5e-7b3b-419e-bd33-bb05cdf34952",label:"Doctor's Follow up Note",tags:[]},{uuid:"e8054795-3df5-435d-9ae3-6ae3a6a1857f",label:"Pre- Anaesthesia Checklist",tags:[]},{uuid:"56b3ca43-2687-49d4-a03e-1b4329fe0f63",label:"Nursing Care Plan",tags:[]}]},inPatientVisitTypeUuid:{_type:a.Type.String,_description:"The visit type uuid for in-patient",_default:"a73e2ac6-263b-47fc-99fc-e0f2c09fc914"},postProcedureEncounterTypeUuid:{_description:"Post Procedure encounter type Uuid",_type:a.Type.UUID,_default:"13beea61-7d3d-4860-abe3-d5b874f736fb"},postProcedureConceptUuids:{_description:"Concept UUIDs for the Post Procedure form",_type:a.Type.Object,_default:{surgeryDateTime:"160715AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",operativeProcedure:"166635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",procedurePerformed:"1651AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",anaesthesiaType:"164254AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",patientPosition:"159633AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",incisionLocation:"163049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",incisionType:"b9879725-26f6-4aa4-8777-bc7f75d388c1",closureMethod:"166629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",findings:"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",histologySpecimen:"161934AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",specimenType:"163761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",procedureNotes:"160716AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},paymentMethods:{_type:a.Type.Array,_description:"List of payment methods used when printing gatepass",_default:["Cash [ ]","Cheque [ ]","SHA [ ]","Scheme [ ]","M.R.M [ ]"]},nursingCardex:{_type:a.Type.Object,_description:"Nursing Cardex form concept UUIDs, form field paths and encounter role.",_default:{encounterRoleUuid:"a0b03050-c99b-11e0-9572-0800200c9a66",concepts:{nursingNotes:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",actionTaken:"1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",yes:"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",no:"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",medicationGivenGroup:"159369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",fluidsGivenGroup:"161911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",nameField:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",timeField:"9c4c7722-ba3e-4bdf-ab97-c04170100037",encounterType:"b6569074-3b8c-43ba-bd4a-98c445405035",formUuid:"1f81d5e2-3569-40cf-bbb9-361a53ba409b"},formFieldPaths:{nursingNotes:"nursingNotes~9",actionTaken:"actionTaKen~10",medicationName:"medicatIonName~11",medicationMeta:"medicatIonMeta~11m",medicationTime:"TtakEn~12",medicationGroup:"medsRepeat~13",actionTakenFluids:"actionTaKenIVfluids~14",fluidName:"flUidName~15",fluidMeta:"flUidMeta~15m",fluidTime:"fluiDsTtakEn~16",fluidGroup:"fluiDsRepeat~17"}}},inpatientLocationTags:{_description:"Location tag UUIDs used to show partograph and labour care guide (maternity and labour ward only).",_default:{maternityWard:"b95dd376-fa35-40a6-b140-d144c5f22f62",labourWard:"7680b7ee-6880-450c-8b7e-2a748b6f9dc7",icuWard:"770f6a93-8e59-48ad-ba7d-98d5652db240",hduWard:"25439b2d-6495-4f5d-9ec6-4fe64686cf46",nicuWard:"17558b82-7275-409c-9f77-0d934ae881cf",picuWard:"d9aaa6fa-8594-416c-b5da-e50fd3a180b2",pediatricWard:"0db2eb63-f0ac-4f22-8d65-766a4828c9ba"}},bypassPartographAdmissionChecks:{_type:a.Type.Boolean,_description:"Demo flag. When true, skip admission and labour-ward tag checks and show partograph for female patients. Set to false for production.",_default:!0},treatmentChartCardexEncounterTypeUuid:{_description:"Encounter type uuid for the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"b6569074-3b8c-43ba-bd4a-98c445405035"},treatmentChartCardexFormUuid:{_description:"Form uuid for the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"1f81d5e2-3569-40cf-bbb9-361a53ba409b"},treatmentChartMedicationGroupUuid:{_description:"Concept uuid for the medication group in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"159369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},treatmentChartFluidGroupUuid:{_description:"Concept uuid for the fluids group in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"161911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},treatmentChartNameConceptUuid:{_description:"Concept uuid for the name field in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"164231AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},treatmentChartTimeConceptUuid:{_description:"Concept uuid for the time field in the cardex section of the treatment sheet",_type:a.Type.UUID,_default:"9c4c7722-ba3e-4bdf-ab97-c04170100037"},partography:{_type:a.Type.Object,_description:"Labour care guide partography module configuration",_default:n},lcgSessionCorrectionPrivilege:{_type:a.Type.String,_description:"OpenMRS privilege required to open the LCG wrong-patient correction wizard",_default:"Correct LCG Wrong Patient"},nationIdIdentifierTypeUuid:{_type:a.Type.UUID,_description:"Identifier type uuid for the national ID",_default:"49af6cdc-7968-4abb-bf46-de10d7f4859f"},crIdentifierTypeUuid:{_type:a.Type.UUID,_description:"Identifier type uuid for the SHIF ID",_default:"24aedd37-b5be-4e08-8311-3721b8d5100d"},showCrIdentifierOnSummary:{_type:a.Type.Boolean,_description:"Whether to show the CR ID on the patient summary",_default:!0}}},5132(A,e,t){"use strict";t.d(e,{A:()=>a});let a="@kenyaemr/esm-ward-app"},9633(A,e,t){"use strict";t.r(e),t.d(e,{patientTransferAndSwapWorkspaceSiderailIcon:()=>P,root:()=>C,patientDischargeDocumentPreview:()=>q,nursingCardexPlanWorkspace:()=>Z,wardPatientNotesActionButtonExtension:()=>y,patientDischargeWorkspace:()=>m,clinicalFormWorkspaceSideRailIcon:()=>M,wardPatientsUnassignedTable:()=>Y,labourCareGuide:()=>J,inPatientDetailView:()=>z,inPatientAdmissionRequest:()=>Q,wardPatientsAdmittedTable:()=>V,globalCdsAlertBanner:()=>Ae,inPatientPartographView:()=>At,defaultWardView:()=>F,patientBedSwapForm:()=>S,patientClinicalFormsWorkspace:()=>R,importTranslation:()=>T,maternityInpatientFormWorkspace:()=>AA,patientDischargeWorkspaceSideRailIcon:()=>h,wardPatientsDischargeInTable:()=>H,wardSwitchModal:()=>x,wardView:()=>u,admissionRequestWorkspace:()=>O,inPatientChartLink:()=>K,createAdmissionEncounterWorkspaceSideRailIcon:()=>v,wardPatientWorkspaceBanner:()=>j,inPatientTreatmentChart:()=>$,maternalWardView:()=>k,createWardBillWorkspace:()=>Ai,admitPatientFormWorkspace:()=>N,admissionRequestsWorkspaceSideRailIcon:()=>w,inPatientChartDashboard:()=>X,startupApp:()=>Aa,wardPatientNotesWorkspace:()=>I,patientAdmitOrTransferRequestForm:()=>g,patientTransferAndSwapWorkspace:()=>U,wardPatientWorkspace:()=>f,wardPatientsAwaitingAdmissionTable:()=>G,createAdmissionEncounterWorkspace:()=>B,patientTransferRequestWorkspace:()=>D,wardPatientActionButtonExtension:()=>b,wardPatientsDischargedTable:()=>W,wardDashboardLink:()=>p,cancelAdmissionRequestWorkspace:()=>L});var a=t(357),i=t(7488),n=t(5132),r=t(8602),o=t.n(r),d=t(1907),s=t(5614),c=t(4441);function _({dashboardLinkConfig:A}){var e;let{name:t,title:i,icon:n}=A,{t:l}=(0,s.useTranslation)(),T=(0,d.useLocation)(),E=window.getOpenmrsSpaBase()+"home",C=(0,r.useMemo)(()=>decodeURIComponent((0,c.A)(T.pathname.split("/"))),[T.pathname]);return e=C,/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)&&(C=T.pathname.split("/").at(-1)),o().createElement(a.ConfigurableLink,{className:`cds--side-nav__link ${t===C&&"active-left-nav-link"}`,to:E+"/"+t},o().createElement("span",{className:"-esm-ward__create-dashboard__menu___57tGE"},o().createElement(a.MaybeIcon,{icon:n,className:"-esm-ward__create-dashboard__icon___uvnSQ",size:16}),o().createElement("span",null,l(i))))}let l=A=>()=>o().createElement(d.BrowserRouter,null,o().createElement(_,{dashboardLinkConfig:A})),T=t(4767),E={featureName:"ward",moduleName:n.A},C=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("5576"),t.e("4321"),t.e("3549"),t.e("9396")]).then(t.bind(t,3615)),E),p=(0,a.getSyncLifecycle)(l({name:"ward",title:"admissions",icon:""}),E),u=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("3549"),t.e("2101")]).then(t.bind(t,8804)),E),O=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("3549"),t.e("4266")]).then(t.bind(t,9265)),E),N=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("2304"),t.e("4321"),t.e("3549"),t.e("5493")]).then(t.bind(t,5956)),E),f=(0,a.getAsyncLifecycle)(()=>t.e("9080").then(t.bind(t,6811)),E),I=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("5460")]).then(t.bind(t,6188)),E),b=(0,a.getAsyncLifecycle)(()=>t.e("5650").then(t.bind(t,9705)),E),y=(0,a.getAsyncLifecycle)(()=>t.e("7683").then(t.bind(t,3822)),E),U=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("5862")]).then(t.bind(t,6997)),E),m=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("636")]).then(t.bind(t,7447)),E),P=(0,a.getAsyncLifecycle)(()=>t.e("502").then(t.bind(t,7653)),E),D=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("2764"),t.e("1613")]).then(t.bind(t,3313)),E),h=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("8990"),t.e("9427")]).then(t.bind(t,4078)),E),R=(0,a.getAsyncLifecycle)(()=>t.e("5060").then(t.bind(t,2239)),E),g=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("2764"),t.e("9309")]).then(t.bind(t,7895)),E),S=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("4847")]).then(t.bind(t,5554)),E),L=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4145"),t.e("2304"),t.e("3549"),t.e("3276")]).then(t.bind(t,4807)),E),M=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("9011"),t.e("4777")]).then(t.bind(t,4109)),E),w=(0,a.getAsyncLifecycle)(()=>t.e("9143").then(t.bind(t,3354)),E),v=(0,a.getAsyncLifecycle)(()=>t.e("6126").then(t.bind(t,8829)),E),B=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("3549"),t.e("7891")]).then(t.bind(t,2222)),E),F=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("2124"),t.e("4926"),t.e("9049"),t.e("4321"),t.e("3549"),t.e("1033"),t.e("2446")]).then(t.bind(t,1247)),E),k=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("2124"),t.e("4926"),t.e("4321"),t.e("3549"),t.e("1033"),t.e("5050")]).then(t.bind(t,6476)),E),G=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("2290")]).then(t.bind(t,7623)),E),V=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("9124")]).then(t.bind(t,2057)),E),Y=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("8302")]).then(t.bind(t,7745)),E),H=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("6380")]).then(t.bind(t,9025)),E),W=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("3549"),t.e("7849"),t.e("5591")]).then(t.bind(t,5359)),E),j=(0,a.getAsyncLifecycle)(()=>t.e("6703").then(t.bind(t,1378)),E),q=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("4883")]).then(t.bind(t,5422)),E),x=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("3549"),t.e("6079")]).then(t.bind(t,5138)),E),K=(0,a.getSyncLifecycle)(l({slot:"patient-chart-in-patient-dashboard-slot",path:"in-patient",title:"In Patient",moduleName:"@kenyaemr/esm-bed-management-app",name:"In Patient",columns:1,config:{},icon:"omrs-icon-hospital-bed",icon:"omrs-icon-activity"}),E),X=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("5181")]).then(t.bind(t,6092)),E),Q=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("1992")]).then(t.bind(t,6332)),E),z=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("4321"),t.e("3549"),t.e("7240")]).then(t.bind(t,92)),E),Z=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("2304"),t.e("5976"),t.e("4321"),t.e("9926")]).then(t.bind(t,7637)),E),$=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("6741"),t.e("5976"),t.e("4321"),t.e("3549"),t.e("8923")]).then(t.bind(t,8137)),E),J=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("4321"),t.e("4892")]).then(t.bind(t,2583)),E),AA=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("7984")]).then(t.bind(t,3891)),E),Ae=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("4162")]).then(t.bind(t,6505)),E),At=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4321"),t.e("1364")]).then(t.bind(t,9647)),E);function Aa(){(0,a.registerBreadcrumbs)([]),(0,a.defineConfigSchema)(n.A,i.Qn),(0,a.registerFeatureFlag)("bedmanagement-module","Bed management module","Enables features related to bed management / assignment. Requires the backend bed management module to be installed.")}let Ai=(0,a.getAsyncLifecycle)(()=>Promise.all([t.e("689"),t.e("8990"),t.e("3496"),t.e("1744"),t.e("4145"),t.e("2304"),t.e("4321"),t.e("3549"),t.e("9456")]).then(t.bind(t,9635)),E)},4441(A,e,t){"use strict";t.d(e,{A:()=>a});let a=function(A){var e=null==A?0:A.length;return e?A[e-1]:void 0}}}]);
|
package/dist/636.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["636"],{8881(e,t,r){r.d(t,{h9:()=>o,jL:()=>d});var i=r(357),a=r(8602),n=r(5614),s=r(1123);let o=()=>{let{t:e}=(0,n.useTranslation)(),{wardPatientGroupDetails:t}=(0,i.useAppContext)("ward-view-context")??{},r=(0,i.useSession)();return{handleDischarge:async(a,n,s,o,d)=>{try{var u,l,c,p,m,h,g,v;let t=(u=n.patient.uuid,l=s.exitFromInpatientEncounterType,c=d??r?.sessionLocation,p=r?.currentProvider,m=o.uuid,h=s.clinicianEncounterRole,{patient:u,encounterType:l,location:c?.uuid,encounterProviders:[{provider:p?.uuid,encounterRole:h?.uuid}],obs:[],visit:m}),a=await (0,i.openmrsFetch)(`${i.restBaseUrl}/encounter`,{method:"POST",body:t,headers:{"Content-Type":"application/json"}});if(!a?.ok)throw Error("Failed to create discharge encounter");if(n?.bed?.id){let e=await (g=n.bed.id,v=n?.patient?.uuid,(0,i.openmrsFetch)(`${i.restBaseUrl}/beds/${g}?patientUuid=${v}`,{method:"DELETE"}));if(!e?.ok)throw Error("Failed to remove patient from bed")}(0,i.showSnackbar)({title:e("patientWasDischarged","Patient was discharged"),kind:"success"})}catch(t){(0,i.showSnackbar)({title:e("errorDischargingPatient","Error discharging patient"),subtitle:t instanceof Error?t.message:"Unknown error occurred",kind:"error"})}finally{t?.mutate()}}}},d=(e,t)=>{let{dailyBedFeeBillableService:r}=(0,i.useConfig)(),n=e&&t?`${i.restBaseUrl}/cashier/bill?v=custom:(uuid,display,voided,voidReason,dateCreated,status,patient:(uuid,display),lineItems:full)&visitUuid=${e}&patientUuid=${t}`:null,{data:o,isLoading:d,error:u,mutate:l,isValidating:c}=(0,s.Ay)(n,i.openmrsFetch),p=(0,a.useMemo)(()=>(o?.data?.results??[]).filter(e=>!e.voided&&e.patient?.uuid===t),[o,t]),m=(0,a.useMemo)(()=>p.filter(e=>(e.lineItems??[]).some(e=>"PENDING"===e.paymentStatus)),[p]),h=(0,a.useCallback)(e=>!e||e<=0||p.reduce((e,t)=>e+(t.lineItems??[]).filter(e=>e.itemOrServiceConceptUuid===r).reduce((e,t)=>e+(t.quantity??0),0),0)>=e,[r,p]);return{error:u,isLoading:d,bills:p,pendingBills:m,dailyBedFeeSettled:h,mutate:l,isValidating:c}}},7447(e,t,r){r.r(t),r.d(t,{default:()=>u});var i=r(8602),a=r.n(i),n=r(5614),s=r(5803),o=r(357),d=r(8881);let u=e=>{let{t}=(0,n.useTranslation)(),[
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["636"],{8881(e,t,r){r.d(t,{h9:()=>o,jL:()=>d});var i=r(357),a=r(8602),n=r(5614),s=r(1123);let o=()=>{let{t:e}=(0,n.useTranslation)(),{wardPatientGroupDetails:t}=(0,i.useAppContext)("ward-view-context")??{},r=(0,i.useSession)();return{handleDischarge:async(a,n,s,o,d)=>{try{var u,l,c,p,m,h,g,v;let t=(u=n.patient.uuid,l=s.exitFromInpatientEncounterType,c=d??r?.sessionLocation,p=r?.currentProvider,m=o.uuid,h=s.clinicianEncounterRole,{patient:u,encounterType:l,location:c?.uuid,encounterProviders:[{provider:p?.uuid,encounterRole:h?.uuid}],obs:[],visit:m}),a=await (0,i.openmrsFetch)(`${i.restBaseUrl}/encounter`,{method:"POST",body:t,headers:{"Content-Type":"application/json"}});if(!a?.ok)throw Error("Failed to create discharge encounter");if(n?.bed?.id){let e=await (g=n.bed.id,v=n?.patient?.uuid,(0,i.openmrsFetch)(`${i.restBaseUrl}/beds/${g}?patientUuid=${v}`,{method:"DELETE"}));if(!e?.ok)throw Error("Failed to remove patient from bed")}(0,i.showSnackbar)({title:e("patientWasDischarged","Patient was discharged"),kind:"success"})}catch(t){(0,i.showSnackbar)({title:e("errorDischargingPatient","Error discharging patient"),subtitle:t instanceof Error?t.message:"Unknown error occurred",kind:"error"})}finally{t?.mutate()}}}},d=(e,t)=>{let{dailyBedFeeBillableService:r}=(0,i.useConfig)(),n=e&&t?`${i.restBaseUrl}/cashier/bill?v=custom:(uuid,display,voided,voidReason,dateCreated,status,patient:(uuid,display),lineItems:full)&visitUuid=${e}&patientUuid=${t}`:null,{data:o,isLoading:d,error:u,mutate:l,isValidating:c}=(0,s.Ay)(n,i.openmrsFetch),p=(0,a.useMemo)(()=>(o?.data?.results??[]).filter(e=>!e.voided&&e.patient?.uuid===t),[o,t]),m=(0,a.useMemo)(()=>p.filter(e=>(e.lineItems??[]).some(e=>"PENDING"===e.paymentStatus)),[p]),h=(0,a.useCallback)(e=>!e||e<=0||p.reduce((e,t)=>e+(t.lineItems??[]).filter(e=>e.itemOrServiceConceptUuid===r).reduce((e,t)=>e+(t.quantity??0),0),0)>=e,[r,p]);return{error:u,isLoading:d,bills:p,pendingBills:m,dailyBedFeeSettled:h,mutate:l,isValidating:c}}},7447(e,t,r){r.r(t),r.d(t,{default:()=>u});var i=r(8602),a=r.n(i),n=r(5614),s=r(5803),o=r(357),d=r(8881);let u=({workspaceProps:e,closeWorkspace:t})=>{let{t:r}=(0,n.useTranslation)(),[u,l]=(0,i.useState)(!1),{patientUuid:c,wardPatient:p,formUuid:m,dischargePatientOnSuccesfullSubmission:h=!0,onPostResponse:g}=e??{},{visit:v}=p??{},{patient:k,isLoading:E,error:b}=(0,o.usePatient)(c),{emrConfiguration:f,isLoadingEmrConfiguration:w,errorFetchingEmrConfiguration:C}=(0,o.useEmrConfiguration)(),{handleDischarge:y}=(0,d.h9)(),U=(0,i.useMemo)(()=>({view:"form",formUuid:m,visitUuid:v?.uuid??null,visitTypeUuid:v?.visitType?.uuid??null,patientUuid:c??null,patient:k,encounterUuid:"",closeWorkspaceWithSavedChanges:()=>t({discardUnsavedChanges:!0}),closeWorkspace:t,promptBeforeClosing:e=>l(e()),handlePostResponse:e=>{h&&y(e,p,f,v),g?.(e)}}),[m,v,c,k,t,h,y,p,f,g]),T=b||C;return E||w?a().createElement(s.OuH,{description:r("loading","Loading"),iconDescription:r("loading","Loading data...")}):T?a().createElement(s.jeF,{"aria-label":r("error","Error"),kind:"error",onClose:()=>{},onCloseButtonClick:()=>{},statusIconDescription:"notification",subtitle:r("errorLoadingPatientWorkspace","Error loading patient workspace {{errorMessage}}",{errorMessage:T?.message}),title:r("error","Error")}):a().createElement(o.Workspace2,{title:r("discharge","Discharge"),hasUnsavedChanges:u},a().createElement("div",null,k&&a().createElement(o.ExtensionSlot,{name:"form-widget-slot",state:U})))}}}]);
|
package/dist/636.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"636.js","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.resource.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.workspace.tsx"],"names":["usePatientDischarge","t","useTranslation","wardPatientGroupDetails","useAppContext","session","useSession","handleDischarge","encounter","wardPatient","emrConfiguration","visit","wardLocation","patientUuid","encounterType","location","currentProvider","visitUuid","clinicianEncounterRole","bedId","encounterPayload","dischargeResponse","openmrsFetch","restBaseUrl","Error","bedRemovalResponse","showSnackbar","err","usePatientBills","dailyBedFeeBillableService","useConfig","url","data","isLoading","error","mutate","isValidating","useSWR","bills","useMemo","b","pendingBills","bill","it","dailyBedFeeSettled","useCallback","daysInWard","totalQuantity","total","matching","item","sum","
|
|
1
|
+
{"version":3,"file":"636.js","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.resource.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.workspace.tsx"],"names":["usePatientDischarge","t","useTranslation","wardPatientGroupDetails","useAppContext","session","useSession","handleDischarge","encounter","wardPatient","emrConfiguration","visit","wardLocation","patientUuid","encounterType","location","currentProvider","visitUuid","clinicianEncounterRole","bedId","encounterPayload","dischargeResponse","openmrsFetch","restBaseUrl","Error","bedRemovalResponse","showSnackbar","err","usePatientBills","dailyBedFeeBillableService","useConfig","url","data","isLoading","error","mutate","isValidating","useSWR","bills","useMemo","b","pendingBills","bill","it","dailyBedFeeSettled","useCallback","daysInWard","totalQuantity","total","matching","item","sum","workspaceProps","closeWorkspace","hasUnsavedChanges","setHasUnsavedChanges","useState","formUuid","dischargePatientOnSuccesfullSubmission","onPostResponse","currentVisit","patient","isLoadingPatient","patientError","usePatient","isLoadingEmrConfiguration","errorFetchingEmrConfiguration","useEmrConfiguration","state","func","InlineLoading","InlineNotification","Workspace2","ExtensionSlot"],"mappings":"gNAwDO,IAAMA,EAAsB,KACjC,GAAM,CAAEC,EAAAA,CAAC,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IACR,CAAEC,wBAAAA,CAAuB,CAAE,CAC/BC,AAAAA,GAAAA,EAAAA,aAAAA,AA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Aa/C,GAAe,KAC5BgD,QAAAA,EACA,cAAe,GACf,+BAAgC,IAAMR,EAAe,CAAE,sBAAuB,EAAK,GACnFA,eAAAA,EACA,oBAAqB,AAACgB,GAASd,EAAqBc,KACpD,mBAAoB,AAAC7D,IACfkD,GACFnD,EACEC,EACAC,EACAC,EACAkD,GAEJD,IAAiBnD,EACnB,CACF,GACA,CACEiD,EACAG,EACA/C,EACAgD,EACAR,EACAK,EACAnD,EACAE,EACAC,EACAiD,EACD,EAIGzB,EAAQ6B,GAAgBG,SAE9B,AAHkBJ,GAAoBG,EAI7B,kBAACK,EAAAA,GAAaA,CAAAA,CAAC,YAAarE,EAAE,UAAW,WAAY,gBAAiBA,EAAE,UAAW,kB,GAGxFiC,EAEA,kBAACqC,EAAAA,GAAkBA,CAAAA,CACjB,aAAYtE,EAAE,QAAS,SACvB,KAAK,QACL,QAAS,KAAO,EAChB,mBAAoB,KAAO,EAC3B,sBAAsB,eACtB,SAAUA,EAAE,+BAAgC,mDAAoD,CAC9F,aAAciC,GAAO,OACvB,GACA,MAAOjC,EAAE,QAAS,Q,GAMtB,kBAACuE,EAAAA,UAAUA,CAAAA,CAAC,MAAOvE,EAAE,YAAa,aAAc,kBAAmBqD,C,EACjE,kBAAC,WAEEO,GAAW,kBAACY,EAAAA,aAAaA,CAAAA,CAAC,KAAK,mBAAmB,MAAOL,C,IAIlE,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"9124.css","sources":["webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/esm-patient-common-lib/src/cards/card-header.scss","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/esm-patient-common-lib/src/results/results.scss","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/esm-patient-common-lib/src/pagination/pagination.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-patients/patient-cells.scss","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-patients/ward-patient.scss","webpack://@kenyaemr/esm-ward-app/../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],"names":[],"mappings":"AAIA,8MAQE,mNASF,2DAEE,2SAMF,4DAEE,2QAQA,uKCnCF,4DAIA,+UAQE,6SAOA,4QAMF,6JAME,qQAiBF,iFChDA,oRAIA,mDCJA,uUAIA,wcAYA,yGAME,yPAQF,wGAME,sPAQF,uFAMA,qUAQE,mFC5DF,0aCoDA,sUChDA,+PCea,2EDMb,kEAIA,uEAIA,2EAIA,oEAIA,wEAIA,kEAIA,qSAKA,uKAWA,oEAGE,+FAKA,qFAKA,+MASA,yIAIA,4WAQA,mIAIA,wRAMA,iKAKA,2EAKF,kHAKE"}
|
package/dist/9124.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["9124"],{2057(e,t,a){a.r(t),a.d(t,{default:()=>y});var n=a(5803),i=a(357),r=a(3524),u=a(3464),d=a.n(u),s=a(8602),l=a.n(s),o=a(5735),c=a(5614),p=a(2607),m=a(2880),f=a(2157),g=a(2459);let b=({wardPatient:e})=>{let{inpatientDischargeFormUuid:t}=(0,i.useConfig)(),{clinicallyDeceadedIndicators:a}=(0,i.useConfig)({externalModuleName:"@kenyaemr/esm-morgue-app"}),{patient:r,patientUuid:u,isLoading:d}=(0,i.usePatient)(e?.patient?.uuid),o=(0,s.useCallback)(async n=>{let d=a.find(e=>e.formUuid===t),s=await h(e?.visit?.uuid),l=s.find(e=>e.form?.uuid===t)?.obs??[],o=l?.find(e=>e?.concept?.uuid===d?.questionConceptUuid);if(o?.value?.uuid===d?.deceasedAnswerConceptUuid){let e=(0,i.showModal)("patient-clinically-marked-deceased-modal",{onClose:()=>e(),patient:r,patientUuid:u})}},[a,t,r,u,e?.visit?.uuid]),{t:p}=(0,c.useTranslation)();return d?l().createElement(n.OuH,null):l().createElement(n.XSD,{itemText:p("discharge","Discharge"),onClick:()=>{(0,i.launchWorkspace2)("patient-discharge-workspace",{wardPatient:e,patientUuid:e?.patient.uuid,formUuid:t,dischargePatientOnSuccesfullSubmission:!1,onPostResponse:o})}})},h=async e=>{let t=`${i.restBaseUrl}/visit/${e}?v=custom:(encounters:(form:(uuid,display),obs:(uuid,display,value,concept:(uuid,display))))`,a=await (0,i.openmrsFetch)(t);return a.data?.encounters??[]},y=()=>{let e=(0,o.fC)(),{wardPatientGroupDetails:t}=(0,i.useAppContext)("ward-view-context")??{},{bedLayouts:a,wardAdmittedPatientsWithBed:u,isLoading:h}=t??{},{t:y}=(0,c.useTranslation)(),w=(0,i.useConfig)(),C=[{key:"admissionDate",header:y("admissionDate","Admission Date")},{key:"idNumber",header:y("idNumber","ID Number")},{key:"name",header:y("name","Name")},{key:"gender",header:y("gender","Gender")},{key:"age",header:y("age","Age")},{key:"bedNumber",header:y("bedNumber","Bed Number")},{key:"daysAdmitted",header:y("daysInWard","Days In Ward")}],k=(0,s.useMemo)(()=>(a?.map(e=>{let{patients:t}=e,a=(0,p.yZ)(e);return t.map(e=>{let t=u?.get(e.uuid);if(!t)return{patient:e,visit:null,bed:a,inpatientAdmission:null,inpatientRequest:null};{let{patient:e,visit:n,currentInpatientRequest:i}=t;return{patient:e,visit:n,bed:a,inpatientAdmission:t,inpatientRequest:i||null}}})})?.flat()??[]).filter(e=>!e?.visit?.encounters?.find(e=>e.encounterType?.uuid===w.ipdDischargeEncounterTypeUuid)),[a,u,w]),[T,E]=(0,s.useState)(5),N=(0,s.useMemo)(()=>k?.filter(t=>t?.patient?.person?.display?.toLowerCase().includes(e.toLowerCase())),[k,e]),{paginated:S,results:D,totalPages:P,currentPage:A,goTo:M}=(0,i.usePagination)(N,T),{pageSizes:U}=(0,r.WK)(T,P,A,D.length),v=(0,s.useMemo)(()=>D.map((e,t)=>{let{encounterAssigningToCurrentInpatientLocation:a}=e.inpatientAdmission??{},n=a?.encounterDatetime?(0,i.formatDatetime)((0,i.parseDate)(a.encounterDatetime)):"--",r=a?.encounterDatetime,u=r&&d()(r).isValid()?Math.abs(d()().startOf("day").diff(d()(r).startOf("day"),"days")):"--";return{id:e.patient?.uuid??t.toString(),admissionDate:n,idNumber:(0,p.oX)(e.patient?.identifiers??[])??"--",name:l().createElement(m.YC,{patientName:e.patient?.person?.display??"",patientUuid:e.patient?.uuid}),gender:e.patient?.person?.gender??"--",age:e.patient?.person?.age??"--",bedNumber:e.bed?.bedNumber??"--",daysAdmitted:u}}),[D]);return h?l().createElement(n.OOb,null):k.length?l().createElement("div",{className:g.A.dataTableContainer},l().createElement(n.bQt,{size:"sm",rows:v,headers:C,isSortable:!0,useZebraStyles:!0},({rows:e,headers:t,getHeaderProps:a,getRowProps:r,getTableProps:u,getCellProps:d,getTableContainerProps:s})=>l().createElement(n.K3K,{title:y("admittedPatientsTitle","Admitted patients"),description:y("admittedPatientsDescription","Patients currently admitted and assigned a bed in this ward."),...s()},l().createElement(n.XIK,{...u(),"aria-label":y("admitted","Admitted")},l().createElement(n.ndF,null,l().createElement(n.Hjg,null,t.map(e=>l().createElement(n.A0N,{...a({header:e}),key:e.key},e.header)),l().createElement(n.A0N,null))),l().createElement(n.BFY,null,e.map(e=>{let t=D.find(t=>t.patient.uuid===e.id);return l().createElement(n.Hjg,{...r({row:e}),key:e.id},e.cells.map(e=>l().createElement(n.nA6,{...d({cell:e}),key:e.id},e.value)),l().createElement(n.nA6,{className:"cds--table-column-menu"},l().createElement(n.obU,{size:"sm",flipped:!0},l().createElement(n.XSD,{itemText:y("interWardTransfer","Interward Trasfer"),onClick:()=>(0,i.launchWorkspace2)("patient-admit-or-transfer-request-form",{workspaceTitle:"Trasfer",wardPatient:t,withContentSwitcher:!1,defaultTransfersection:"transfer"})}),l().createElement(n.XSD,{itemText:y("bedSwap","Bed Swap"),onClick:()=>(0,i.launchWorkspace2)("patient-bed-swap-form",{workspaceTitle:"Bed Swap",wardPatient:t,withContentSwitcher:!1,defaultTransfersection:"bed-swap"})}),l().createElement(b,{wardPatient:t}))))}))),S&&!h&&l().createElement(n.dKS,{page:A,pageSize:T,pageSizes:U,totalItems:(k??[]).length,onChange:({page:e,pageSize:t})=>{M(e),E(t)}})))):l().createElement(f.pp,{message:y("noAdmittedPatientsinCurrentward","No admitted patients in the current ward")})}},2607(e,t,a){a.d(t,{Jk:()=>l,U1:()=>s,UG:()=>c,eD:()=>d,j3:()=>o,k9:()=>p,oX:()=>m,yZ:()=>u});var n=a(357),i=a(8602),r=a(5614);function u(e){return{id:e.bedId,uuid:e.bedUuid,bedNumber:e.bedNumber,bedType:e.bedType,row:e.rowNumber,column:e.columnNumber,status:e.status}}function d(e,t){if(null==e||0==e.length)return{patients:"--",freeBeds:"--",capacity:"--"};let a=e.length,n=e.filter(e=>e.patients.length>0).length,i=0!=a?Math.trunc(t.totalPatientsCount/a*100):0;return{patients:t?.totalPatientsCount.toString()??"--",freeBeds:(a-n).toString(),capacity:i.toString()}}function s(e,t,a,n,i){let r,u=function(e){let t=new Map;for(let a of e??[])a&&t.set(a.patient.uuid,a);return t}([...e??[],...n??[]]),d=new Map,s=new Map,l=t&&(r=new Intl.Collator([],{numeric:!0}),t.bedLayouts.filter(e=>e.bedId).sort((e,t)=>r.compare(e.bedNumber,t.bedNumber))),o=new Set,c=0;l?.map(e=>{let{patients:t}=e;t.map(e=>{let t=u.get(e.uuid);if(o.add(e.uuid),t?.currentInpatientLocation?.uuid==i.uuid){d.set(e.uuid,t);let a=t.currentInpatientRequest?.dispositionType;("TRANSFER"==a||"DISCHARGE"==a)&&c++}else s.set(e?.uuid,e)})});let p=e?.filter(e=>(o.add(e?.patient?.uuid),!d.has(e?.patient?.uuid)&&!s.has(e?.patient?.uuid)))??[],m=o.size;for(let e of a??[])e&&o.add(e.patient.uuid);return{wardAdmittedPatientsWithBed:d,wardUnadmittedPatientsWithBed:s,wardPatientPendingCount:c,bedLayouts:l,wardUnassignedPatientsList:p,allWardPatientUuids:o,totalPatientsCount:m,inpatientAdmissionsByPatientUuid:u}}function l(e,t){switch(e){case"patients":return t("patients","Patients");case"freeBeds":return t("freeBeds","Free beds");case"capacity":return t("capacity","Capacity");case"pendingOut":return t("pendingOut","Pending out")}}function o(e,t,a){switch(e){case"patients":return t("patientsMetricValue","{{ metricValue }}",{metricValue:a});case"freeBeds":return t("freeBedsMetricValue","{{ metricValue }}",{metricValue:a});case"capacity":return t("capacityMetricValue","{{ metricValue }} %",{metricValue:a});case"pendingOut":return t("pendingOutMetricValue","{{ metricValue }}",{metricValue:a})}}function c(e,t){let a=(0,n.useConfig)(),{t:i}=(0,r.useTranslation)();try{return a?.patientCardElements?.[e]?.find(e=>e?.id==t)}catch(a){return(0,n.showNotification)({title:i("errorConfiguringPatientCard","Error configuring patient card"),kind:"error",critical:!0,description:i("errorConfiguringPatientCardMessage","Unable to find configuration for {{elementType}}, id: {{id}}",{elementType:e,id:t})}),null}}function p(e){let{wards:t}=(0,n.useConfig)(),a=(0,i.useMemo)(()=>t?.find(t=>null==t.appliedTo||t.appliedTo?.length==0||t.appliedTo.some(t=>t.location==e)),[t,e]);return a||(console.warn("No ward card configuration has `appliedTo` criteria that matches the current location. Using the default configuration."),{id:"default-ward"})}let m=e=>e.find(e=>"dfacd928-0370-4315-99d7-6ec1c9f7ae76"===e.identifierType.uuid)?.identifier??null}}]);
|
package/dist/9124.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"9124.js","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-patients/discharge-patient-action.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patients/admitted-patients.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-view/ward-view.resource.ts"],"names":["wardPatient","inpatientDischargeFormUuid","useConfig","clinicallyDeceadedIndicators","patient","patientUuid","isLoading","usePatient","handleNortify","useCallback","encounter","indicator","encounters","getVisitEncounters","obs","enc","deceasedQuestion","dispose","showModal","t","useTranslation","InlineLoading","OverflowMenuItem","launchWorkspace2","visitUuid","url","restBaseUrl","res","openmrsFetch","search","useWardPatientSearch","wardPatientGroupDetails","useAppContext","bedLayouts","wardAdmittedPatientsWithBed","config","headers","patients","useMemo","bedLayout","bed","bedLayoutToBed","inpatientAdmission","visit","currentInpatientRequest","pat","pageSize","setPageSize","useState","searchResults","paginated","results","totalPages","currentPage","goTo","usePagination","pageSizes","usePaginationInfo","tableRows","index","encounterAssigningToCurrentInpatientLocation","admissionDate","formatDatetime","parseDate","encounterDate","daysAdmitted","dayjs","Math","getOpenmrsId","HyperLinkPatientCell","DataTableSkeleton","styles","DataTable","rows","getHeaderProps","getRowProps","getTableProps","getCellProps","getTableContainerProps","TableContainer","Table","TableHead","TableRow","header","TableHeader","TableBody","row","result","cell","TableCell","OverflowMenu","DischargePatientAction","Pagination","page","EmptyState","getWardMetrics","wardPatientGroup","total","occupiedBeds","capacity","freeBeds","createAndGetWardPatientGrouping","inpatientAdmissionsAtCurrentLocation","admissionLocation","inpatientRequests","inpatientAdmissionsAtOtherLocations","currentWardLocation","collator","inpatientAdmissionsByPatientUuid","getInpatientAdmissionsUuidMap","inpatientAdmissions","map","Map","wardUnadmittedPatientsWithBed","Intl","bl","bedA","bedB","allWardPatientUuids","Set","wardPatientPendingCount","admission","dispositionType","wardUnassignedPatientsList","totalPatientsCount","inpatientRequest","getWardMetricNameTranslation","name","getWardMetricValueTranslation","value","useElementConfig","elementType","id","elementConfig","e","showNotification","useWardConfig","locationUuid","wards","currentWardConfig","wardDef","criteria","console","identifiers"],"mappings":"4SAwEA,MApDsE,CAAC,CAAEA,YAAAA,CAAW,CAAE,IACpF,GAAM,CAAEC,2BAAAA,CAA0B,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,IACjC,CAAEC,6BAAAA,CAA4B,CAAE,CAAGD,AAAAA,GAAAA,E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AAiB,CACf,MAAOpH,EAAE,8BAA+B,kCACxC,KAAM,QACN,SAAU,GACV,YAAaA,EACX,qCACA,+DACA,CACEgH,YAAAA,EACAC,GAAAA,CACF,EAEJ,GACO,IACT,CACF,CAEO,SAASI,EAAcC,CAAoB,EAChD,GAAM,CAAEC,MAAAA,CAAK,CAAE,CAAGxI,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,IAEZyI,EAAoBrG,AAAAA,GAAAA,EAAAA,OAAAA,AAAAA,EAAQ,IACToG,GAAO,KAAK,AAACE,GAEhCA,AAAqB,MAArBA,EAAQ,SAAS,EACjBA,EAAQ,SAAS,EAAE,QAAU,GAC7BA,EAAQ,SAAS,CAAC,IAAI,CAAC,AAACC,GAAaA,EAAS,QAAQ,EAAIJ,IAK7D,CAACC,EAAOD,EAAa,SAExB,AAAKE,IACHG,QAAQ,IAAI,CACV,2HAEK,CAAE,GAAI,cAAe,EAIhC,CAEO,IAAM1E,EAAe,AAAC2E,GAGpBA,EAAY,IAAI,CAAC,AAACX,GAAOA,AAFR,yCAEQA,EAAG,cAAc,CAAC,IAAI,GAAuB,YAAc,I"}
|
package/dist/9456.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["9456"],{4873(e,t,i){i.r(t),i.d(t,{default:()=>w});var a=i(8602),l=i.n(a),r=i(1123),n=i(5614),s=i(824),c=i(6195),d=i(4049),u=i(3373),o=i.n(u),m=i(5803),_=i(8680),b=i(357),p=i(1356),h=i.n(p);let v=`${b.restBaseUrl}/cashier/billableService?v=custom:(uuid,name,shortName,serviceStatus,serviceType:(display),concept:(uuid,display),servicePrices:(uuid,name,price,paymentMode:(uuid,name)))`,g=async e=>{let t=await (0,b.openmrsFetch)(`${b.restBaseUrl}/cashier/bill`,{method:"POST",body:e,headers:{"Content-Type":"application/json"}});return await (0,r.mutate)(e=>"string"==typeof e&&e.includes("/cashier/bill")&&!e.includes("/cashier/billableService"),void 0,{revalidate:!0}),t},y="-esm-ward__create-bill__sectionTitle___R3hPZ",f="-esm-ward__create-bill__button___zv+bq",E=c.z.object({cashPointUuid:c.z.string().min(1,"Select a cash point"),billableServiceUuid:c.z.string().min(1,"Select a billable item"),quantity:c.z.number({coerce:!0}).min(1,"Quantity must be at least 1"),priceUuid:c.z.string().min(1,"Select a payment mode")}),w=({workspaceProps:e,closeWorkspace:t})=>{let{patientUuid:i,daysAdmitted:c,visitUuid:u}=e??{},{t:p}=(0,n.useTranslation)(),w="tablet"===(0,b.useLayoutType)(),S=(()=>{let{wardBillingCurrencyLocaleMap:e}=(0,b.useConfig)(),t="u">typeof window?localStorage.getItem("i18nextLng")??"en":"en",i=e?.[t]??"KES";return(e,a={})=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:i,minimumFractionDigits:2,...a}).format(e??0)}catch{return`${i} ${(e??0).toFixed(2)}`}}})(),{wardPatientGroupDetails:P}=(0,b.useAppContext)("ward-view-context")??{},{currentProvider:U,sessionLocation:C,user:N}=(0,b.useSession)(),I=U?.uuid,k=N?.display??U?.identifier??p("unknownUser","Unknown user"),{dailyBedFeeBillableService:B}=(0,b.useConfig)(),{cashPoints:T,isLoading:x}=(()=>{let e=`${b.restBaseUrl}/cashier/cashPoint?v=custom:(uuid,name,description,retired,location:(uuid,display))`,{data:t,error:i,isLoading:a}=(0,r.Ay)(e,b.openmrsFetch);return{cashPoints:(t?.data?.results??[]).filter(e=>!e.retired),isLoading:a,error:i}})(),[M,q]=(0,a.useState)(!1),[$,L]=(0,a.useState)(""),[F,W]=(0,a.useState)(null),D=(0,a.useMemo)(()=>{let e="number"==typeof c?c:Number(c);return Number.isFinite(e)&&e>0?e:1},[c]),{billableService:z,isLoading:H}=(e=>{let{data:t,error:i,isLoading:a}=h()(e?v:null,b.openmrsFetch);return{billableService:e?t?.data?.results?.find(t=>t?.concept?.uuid===e)??null:null,isLoading:a,error:i}})(B),{billableServices:R,isLoading:A}=((e="")=>{let t=e?.trim()??"",i=t?`${v}&q=${encodeURIComponent(t)}`:v,{data:a,error:l,isLoading:n}=(0,r.Ay)(i,b.openmrsFetch);return{billableServices:a?.data?.results??[],isLoading:n,error:l}})($),{control:O,handleSubmit:V,watch:j,setValue:G,getValues:J,reset:Q,formState:{isDirty:K,isSubmitting:X,isValid:Y,errors:Z}}=(0,s.mN)({resolver:(0,d.u)(E),mode:"onChange",defaultValues:{cashPointUuid:"",billableServiceUuid:"",quantity:D,priceUuid:""}}),ee=j("billableServiceUuid"),et=j("cashPointUuid"),ei=j("priceUuid"),ea=j("quantity"),el=(0,a.useMemo)(()=>{let e=new Map;return z&&e.set(z.uuid,z),R.forEach(t=>{e.set(t.uuid,t)}),Array.from(e.values())},[z,R]),er=(0,a.useMemo)(()=>el.find(e=>e.uuid===ee)??null,[el,ee]),en=(0,a.useMemo)(()=>er?.servicePrices?.find(e=>e.uuid===ei)??null,[er,ei]),es=(en?.price??0)*(Number(ea)||0),ec=(0,a.useRef)(!1),ed=(0,a.useRef)(!1);(0,a.useEffect)(()=>{z&&!ec.current&&(ec.current=!0,Q({cashPointUuid:J("cashPointUuid"),billableServiceUuid:z.uuid,quantity:D,priceUuid:z.servicePrices?.[0]?.uuid??""},{keepDefaultValues:!1}))},[z,D,J,Q]),(0,a.useEffect)(()=>{if(!T.length||ed.current)return;let e=(C?.uuid?T.find(e=>e.location?.uuid===C.uuid):void 0)??T[0];e&&(ed.current=!0,G("cashPointUuid",e.uuid,{shouldValidate:!0}))},[T,C?.uuid,G]),(0,a.useEffect)(()=>{q(K)},[K]);let eu=async e=>{if(W(null),!er||!en)return void W(p("selectItemAndPrice","Select a billable item and a payment mode before saving."));if(!e.cashPointUuid)return void W(p("selectCashPoint","Select a cash point before saving."));if(!I)return void W(p("missingLoggedInProvider","No provider is linked to the logged-in user."));let a={cashPoint:e.cashPointUuid,cashier:I,patient:i,...u?{visit:u}:{},status:"PENDING",lineItems:[{billableService:er.uuid,quantity:e.quantity,price:en.price,priceUuid:en.uuid,priceName:en.name??"Default",lineItemOrder:0,paymentStatus:"PENDING"}],payments:[]};try{await g(a),await (0,r.mutate)(e=>"string"==typeof e&&e.includes("/cashier/bill")),P?.mutate(),(0,b.showSnackbar)({title:p("billSaved","Bill saved"),subtitle:p("billProcessingSuccess","Bill processing has been successful"),kind:"success",timeoutInMs:3e3}),t({discardUnsavedChanges:!0})}catch(t){let e=t?.responseBody?.error?.message??t?.message??p("unknownError","Unknown error occurred");W(e),(0,b.showSnackbar)({title:p("billProcessingError","Bill processing error"),subtitle:e,kind:"error",timeoutInMs:6e3})}},eo=!Y||X||!er||!en||!I;return l().createElement(b.Workspace2,{title:p("createBill","Create Bill"),hasUnsavedChanges:M},l().createElement(m.lVW,{className:"-esm-ward__create-bill__form___vU7mn",onSubmit:V(eu)},l().createElement("div",{className:"-esm-ward__create-bill__formContainer___i5p-y"},l().createElement(b.ResponsiveWrapper,null,l().createElement(m.jeF,{className:"-esm-ward__create-bill__infoNotification___wT7Wl","aria-label":p("createWardBillHelperLabel","Create ward bill"),kind:"info",lowContrast:!0,hideCloseButton:!0,title:p("createWardBill","Create Ward Bill"),subtitle:p("createWardBillHelper","The daily bed charge is pre-selected and the quantity defaults to the number of days admitted ({{days}}). Search to pick a different chargeable item if needed.",{days:D})})),l().createElement("section",null,l().createElement("h5",{className:y},p("billingDetails","Billing details")),l().createElement(m.BJc,{gap:5},l().createElement(s.xI,{control:O,name:"cashPointUuid",render:({field:e})=>l().createElement(b.ResponsiveWrapper,null,l().createElement(m.msM,{id:"ward-bill-cash-point",titleText:p("cashPoint","Cash point"),label:p("selectCashPoint","Select a cash point"),items:T,itemToString:e=>e?e.location?.display?`${e.name} — ${e.location.display}`:e.name:"",selectedItem:T.find(t=>t.uuid===e.value)??null,onChange:({selectedItem:t})=>{e.onChange(t?.uuid??"")},invalid:!!Z.cashPointUuid,invalidText:Z.cashPointUuid?.message}))}),x&&!et&&l().createElement(m.OuH,{description:p("loadingCashPoints","Loading cash points...")}),l().createElement(m.ksK,{id:"ward-bill-cashier",labelText:p("cashier","Cashier"),value:k,readOnly:!0}),!I&&l().createElement(m.jeF,{kind:"error",lowContrast:!0,hideCloseButton:!0,title:p("missingLoggedInProvider","No provider is linked to the logged-in user"),subtitle:p("missingLoggedInProviderHelper","You must be logged in as a provider to raise a ward bill.")}))),l().createElement("section",null,l().createElement("h5",{className:y},p("chargeableItem","Chargeable item")),l().createElement("p",{className:"-esm-ward__create-bill__sectionHelper___Lgnkg"},p("searchOrPickItem","Search for a billable service or use the pre-selected daily bed charge.")),l().createElement(m.BJc,{gap:5},l().createElement(s.xI,{control:O,name:"billableServiceUuid",render:({field:e})=>l().createElement(b.ResponsiveWrapper,null,l().createElement(m.a32,{id:"ward-bill-service",titleText:p("billableItem","Billable item"),placeholder:p("searchBillableItems","Search billable items"),items:el,itemToString:e=>e?e.name:"",selectedItem:el.find(t=>t.uuid===e.value)??null,onInputChange:e=>L(e??""),onChange:({selectedItem:t})=>{e.onChange(t?.uuid??""),G("priceUuid",t?.servicePrices?.[0]?.uuid??"",{shouldValidate:!0})},shouldFilterItem:()=>!0,invalid:!!Z.billableServiceUuid,invalidText:Z.billableServiceUuid?.message}))}),(A||H)&&!er&&l().createElement(m.OuH,{description:p("loadingBillableItems","Loading billable items...")}),er&&l().createElement("div",{className:"-esm-ward__create-bill__selectedItem___KmtAe"},l().createElement("div",{className:"-esm-ward__create-bill__selectedItemHeader___6HUDm"},l().createElement("span",{className:"-esm-ward__create-bill__serviceName___fXz6J"},er.name),l().createElement(m.$nd,{hasIconOnly:!0,renderIcon:_.zH,iconDescription:p("removeItem","Remove item"),kind:"ghost",size:"sm",onClick:()=>{Q({cashPointUuid:J("cashPointUuid"),billableServiceUuid:"",quantity:D,priceUuid:""})}})),l().createElement("div",{className:"-esm-ward__create-bill__selectedItemGrid___BGeV3"},l().createElement(s.xI,{control:O,name:"quantity",render:({field:e})=>l().createElement(m.Q7x,{id:"ward-bill-quantity",label:p("quantity","Quantity"),helperText:p("defaultsToDaysAdmitted","Defaults to days admitted ({{days}})",{days:D}),min:1,value:e.value,onChange:(t,{value:i})=>e.onChange(""===i?"":Number(i)),invalid:!!Z.quantity,invalidText:Z.quantity?.message})}),l().createElement(s.xI,{control:O,name:"priceUuid",render:({field:e})=>l().createElement(m.msM,{id:"ward-bill-price",titleText:p("paymentMode","Payment mode"),label:p("selectPaymentMode","Select payment mode"),items:er.servicePrices??[],itemToString:e=>e?`${e.paymentMode?.name??e.name} — ${S(e.price)}`:"",selectedItem:er.servicePrices?.find(t=>t.uuid===e.value)??null,onChange:({selectedItem:t})=>{e.onChange(t?.uuid??"")},invalid:!!Z.priceUuid,invalidText:Z.priceUuid?.message})})),l().createElement("div",{className:"-esm-ward__create-bill__summaryRow___ztYVN"},l().createElement("span",{className:"-esm-ward__create-bill__summaryLabel___Lx81N"},p("unitPrice","Unit price"),": ",S(en?.price??0)," \xd7 ",Number(ea)||0),l().createElement("span",{className:"-esm-ward__create-bill__summaryValue___efMWP"},p("total","Total"),": ",S(es)))),F&&l().createElement(m.jeF,{kind:"error",lowContrast:!0,title:p("couldNotSaveBill","Could not save bill"),subtitle:F,onCloseButtonClick:()=>W(null)})))),l().createElement(m.Te$,{className:o()("-esm-ward__create-bill__buttonSet___EP7m-",{"-esm-ward__create-bill__tablet___QJFWP":w,"-esm-ward__create-bill__desktop___Cib6D":!w})},l().createElement(m.$nd,{className:f,kind:"secondary",onClick:()=>t()},p("cancel","Cancel")),l().createElement(m.$nd,{className:f,kind:"primary",type:"submit",disabled:eo},X?l().createElement(m.OuH,{className:"-esm-ward__create-bill__spinner___t4XMM",description:p("savingBill","Saving...")}):l().createElement("span",null,p("saveAndClose","Save & close"))))))}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["9456"],{9635(e,t,i){i.r(t),i.d(t,{default:()=>w});var a=i(8602),l=i.n(a),r=i(1123),n=i(5614),s=i(824),c=i(6195),d=i(4049),u=i(3373),o=i.n(u),m=i(5803),_=i(8680),b=i(357),p=i(1356),h=i.n(p);let v=`${b.restBaseUrl}/cashier/billableService?v=custom:(uuid,name,shortName,serviceStatus,serviceType:(display),concept:(uuid,display),servicePrices:(uuid,name,price,paymentMode:(uuid,name)))`,g=async e=>{let t=await (0,b.openmrsFetch)(`${b.restBaseUrl}/cashier/bill`,{method:"POST",body:e,headers:{"Content-Type":"application/json"}});return await (0,r.mutate)(e=>"string"==typeof e&&e.includes("/cashier/bill")&&!e.includes("/cashier/billableService"),void 0,{revalidate:!0}),t},y="-esm-ward__create-bill__sectionTitle___R3hPZ",f="-esm-ward__create-bill__button___zv+bq",E=c.z.object({cashPointUuid:c.z.string().min(1,"Select a cash point"),billableServiceUuid:c.z.string().min(1,"Select a billable item"),quantity:c.z.number({coerce:!0}).min(1,"Quantity must be at least 1"),priceUuid:c.z.string().min(1,"Select a payment mode")}),w=({workspaceProps:e,closeWorkspace:t})=>{let{patientUuid:i,daysAdmitted:c,visitUuid:u}=e??{},{t:p}=(0,n.useTranslation)(),w="tablet"===(0,b.useLayoutType)(),S=(()=>{let{wardBillingCurrencyLocaleMap:e}=(0,b.useConfig)(),t="u">typeof window?localStorage.getItem("i18nextLng")??"en":"en",i=e?.[t]??"KES";return(e,a={})=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:i,minimumFractionDigits:2,...a}).format(e??0)}catch{return`${i} ${(e??0).toFixed(2)}`}}})(),{wardPatientGroupDetails:P}=(0,b.useAppContext)("ward-view-context")??{},{currentProvider:U,sessionLocation:C,user:N}=(0,b.useSession)(),I=U?.uuid,k=N?.display??U?.identifier??p("unknownUser","Unknown user"),{dailyBedFeeBillableService:B}=(0,b.useConfig)(),{cashPoints:T,isLoading:x}=(()=>{let e=`${b.restBaseUrl}/cashier/cashPoint?v=custom:(uuid,name,description,retired,location:(uuid,display))`,{data:t,error:i,isLoading:a}=(0,r.Ay)(e,b.openmrsFetch);return{cashPoints:(t?.data?.results??[]).filter(e=>!e.retired),isLoading:a,error:i}})(),[M,q]=(0,a.useState)(!1),[$,L]=(0,a.useState)(""),[F,W]=(0,a.useState)(null),D=(0,a.useMemo)(()=>{let e="number"==typeof c?c:Number(c);return Number.isFinite(e)&&e>0?e:1},[c]),{billableService:z,isLoading:H}=(e=>{let{data:t,error:i,isLoading:a}=h()(e?v:null,b.openmrsFetch);return{billableService:e?t?.data?.results?.find(t=>t?.concept?.uuid===e)??null:null,isLoading:a,error:i}})(B),{billableServices:R,isLoading:A}=((e="")=>{let t=e?.trim()??"",i=t?`${v}&q=${encodeURIComponent(t)}`:v,{data:a,error:l,isLoading:n}=(0,r.Ay)(i,b.openmrsFetch);return{billableServices:a?.data?.results??[],isLoading:n,error:l}})($),{control:O,handleSubmit:V,watch:j,setValue:G,getValues:J,reset:Q,formState:{isDirty:K,isSubmitting:X,isValid:Y,errors:Z}}=(0,s.mN)({resolver:(0,d.u)(E),mode:"onChange",defaultValues:{cashPointUuid:"",billableServiceUuid:"",quantity:D,priceUuid:""}}),ee=j("billableServiceUuid"),et=j("cashPointUuid"),ei=j("priceUuid"),ea=j("quantity"),el=(0,a.useMemo)(()=>{let e=new Map;return z&&e.set(z.uuid,z),R.forEach(t=>{e.set(t.uuid,t)}),Array.from(e.values())},[z,R]),er=(0,a.useMemo)(()=>el.find(e=>e.uuid===ee)??null,[el,ee]),en=(0,a.useMemo)(()=>er?.servicePrices?.find(e=>e.uuid===ei)??null,[er,ei]),es=(en?.price??0)*(Number(ea)||0),ec=(0,a.useRef)(!1),ed=(0,a.useRef)(!1);(0,a.useEffect)(()=>{z&&!ec.current&&(ec.current=!0,Q({cashPointUuid:J("cashPointUuid"),billableServiceUuid:z.uuid,quantity:D,priceUuid:z.servicePrices?.[0]?.uuid??""},{keepDefaultValues:!1}))},[z,D,J,Q]),(0,a.useEffect)(()=>{if(!T.length||ed.current)return;let e=(C?.uuid?T.find(e=>e.location?.uuid===C.uuid):void 0)??T[0];e&&(ed.current=!0,G("cashPointUuid",e.uuid,{shouldValidate:!0}))},[T,C?.uuid,G]),(0,a.useEffect)(()=>{q(K)},[K]);let eu=async e=>{if(W(null),!er||!en)return void W(p("selectItemAndPrice","Select a billable item and a payment mode before saving."));if(!e.cashPointUuid)return void W(p("selectCashPoint","Select a cash point before saving."));if(!I)return void W(p("missingLoggedInProvider","No provider is linked to the logged-in user."));let a={cashPoint:e.cashPointUuid,cashier:I,patient:i,...u?{visit:u}:{},status:"PENDING",lineItems:[{billableService:er.uuid,quantity:e.quantity,price:en.price,priceUuid:en.uuid,priceName:en.name??"Default",lineItemOrder:0,paymentStatus:"PENDING"}],payments:[]};try{await g(a),await (0,r.mutate)(e=>"string"==typeof e&&e.includes("/cashier/bill")),P?.mutate(),(0,b.showSnackbar)({title:p("billSaved","Bill saved"),subtitle:p("billProcessingSuccess","Bill processing has been successful"),kind:"success",timeoutInMs:3e3}),t({discardUnsavedChanges:!0})}catch(t){let e=t?.responseBody?.error?.message??t?.message??p("unknownError","Unknown error occurred");W(e),(0,b.showSnackbar)({title:p("billProcessingError","Bill processing error"),subtitle:e,kind:"error",timeoutInMs:6e3})}},eo=!Y||X||!er||!en||!I;return l().createElement(b.Workspace2,{title:p("createBill","Create Bill"),hasUnsavedChanges:M},l().createElement(m.lVW,{className:"-esm-ward__create-bill__form___vU7mn",onSubmit:V(eu)},l().createElement("div",{className:"-esm-ward__create-bill__formContainer___i5p-y"},l().createElement(b.ResponsiveWrapper,null,l().createElement(m.jeF,{className:"-esm-ward__create-bill__infoNotification___wT7Wl","aria-label":p("createWardBillHelperLabel","Create ward bill"),kind:"info",lowContrast:!0,hideCloseButton:!0,title:p("createWardBill","Create Ward Bill"),subtitle:p("createWardBillHelper","The daily bed charge is pre-selected and the quantity defaults to the number of days admitted ({{days}}). Search to pick a different chargeable item if needed.",{days:D})})),l().createElement("section",null,l().createElement("h5",{className:y},p("billingDetails","Billing details")),l().createElement(m.BJc,{gap:5},l().createElement(s.xI,{control:O,name:"cashPointUuid",render:({field:e})=>l().createElement(b.ResponsiveWrapper,null,l().createElement(m.msM,{id:"ward-bill-cash-point",titleText:p("cashPoint","Cash point"),label:p("selectCashPoint","Select a cash point"),items:T,itemToString:e=>e?e.location?.display?`${e.name} — ${e.location.display}`:e.name:"",selectedItem:T.find(t=>t.uuid===e.value)??null,onChange:({selectedItem:t})=>{e.onChange(t?.uuid??"")},invalid:!!Z.cashPointUuid,invalidText:Z.cashPointUuid?.message}))}),x&&!et&&l().createElement(m.OuH,{description:p("loadingCashPoints","Loading cash points...")}),l().createElement(m.ksK,{id:"ward-bill-cashier",labelText:p("cashier","Cashier"),value:k,readOnly:!0}),!I&&l().createElement(m.jeF,{kind:"error",lowContrast:!0,hideCloseButton:!0,title:p("missingLoggedInProvider","No provider is linked to the logged-in user"),subtitle:p("missingLoggedInProviderHelper","You must be logged in as a provider to raise a ward bill.")}))),l().createElement("section",null,l().createElement("h5",{className:y},p("chargeableItem","Chargeable item")),l().createElement("p",{className:"-esm-ward__create-bill__sectionHelper___Lgnkg"},p("searchOrPickItem","Search for a billable service or use the pre-selected daily bed charge.")),l().createElement(m.BJc,{gap:5},l().createElement(s.xI,{control:O,name:"billableServiceUuid",render:({field:e})=>l().createElement(b.ResponsiveWrapper,null,l().createElement(m.a32,{id:"ward-bill-service",titleText:p("billableItem","Billable item"),placeholder:p("searchBillableItems","Search billable items"),items:el,itemToString:e=>e?e.name:"",selectedItem:el.find(t=>t.uuid===e.value)??null,onInputChange:e=>L(e??""),onChange:({selectedItem:t})=>{e.onChange(t?.uuid??""),G("priceUuid",t?.servicePrices?.[0]?.uuid??"",{shouldValidate:!0})},shouldFilterItem:()=>!0,invalid:!!Z.billableServiceUuid,invalidText:Z.billableServiceUuid?.message}))}),(A||H)&&!er&&l().createElement(m.OuH,{description:p("loadingBillableItems","Loading billable items...")}),er&&l().createElement("div",{className:"-esm-ward__create-bill__selectedItem___KmtAe"},l().createElement("div",{className:"-esm-ward__create-bill__selectedItemHeader___6HUDm"},l().createElement("span",{className:"-esm-ward__create-bill__serviceName___fXz6J"},er.name),l().createElement(m.$nd,{hasIconOnly:!0,renderIcon:_.zH,iconDescription:p("removeItem","Remove item"),kind:"ghost",size:"sm",onClick:()=>{Q({cashPointUuid:J("cashPointUuid"),billableServiceUuid:"",quantity:D,priceUuid:""})}})),l().createElement("div",{className:"-esm-ward__create-bill__selectedItemGrid___BGeV3"},l().createElement(s.xI,{control:O,name:"quantity",render:({field:e})=>l().createElement(m.Q7x,{id:"ward-bill-quantity",label:p("quantity","Quantity"),helperText:p("defaultsToDaysAdmitted","Defaults to days admitted ({{days}})",{days:D}),min:1,value:e.value,onChange:(t,{value:i})=>e.onChange(""===i?"":Number(i)),invalid:!!Z.quantity,invalidText:Z.quantity?.message})}),l().createElement(s.xI,{control:O,name:"priceUuid",render:({field:e})=>l().createElement(m.msM,{id:"ward-bill-price",titleText:p("paymentMode","Payment mode"),label:p("selectPaymentMode","Select payment mode"),items:er.servicePrices??[],itemToString:e=>e?`${e.paymentMode?.name??e.name} — ${S(e.price)}`:"",selectedItem:er.servicePrices?.find(t=>t.uuid===e.value)??null,onChange:({selectedItem:t})=>{e.onChange(t?.uuid??"")},invalid:!!Z.priceUuid,invalidText:Z.priceUuid?.message})})),l().createElement("div",{className:"-esm-ward__create-bill__summaryRow___ztYVN"},l().createElement("span",{className:"-esm-ward__create-bill__summaryLabel___Lx81N"},p("unitPrice","Unit price"),": ",S(en?.price??0)," \xd7 ",Number(ea)||0),l().createElement("span",{className:"-esm-ward__create-bill__summaryValue___efMWP"},p("total","Total"),": ",S(es)))),F&&l().createElement(m.jeF,{kind:"error",lowContrast:!0,title:p("couldNotSaveBill","Could not save bill"),subtitle:F,onCloseButtonClick:()=>W(null)})))),l().createElement(m.Te$,{className:o()("-esm-ward__create-bill__buttonSet___EP7m-",{"-esm-ward__create-bill__tablet___QJFWP":w,"-esm-ward__create-bill__desktop___Cib6D":!w})},l().createElement(m.$nd,{className:f,kind:"secondary",onClick:()=>t()},p("cancel","Cancel")),l().createElement(m.$nd,{className:f,kind:"primary",type:"submit",disabled:eo},X?l().createElement(m.OuH,{className:"-esm-ward__create-bill__spinner___t4XMM",description:p("savingBill","Saving...")}):l().createElement("span",null,p("saveAndClose","Save & close"))))))}}}]);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var _kenyaemr_esm_ward_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@kenyaemr/esm-ward-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@kenyaemr/esm-ward-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,a={6364(e,t,r){"use strict";var n,o,a,i,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},O=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},_=null!=(a=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?a:{},E=null!=(i=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?i:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],w={},T=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@kenyaemr/esm-ward-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(_))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(i)&&(p.eager=i),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:a};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(O))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(O)){let n=b[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:E,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:w,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:T,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},3233(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},6437(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,p=l.length;u<p;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},7661(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(6437);let n=r(1318),o=r(3054),a=r(9170);function i(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=i,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=i(r)},t.loadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},1318(e,t,r){r(6437);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@kenyaemr/esm-ward-app:8.5.4-pre.151";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,p=l.length;u<p;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),a=r(2677),i=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=a.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let y=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(i.RUNTIME_012,{[i.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
1
|
+
var _kenyaemr_esm_ward_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@kenyaemr/esm-ward-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@kenyaemr/esm-ward-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,a={6364(e,t,r){"use strict";var n,o,a,i,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},O=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},_=null!=(a=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?a:{},E=null!=(i=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?i:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],w={},T=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@kenyaemr/esm-ward-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(_))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(i)&&(p.eager=i),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:a};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(O))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(O)){let n=b[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:E,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:w,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:T,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},3233(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},6437(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,p=l.length;u<p;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},7661(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(6437);let n=r(1318),o=r(3054),a=r(9170);function i(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=i,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=i(r)},t.loadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},1318(e,t,r){r(6437);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@kenyaemr/esm-ward-app:8.5.4-pre.152";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,p=l.length;u<p;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),a=r(2677),i=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=a.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let y=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(i.RUNTIME_012,{[i.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
2
2
|
${n}`),o.join("\n")}},1315(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:a,instance:i,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let p=r?u.find(e=>e[1]===r):u[0];if(!p)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>a.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:p[2],entry:`${n.p}${p[0]}`,type:o,entryGlobalName:p[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},2677(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},523(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(223),o=r(3545),a=r(3586),i=r(1864),s=r(2221),l=r(4307),u=r(1180),p=r(367),c=r(1315),d=r(7661);d=n.__toESM(d);let f={remotes:a.remotes,consumes:i.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:p.init,getSharedFallbackGetter:c.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,y=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=y,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},367(e,t,r){let n=r(223),o=r(7661),a=r(589);a=n.__toESM(a),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:i,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:p}=t,c=n.version||p.version;if(!i)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=a.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:c});return h&&"shared"in h&&(Object.keys(p.shared||{}).forEach(e=>{p.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:a}=t;if(!a)return;let{secondarySharedTreeShakingName:i,secondarySharedTreeShakingEntry:s,treeShakingStatus:p}=n;a.status!==p&&(a.status=p,s&&l&&i&&(a.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:i,entry:s,type:l,entryGlobalName:i,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},1180(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:a}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let i=t.federation.instance;i.initOptions({name:t.federation.initOptions.name,remotes:[],...a});let s=a?.shareScopeKeys,l=a?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void i.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];i.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];i.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}})}):i.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},2221(e,t,r){let n=r(3545),o=r(6917);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:a,initScope:i}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){i||(i=[]);let l=t.federation.instance;var u=a[s];if(u||(u=a[s]={from:l.name}),i.indexOf(u)>=0)return;i.push(u);let p=r[s];if(p)return p;var c=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var a=r=>r&&r.init&&r.init(t.S[s],i,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(a,n));var l=a(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:i,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)c(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||c(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},4307(e,t,r){let n=r(1092),o=r(2677);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:a,initialConsumes:i,asyncLoad:s}=e,l=[];i.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:a}=e,i=n.federation.instance;if(!i)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[i.options.name]}),a)return i.loadShare(s,{customShareInfo:t});return i.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{a[e]=0,delete r.c[e];let i=n();if("function"!=typeof i)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=i(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},3586(e,t,r){r(223);let n=r(3545),o=r(6917),a=r(1092),i=r(1853);t.remotes=function(e){a.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:p}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],a=p[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
|
|
3
|
-
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,a,i,s)=>{try{let u=e(t,o);if(!u||!u.then)return i(u,a,s);{let e=u.then(e=>i(e,a),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===a.length&&o.FEDERATION_SUPPORTED_TYPES.includes(a[0].externalType)&&a[0].name?c(()=>{try{let e=(0,i.decodeName)(a[0].name,i.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:a,bundlerRuntime:i,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:a?i?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:a?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:a?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(i)&&(p.eager=i),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:a};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:a}=t,i=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!a||a._updated||!i)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=a;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&i[t.remoteName]){let r=i[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),a._updated=1}}},6860(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,p=l.length;u<p;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},589(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(6860);let n=r(5949),o=r(3054),a={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},i=o.helpers.share,s=o.helpers.utils;t.default={global:a,share:i,utils:s},t.global=a,t.share=i,t.utils=s},5949(e,t,r){r(6860);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@kenyaemr/esm-ward-app:8.5.4-pre.151";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e].call(r.exports,r,r.exports,s),r.exports}s.m=a,s.c=i,s.x=()=>s(3233),s.federation||(s.federation={chunkMatcher:function(e){return!/^(3031|3549|4321|4865|567|9309)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);s.r(r);var n={};l=l||[null,u({}),u([]),u(u)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~l.indexOf(o);o=u(o))Object.getOwnPropertyNames(o).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,s.d(r,n),r},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p={},s.l=function(e,t,r,n){if(p[e])return void p[e].push(t);if(void 0!==r)for(var o,a,i=document.getElementsByTagName("script"),l=0;l<i.length;l++){var u=i[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@kenyaemr/esm-ward-app:"+r){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@kenyaemr/esm-ward-app:"+r),o.src=e),p[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),a&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5420",factory:()=>Promise.all([s.e("689"),s.e("8990"),s.e("3496"),s.e("1744"),s.e("2124"),s.e("9011"),s.e("9336"),s.e("4321"),s.e("3549"),s.e("567"),s.e("3031"),s.e("4865"),s.e("6978")]).then(()=>()=>s(5915)),eager:0,singleton:1,requiredVersion:"9.x",strictVersion:0},{name:"react-i18next",version:"11.18.6",factory:()=>Promise.all([s.e("6196"),s.e("567")]).then(()=>()=>s(3807)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"react-router-dom",version:"6.30.6",factory:()=>Promise.all([s.e("689"),s.e("9712"),s.e("567")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"^18.1.0",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([s.e("3989"),s.e("567")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([s.e("9061"),s.e("4321"),s.e("567")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([s.e("9771"),s.e("4321"),s.e("567"),s.e("3720")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@kenyaemr/esm-ward-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(c=s.g.location+"");var l,u,p,c,d=s.g.document;if(!c&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(c=d.currentScript.src),!c)){var f=d.getElementsByTagName("script");if(f.length)for(var h=f.length-1;h>-1&&(!c||!/^http(s?):/.test(c));)c=f[h--].src}if(!c)throw Error("Automatic publicPath is not supported in this browser");if(s.p=c=c.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{4865:["5614","1907"],2810:["357"],4321:["3896"],3549:["1356"],567:["8602"],5181:["4187"],3031:["4522"]},moduleIdToConsumeDataMapping:{5614:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("6196").then(()=>()=>s(3807))},357:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"9.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("8990"),s.e("3496"),s.e("1744"),s.e("2124"),s.e("9011"),s.e("9336"),s.e("4321"),s.e("3549"),s.e("3031")]).then(()=>()=>s(5915))},1356:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9061"),s.e("4321")]).then(()=>()=>s(9876))},4187:{shareScope:"default",shareKey:"@openmrs/esm-framework/src/internal",import:"@openmrs/esm-framework/src/internal",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("2124"),s.e("9011"),s.e("9336"),s.e("3549"),s.e("3031")]).then(()=>()=>s(5915))},4522:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9771").then(()=>()=>s(2470))},3896:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},1907:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("9712")]).then(()=>()=>s(7059))},8602:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"^18.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var m=function(e,t,r,n,o){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",s.nc&&(a.nonce=s.nc),a.href=t,a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,a.parentNode&&a.parentNode.removeChild(a),o(l)}},r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a),a},g=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],a=o.getAttribute("data-href")||o.getAttribute("href");if(a&&(a=a.split("?")[0]),"stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===t)return o}},y={3075:0};s.f.miniCss=function(e,t){if(y[e])t.push(y[e]);else 0!==y[e]&&({1613:1,1992:1,2101:1,2290:1,2446:1,2810:1,2830:1,3276:1,4266:1,4847:1,4883:1,4892:1,5050:1,5060:1,5460:1,5493:1,5591:1,5862:1,6079:1,6380:1,6703:1,7240:1,7891:1,8302:1,8923:1,9080:1,9309:1,9336:1,9396:1,9456:1,9926:1})[e]&&t.push(y[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(g(n,o))return t();m(e,o,null,t,r)}).then(function(){y[e]=0},function(t){throw delete y[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("567"),s.e("4865"),s.e("2810")]).then(()=>()=>s(9633))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={3075:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(3031|3549|4321|4865|567|9309)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var a=s.p+s.u(t),i=Error();s.l(a,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[a,i,l]=r,u=0;if(a.some(t=>0!==e[t])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);l&&l(s)}for(t&&t(r);u<a.length;u++)o=a[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(6364)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_kenyaemr_esm_ward_app=s.x()})();
|
|
3
|
+
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,a,i,s)=>{try{let u=e(t,o);if(!u||!u.then)return i(u,a,s);{let e=u.then(e=>i(e,a),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===a.length&&o.FEDERATION_SUPPORTED_TYPES.includes(a[0].externalType)&&a[0].name?c(()=>{try{let e=(0,i.decodeName)(a[0].name,i.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:a,bundlerRuntime:i,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:a?i?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:a?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:a?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(i)&&(p.eager=i),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:a};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:a}=t,i=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!a||a._updated||!i)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=a;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&i[t.remoteName]){let r=i[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),a._updated=1}}},6860(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,p=l.length;u<p;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},589(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(6860);let n=r(5949),o=r(3054),a={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},i=o.helpers.share,s=o.helpers.utils;t.default={global:a,share:i,utils:s},t.global=a,t.share=i,t.utils=s},5949(e,t,r){r(6860);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@kenyaemr/esm-ward-app:8.5.4-pre.152";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e].call(r.exports,r,r.exports,s),r.exports}s.m=a,s.c=i,s.x=()=>s(3233),s.federation||(s.federation={chunkMatcher:function(e){return!/^(3031|3549|4321|4865|567|9309)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);s.r(r);var n={};l=l||[null,u({}),u([]),u(u)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~l.indexOf(o);o=u(o))Object.getOwnPropertyNames(o).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,s.d(r,n),r},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p={},s.l=function(e,t,r,n){if(p[e])return void p[e].push(t);if(void 0!==r)for(var o,a,i=document.getElementsByTagName("script"),l=0;l<i.length;l++){var u=i[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@kenyaemr/esm-ward-app:"+r){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@kenyaemr/esm-ward-app:"+r),o.src=e),p[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),a&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5420",factory:()=>Promise.all([s.e("689"),s.e("8990"),s.e("3496"),s.e("1744"),s.e("2124"),s.e("9011"),s.e("9336"),s.e("4321"),s.e("3549"),s.e("567"),s.e("3031"),s.e("4865"),s.e("6978")]).then(()=>()=>s(5915)),eager:0,singleton:1,requiredVersion:"9.x",strictVersion:0},{name:"react-i18next",version:"11.18.6",factory:()=>Promise.all([s.e("6196"),s.e("567")]).then(()=>()=>s(3807)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"react-router-dom",version:"6.30.6",factory:()=>Promise.all([s.e("689"),s.e("9712"),s.e("567")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"^18.1.0",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([s.e("3989"),s.e("567")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([s.e("9061"),s.e("4321"),s.e("567")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([s.e("9771"),s.e("4321"),s.e("567"),s.e("3720")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@kenyaemr/esm-ward-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(c=s.g.location+"");var l,u,p,c,d=s.g.document;if(!c&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(c=d.currentScript.src),!c)){var f=d.getElementsByTagName("script");if(f.length)for(var h=f.length-1;h>-1&&(!c||!/^http(s?):/.test(c));)c=f[h--].src}if(!c)throw Error("Automatic publicPath is not supported in this browser");if(s.p=c=c.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{4865:["1907","5614"],2810:["357"],4321:["3896"],3549:["1356"],567:["8602"],5181:["4187"],3031:["4522"]},moduleIdToConsumeDataMapping:{5614:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("6196").then(()=>()=>s(3807))},357:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"9.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("8990"),s.e("3496"),s.e("1744"),s.e("2124"),s.e("9011"),s.e("9336"),s.e("4321"),s.e("3549"),s.e("3031")]).then(()=>()=>s(5915))},1356:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9061"),s.e("4321")]).then(()=>()=>s(9876))},4187:{shareScope:"default",shareKey:"@openmrs/esm-framework/src/internal",import:"@openmrs/esm-framework/src/internal",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("2124"),s.e("9011"),s.e("9336"),s.e("3549"),s.e("3031")]).then(()=>()=>s(5915))},4522:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9771").then(()=>()=>s(2470))},3896:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},1907:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("9712")]).then(()=>()=>s(7059))},8602:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"^18.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var m=function(e,t,r,n,o){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",s.nc&&(a.nonce=s.nc),a.href=t,a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,a.parentNode&&a.parentNode.removeChild(a),o(l)}},r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a),a},g=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],a=o.getAttribute("data-href")||o.getAttribute("href");if(a&&(a=a.split("?")[0]),"stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===t)return o}},y={3075:0};s.f.miniCss=function(e,t){if(y[e])t.push(y[e]);else 0!==y[e]&&({1613:1,1992:1,2101:1,2290:1,2446:1,2810:1,3276:1,4266:1,4847:1,4883:1,4892:1,5050:1,5060:1,5460:1,5493:1,5591:1,5862:1,6079:1,6380:1,6703:1,7240:1,7891:1,8302:1,8923:1,9080:1,9124:1,9309:1,9336:1,9396:1,9456:1,9926:1})[e]&&t.push(y[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(g(n,o))return t();m(e,o,null,t,r)}).then(function(){y[e]=0},function(t){throw delete y[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("567"),s.e("4865"),s.e("2810")]).then(()=>()=>s(9633))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={3075:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(3031|3549|4321|4865|567|9309)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var a=s.p+s.u(t),i=Error();s.l(a,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[a,i,l]=r,u=0;if(a.some(t=>0!==e[t])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);l&&l(s)}for(t&&t(r);u<a.length;u++)o=a[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(6364)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_kenyaemr_esm_ward_app=s.x()})();
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
"2810.css.map",
|
|
446
446
|
"2810.js.map"
|
|
447
447
|
],
|
|
448
|
-
"hash": "
|
|
448
|
+
"hash": "ab02a000ba22ad7a",
|
|
449
449
|
"childrenByOrder": {}
|
|
450
450
|
},
|
|
451
451
|
{
|
|
@@ -471,32 +471,6 @@
|
|
|
471
471
|
"hash": "52550ae93523d390",
|
|
472
472
|
"childrenByOrder": {}
|
|
473
473
|
},
|
|
474
|
-
{
|
|
475
|
-
"type": "chunk",
|
|
476
|
-
"rendered": true,
|
|
477
|
-
"initial": false,
|
|
478
|
-
"entry": false,
|
|
479
|
-
"size": 26814,
|
|
480
|
-
"sizes": {
|
|
481
|
-
"css/mini-extract": 10331,
|
|
482
|
-
"javascript": 16483
|
|
483
|
-
},
|
|
484
|
-
"names": [],
|
|
485
|
-
"idHints": [],
|
|
486
|
-
"runtime": [
|
|
487
|
-
"@kenyaemr/esm-ward-app"
|
|
488
|
-
],
|
|
489
|
-
"files": [
|
|
490
|
-
"2830.css",
|
|
491
|
-
"2830.js"
|
|
492
|
-
],
|
|
493
|
-
"auxiliaryFiles": [
|
|
494
|
-
"2830.css.map",
|
|
495
|
-
"2830.js.map"
|
|
496
|
-
],
|
|
497
|
-
"hash": "174e31d20498bae6",
|
|
498
|
-
"childrenByOrder": {}
|
|
499
|
-
},
|
|
500
474
|
{
|
|
501
475
|
"type": "chunk",
|
|
502
476
|
"rendered": true,
|
|
@@ -566,7 +540,7 @@
|
|
|
566
540
|
"auxiliaryFiles": [
|
|
567
541
|
"kenyaemr-esm-ward-app.js.map"
|
|
568
542
|
],
|
|
569
|
-
"hash": "
|
|
543
|
+
"hash": "5629b930d8152108",
|
|
570
544
|
"childrenByOrder": {}
|
|
571
545
|
},
|
|
572
546
|
{
|
|
@@ -1682,9 +1656,9 @@
|
|
|
1682
1656
|
"rendered": true,
|
|
1683
1657
|
"initial": false,
|
|
1684
1658
|
"entry": false,
|
|
1685
|
-
"size":
|
|
1659
|
+
"size": 8250,
|
|
1686
1660
|
"sizes": {
|
|
1687
|
-
"javascript":
|
|
1661
|
+
"javascript": 8250
|
|
1688
1662
|
},
|
|
1689
1663
|
"names": [],
|
|
1690
1664
|
"idHints": [],
|
|
@@ -1697,7 +1671,7 @@
|
|
|
1697
1671
|
"auxiliaryFiles": [
|
|
1698
1672
|
"636.js.map"
|
|
1699
1673
|
],
|
|
1700
|
-
"hash": "
|
|
1674
|
+
"hash": "454769fb9e86ce4e",
|
|
1701
1675
|
"childrenByOrder": {}
|
|
1702
1676
|
},
|
|
1703
1677
|
{
|
|
@@ -2478,6 +2452,32 @@
|
|
|
2478
2452
|
"hash": "cab931e2da9c234c",
|
|
2479
2453
|
"childrenByOrder": {}
|
|
2480
2454
|
},
|
|
2455
|
+
{
|
|
2456
|
+
"type": "chunk",
|
|
2457
|
+
"rendered": true,
|
|
2458
|
+
"initial": false,
|
|
2459
|
+
"entry": false,
|
|
2460
|
+
"size": 29016,
|
|
2461
|
+
"sizes": {
|
|
2462
|
+
"css/mini-extract": 10331,
|
|
2463
|
+
"javascript": 18685
|
|
2464
|
+
},
|
|
2465
|
+
"names": [],
|
|
2466
|
+
"idHints": [],
|
|
2467
|
+
"runtime": [
|
|
2468
|
+
"@kenyaemr/esm-ward-app"
|
|
2469
|
+
],
|
|
2470
|
+
"files": [
|
|
2471
|
+
"9124.css",
|
|
2472
|
+
"9124.js"
|
|
2473
|
+
],
|
|
2474
|
+
"auxiliaryFiles": [
|
|
2475
|
+
"9124.css.map",
|
|
2476
|
+
"9124.js.map"
|
|
2477
|
+
],
|
|
2478
|
+
"hash": "2cb4320c8ba9f1dd",
|
|
2479
|
+
"childrenByOrder": {}
|
|
2480
|
+
},
|
|
2481
2481
|
{
|
|
2482
2482
|
"type": "chunk",
|
|
2483
2483
|
"rendered": true,
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=3.0.0 <4.0.0","emrapi":">=3.0.0 <4.0.0","bedmanagement":">=7.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"wardPatientNotesActionButtonExtension","name":"ward-inpatient-notes-form-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"transfer-swap-patient-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"name":"clinical-forms-workspace-siderail-button","component":"clinicalFormWorkspaceSideRailIcon","slot":"action-menu-ward-patient-items-slot"},{"name":"admission-requests-workspace-siderail-button","component":"admissionRequestsWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"name":"create-admission-request-workspace-siderail-button","component":"createAdmissionEncounterWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"name":"ward-patients-awaiting-admission","component":"wardPatientsAwaitingAdmissionTable","slot":"ward-patients-awaiting-admission-slot"},{"name":"ward-patients-admitted","component":"wardPatientsAdmittedTable","slot":"ward-patients-admitted-slot"},{"name":"ward-patients-unassigned","component":"wardPatientsUnassignedTable","slot":"ward-patients-unassigned-slot"},{"name":"ward-patients-discharge-in","component":"wardPatientsDischargeInTable","slot":"ward-patients-discharge-in-slot"},{"name":"ward-patients-discharged","component":"wardPatientsDischargedTable","slot":"ward-patients-discharged-slot"},{"component":"patientDischargeDocumentPreview","name":"patient-discharge-document-preview-modal"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"},{"name":"in-patient-dashboard-link","component":"inPatientChartLink","order":7,"meta":{"slot":"patient-chart-in-patient-dashboard-slot","path":"in-patient","layoutMode":"anchored","columns":1,"columnSpan":1}},{"name":"in-patient-dashboard","slot":"patient-chart-in-patient-dashboard-slot","component":"inPatientChartDashboard","meta":{"fullWidth":false}},{"name":"in-patient-admission-requests","slot":"inpatient-dashboard-tabs-slot","component":"inPatientAdmissionRequest","meta":{"fullWidth":false,"title":"admissionRequests"}},{"name":"in-patient-detail-view","slot":"inpatient-dashboard-tabs-slot","component":"inPatientDetailView","meta":{"fullWidth":false,"title":"inpatientDetails"}},{"name":"inpatient-partograph-view","slot":"inpatient-dashboard-tabs-slot","component":"inPatientPartographView","meta":{"fullWidth":false,"title":"partograph"}},{"name":"in-patient-treatment-chart","component":"inPatientTreatmentChart","slot":"inpatient-dashboard-tabs-slot","meta":{"fullWidth":false,"title":"treatmentChart"}},{"name":"global-cds-alert-banner","slot":"patient-chart-clinical-encounter-slot","component":"globalCdsAlertBanner","order":99,"online":true,"offline":false},{"name":"maternal-and-child-health-labour-care-guide","slot":"inpatient-dashboard-tabs-slot","component":"labourCareGuide","meta":{"title":"Labour Care Guide"},"order":0,"online":true,"offline":false}],"modals":[{"name":"ward-switch-modal","component":"wardSwitchModal"}],"workspaces":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","title":"admissionRequests","type":"pending-admission-requests","width":"wider"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","title":"admitPatient","type":"patient-search-workspace","width":"wider"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","type":"ward-patient-notes","title":"inpatientNotesWorkspaceTitle"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","type":"ward","title":"Ward patient","width":"extra-wide"},{"name":"ward-patient-clinical-forms-workspace","component":"patientClinicalFormsWorkspace","title":"clinicalForms","type":"ward-patient-clinical-forms","width":"wider"}],"workspaceGroups":[{"name":"ward-patient","members":["ward-patient-workspace","ward-patient-notes-workspace","patient-transfer-swap-workspace","patient-discharge-workspace","ward-patient-clinical-forms-workspace","add-drug-order","order-basket","add-lab-order"]},{"name":"ward-patient-admission-requests","members":["admission-requests-workspace","create-admission-encounter-workspace"]}],"workspaces2":[{"name":"patient-transfer-request-workspace","component":"patientTransferRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-admit-or-transfer-request-form","component":"patientAdmitOrTransferRequestForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-bed-swap-form","component":"patientBedSwapForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"kenyaemr-form-entry-window"},{"name":"discharge-appointment-form-workspace","component":"@kenyaemr/esm-appointments-app#exportedAppointmentForm","window":"kenyaemr-form-entry-window"},{"name":"ward-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-form-entry-workspace-window"},{"name":"nursing-cardex-plan-workspace","component":"nursingCardexPlanWorkspace","window":"ewf-nursing-cardex"},{"name":"maternity-inpatient-form-workspace","component":"maternityInpatientFormWorkspace","window":"maternity-inpatient-form-window"},{"name":"create-ward-bill-workspace","component":"createWardBillWorkspace","window":"kenyaemr-esm-ward-window"}],"workspaceWindows2":[{"name":"kenyaemr-esm-ward-window","group":"kenyaemr-esm-ward-group","canMaximize":true},{"name":"ewf-nursing-cardex","group":"kenyaemr-esm-ward-group","canMaximize":true},{"name":"kenyaemr-form-entry-window","group":"kenyaemr-esm-ward-group","canMaximize":true,"width":"extra-wide"},{"name":"ward-form-entry-workspace-window","group":"patient-chart","width":"wider"},{"name":"maternity-inpatient-form-window","group":"patient-chart","width":"extra-wide","canMaximize":true}],"workspaceGroups2":[{"name":"kenyaemr-esm-ward-group"}],"version":"8.5.4-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=3.0.0 <4.0.0","emrapi":">=3.0.0 <4.0.0","bedmanagement":">=7.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"wardPatientNotesActionButtonExtension","name":"ward-inpatient-notes-form-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"transfer-swap-patient-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"name":"clinical-forms-workspace-siderail-button","component":"clinicalFormWorkspaceSideRailIcon","slot":"action-menu-ward-patient-items-slot"},{"name":"admission-requests-workspace-siderail-button","component":"admissionRequestsWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"name":"create-admission-request-workspace-siderail-button","component":"createAdmissionEncounterWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"name":"ward-patients-awaiting-admission","component":"wardPatientsAwaitingAdmissionTable","slot":"ward-patients-awaiting-admission-slot"},{"name":"ward-patients-admitted","component":"wardPatientsAdmittedTable","slot":"ward-patients-admitted-slot"},{"name":"ward-patients-unassigned","component":"wardPatientsUnassignedTable","slot":"ward-patients-unassigned-slot"},{"name":"ward-patients-discharge-in","component":"wardPatientsDischargeInTable","slot":"ward-patients-discharge-in-slot"},{"name":"ward-patients-discharged","component":"wardPatientsDischargedTable","slot":"ward-patients-discharged-slot"},{"component":"patientDischargeDocumentPreview","name":"patient-discharge-document-preview-modal"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"},{"name":"in-patient-dashboard-link","component":"inPatientChartLink","order":7,"meta":{"slot":"patient-chart-in-patient-dashboard-slot","path":"in-patient","layoutMode":"anchored","columns":1,"columnSpan":1}},{"name":"in-patient-dashboard","slot":"patient-chart-in-patient-dashboard-slot","component":"inPatientChartDashboard","meta":{"fullWidth":false}},{"name":"in-patient-admission-requests","slot":"inpatient-dashboard-tabs-slot","component":"inPatientAdmissionRequest","meta":{"fullWidth":false,"title":"admissionRequests"}},{"name":"in-patient-detail-view","slot":"inpatient-dashboard-tabs-slot","component":"inPatientDetailView","meta":{"fullWidth":false,"title":"inpatientDetails"}},{"name":"inpatient-partograph-view","slot":"inpatient-dashboard-tabs-slot","component":"inPatientPartographView","meta":{"fullWidth":false,"title":"partograph"}},{"name":"in-patient-treatment-chart","component":"inPatientTreatmentChart","slot":"inpatient-dashboard-tabs-slot","meta":{"fullWidth":false,"title":"treatmentChart"}},{"name":"global-cds-alert-banner","slot":"patient-chart-clinical-encounter-slot","component":"globalCdsAlertBanner","order":99,"online":true,"offline":false},{"name":"maternal-and-child-health-labour-care-guide","slot":"inpatient-dashboard-tabs-slot","component":"labourCareGuide","meta":{"title":"Labour Care Guide"},"order":0,"online":true,"offline":false}],"modals":[{"name":"ward-switch-modal","component":"wardSwitchModal"}],"workspaces":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","title":"admissionRequests","type":"pending-admission-requests","width":"wider"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","title":"admitPatient","type":"patient-search-workspace","width":"wider"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","type":"ward-patient-notes","title":"inpatientNotesWorkspaceTitle"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","type":"ward","title":"Ward patient","width":"extra-wide"},{"name":"ward-patient-clinical-forms-workspace","component":"patientClinicalFormsWorkspace","title":"clinicalForms","type":"ward-patient-clinical-forms","width":"wider"}],"workspaceGroups":[{"name":"ward-patient","members":["ward-patient-workspace","ward-patient-notes-workspace","patient-transfer-swap-workspace","patient-discharge-workspace","ward-patient-clinical-forms-workspace","add-drug-order","order-basket","add-lab-order"]},{"name":"ward-patient-admission-requests","members":["admission-requests-workspace","create-admission-encounter-workspace"]}],"workspaces2":[{"name":"patient-transfer-request-workspace","component":"patientTransferRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-admit-or-transfer-request-form","component":"patientAdmitOrTransferRequestForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-bed-swap-form","component":"patientBedSwapForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"kenyaemr-form-entry-window"},{"name":"discharge-appointment-form-workspace","component":"@kenyaemr/esm-appointments-app#exportedAppointmentForm","window":"kenyaemr-form-entry-window"},{"name":"ward-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-form-entry-workspace-window"},{"name":"nursing-cardex-plan-workspace","component":"nursingCardexPlanWorkspace","window":"ewf-nursing-cardex"},{"name":"maternity-inpatient-form-workspace","component":"maternityInpatientFormWorkspace","window":"maternity-inpatient-form-window"},{"name":"create-ward-bill-workspace","component":"createWardBillWorkspace","window":"kenyaemr-esm-ward-window"}],"workspaceWindows2":[{"name":"kenyaemr-esm-ward-window","group":"kenyaemr-esm-ward-group","canMaximize":true},{"name":"ewf-nursing-cardex","group":"kenyaemr-esm-ward-group","canMaximize":true},{"name":"kenyaemr-form-entry-window","group":"kenyaemr-esm-ward-group","canMaximize":true,"width":"extra-wide"},{"name":"ward-form-entry-workspace-window","group":"patient-chart","width":"wider"},{"name":"maternity-inpatient-form-window","group":"patient-chart","width":"extra-wide","canMaximize":true}],"workspaceGroups2":[{"name":"kenyaemr-esm-ward-group"}],"version":"8.5.4-pre.152"}
|
package/package.json
CHANGED
|
@@ -31,6 +31,7 @@ import { bedLayoutToBed, getOpenmrsId } from '../ward-view/ward-view.resource';
|
|
|
31
31
|
import { HyperLinkPatientCell } from './patient-cells';
|
|
32
32
|
import { EmptyState } from './table-state-components';
|
|
33
33
|
import styles from './ward-patient.scss';
|
|
34
|
+
import DischargePatientAction from './discharge-patient-action.component';
|
|
34
35
|
const AdmittedPatients = () => {
|
|
35
36
|
const search = useWardPatientSearch();
|
|
36
37
|
|
|
@@ -191,17 +192,7 @@ const AdmittedPatients = () => {
|
|
|
191
192
|
})
|
|
192
193
|
}
|
|
193
194
|
/>
|
|
194
|
-
<
|
|
195
|
-
itemText={t('discharge', 'Discharge')}
|
|
196
|
-
onClick={() => {
|
|
197
|
-
launchWorkspace2('patient-discharge-workspace', {
|
|
198
|
-
wardPatient: wardPatient,
|
|
199
|
-
patientUuid: wardPatient?.patient.uuid,
|
|
200
|
-
formUuid: config.inpatientDischargeFormUuid,
|
|
201
|
-
dischargePatientOnSuccesfullSubmission: false,
|
|
202
|
-
});
|
|
203
|
-
}}
|
|
204
|
-
/>
|
|
195
|
+
<DischargePatientAction wardPatient={wardPatient} />
|
|
205
196
|
</OverflowMenu>
|
|
206
197
|
</TableCell>
|
|
207
198
|
</TableRow>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { InlineLoading, OverflowMenuItem } from '@carbon/react';
|
|
2
|
+
import {
|
|
3
|
+
type Encounter,
|
|
4
|
+
launchWorkspace2,
|
|
5
|
+
openmrsFetch,
|
|
6
|
+
type OpenmrsResource,
|
|
7
|
+
restBaseUrl,
|
|
8
|
+
showModal,
|
|
9
|
+
useConfig,
|
|
10
|
+
usePatient,
|
|
11
|
+
type Visit,
|
|
12
|
+
} from '@openmrs/esm-framework';
|
|
13
|
+
import React, { useCallback } from 'react';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
15
|
+
import { type WardConfigObject } from '../config-schema';
|
|
16
|
+
import { type WardPatient } from '../types';
|
|
17
|
+
|
|
18
|
+
type DischargePatientActionProps = {
|
|
19
|
+
wardPatient?: WardPatient;
|
|
20
|
+
};
|
|
21
|
+
const DischargePatientAction: React.FC<DischargePatientActionProps> = ({ wardPatient }) => {
|
|
22
|
+
const { inpatientDischargeFormUuid } = useConfig<WardConfigObject>();
|
|
23
|
+
const { clinicallyDeceadedIndicators } = useConfig<{
|
|
24
|
+
clinicallyDeceadedIndicators: Array<{
|
|
25
|
+
form: string;
|
|
26
|
+
formUuid: string;
|
|
27
|
+
questionConceptUuid: string;
|
|
28
|
+
deceasedAnswerConceptUuid: string;
|
|
29
|
+
}>;
|
|
30
|
+
}>({ externalModuleName: '@kenyaemr/esm-morgue-app' });
|
|
31
|
+
const { patient, patientUuid, isLoading } = usePatient(wardPatient?.patient?.uuid as string);
|
|
32
|
+
const handleNortify = useCallback(
|
|
33
|
+
async (encounter: Encounter) => {
|
|
34
|
+
const indicator = clinicallyDeceadedIndicators.find(
|
|
35
|
+
(indicator) => indicator.formUuid === inpatientDischargeFormUuid,
|
|
36
|
+
);
|
|
37
|
+
const encounters = await getVisitEncounters(wardPatient?.visit?.uuid as string);
|
|
38
|
+
const obs = encounters.find((enc) => enc.form?.uuid === inpatientDischargeFormUuid)?.obs ?? [];
|
|
39
|
+
const deceasedQuestion = obs?.find((obs) => obs?.concept?.uuid === indicator?.questionConceptUuid);
|
|
40
|
+
const isDeceased = (deceasedQuestion?.value as OpenmrsResource)?.uuid === indicator?.deceasedAnswerConceptUuid;
|
|
41
|
+
if (isDeceased) {
|
|
42
|
+
const dispose = showModal('patient-clinically-marked-deceased-modal', {
|
|
43
|
+
onClose: () => dispose(),
|
|
44
|
+
patient,
|
|
45
|
+
patientUuid,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[clinicallyDeceadedIndicators, inpatientDischargeFormUuid, patient, patientUuid, wardPatient?.visit?.uuid],
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const { t } = useTranslation();
|
|
53
|
+
if (isLoading) {
|
|
54
|
+
return <InlineLoading />;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<OverflowMenuItem
|
|
59
|
+
itemText={t('discharge', 'Discharge')}
|
|
60
|
+
onClick={() => {
|
|
61
|
+
launchWorkspace2('patient-discharge-workspace', {
|
|
62
|
+
wardPatient: wardPatient,
|
|
63
|
+
patientUuid: wardPatient?.patient.uuid,
|
|
64
|
+
formUuid: inpatientDischargeFormUuid,
|
|
65
|
+
dischargePatientOnSuccesfullSubmission: false,
|
|
66
|
+
onPostResponse: handleNortify,
|
|
67
|
+
});
|
|
68
|
+
}}
|
|
69
|
+
/>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export default DischargePatientAction;
|
|
74
|
+
|
|
75
|
+
export const getVisitEncounters = async (visitUuid: string) => {
|
|
76
|
+
const rep = `custom:(encounters:(form:(uuid,display),obs:(uuid,display,value,concept:(uuid,display))))`;
|
|
77
|
+
const url = `${restBaseUrl}/visit/${visitUuid}?v=${rep}`;
|
|
78
|
+
const res = await openmrsFetch<Visit>(url);
|
|
79
|
+
return res.data?.encounters ?? [];
|
|
80
|
+
};
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
ExtensionSlot,
|
|
7
7
|
useEmrConfiguration,
|
|
8
8
|
usePatient,
|
|
9
|
+
type Visit,
|
|
9
10
|
Workspace2,
|
|
10
11
|
type Workspace2DefinitionProps,
|
|
11
12
|
} from '@openmrs/esm-framework';
|
|
@@ -17,15 +18,22 @@ type PatientDischargeWorkspaceProps = {
|
|
|
17
18
|
readonly wardPatient: WardPatient;
|
|
18
19
|
readonly formUuid: string;
|
|
19
20
|
readonly dischargePatientOnSuccesfullSubmission?: boolean;
|
|
21
|
+
readonly onPostResponse?: (encounter: Encounter) => void;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
|
-
const PatientDischargeWorkspace: React.FC<Workspace2DefinitionProps<PatientDischargeWorkspaceProps>> = (
|
|
24
|
+
const PatientDischargeWorkspace: React.FC<Workspace2DefinitionProps<PatientDischargeWorkspaceProps>> = ({
|
|
25
|
+
workspaceProps,
|
|
26
|
+
closeWorkspace,
|
|
27
|
+
}) => {
|
|
23
28
|
const { t } = useTranslation();
|
|
24
29
|
const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);
|
|
25
30
|
const {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
patientUuid,
|
|
32
|
+
wardPatient,
|
|
33
|
+
formUuid,
|
|
34
|
+
dischargePatientOnSuccesfullSubmission = true,
|
|
35
|
+
onPostResponse,
|
|
36
|
+
} = workspaceProps ?? {};
|
|
29
37
|
const { visit: currentVisit } = wardPatient ?? {};
|
|
30
38
|
const { patient, isLoading: isLoadingPatient, error: patientError } = usePatient(patientUuid);
|
|
31
39
|
const { emrConfiguration, isLoadingEmrConfiguration, errorFetchingEmrConfiguration } = useEmrConfiguration();
|
|
@@ -46,20 +54,26 @@ const PatientDischargeWorkspace: React.FC<Workspace2DefinitionProps<PatientDisch
|
|
|
46
54
|
promptBeforeClosing: (func) => setHasUnsavedChanges(func()),
|
|
47
55
|
handlePostResponse: (encounter: Encounter) => {
|
|
48
56
|
if (dischargePatientOnSuccesfullSubmission)
|
|
49
|
-
handleDischarge(
|
|
57
|
+
handleDischarge(
|
|
58
|
+
encounter,
|
|
59
|
+
wardPatient as WardPatient,
|
|
60
|
+
emrConfiguration as Record<string, unknown>,
|
|
61
|
+
currentVisit as Visit,
|
|
62
|
+
);
|
|
63
|
+
onPostResponse?.(encounter);
|
|
50
64
|
},
|
|
51
65
|
}),
|
|
52
66
|
[
|
|
53
|
-
|
|
67
|
+
formUuid,
|
|
54
68
|
currentVisit,
|
|
69
|
+
patientUuid,
|
|
55
70
|
patient,
|
|
56
71
|
closeWorkspace,
|
|
57
|
-
setHasUnsavedChanges,
|
|
58
|
-
emrConfiguration,
|
|
59
|
-
handleDischarge,
|
|
60
72
|
dischargePatientOnSuccesfullSubmission,
|
|
61
|
-
|
|
73
|
+
handleDischarge,
|
|
62
74
|
wardPatient,
|
|
75
|
+
emrConfiguration,
|
|
76
|
+
onPostResponse,
|
|
63
77
|
],
|
|
64
78
|
);
|
|
65
79
|
|
package/dist/2830.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["2830"],{9635(e,t,a){a.r(t),a.d(t,{default:()=>h});var n=a(5803),i=a(357),r=a(3524),d=a(3464),u=a.n(d),s=a(8602),l=a.n(s),c=a(5735),o=a(5614),p=a(2607),m=a(2880),f=a(2157),g=a(2459);let h=()=>{let e=(0,c.fC)(),{wardPatientGroupDetails:t}=(0,i.useAppContext)("ward-view-context")??{},{bedLayouts:a,wardAdmittedPatientsWithBed:d,isLoading:h}=t??{},{t:b}=(0,o.useTranslation)(),w=(0,i.useConfig)(),y=[{key:"admissionDate",header:b("admissionDate","Admission Date")},{key:"idNumber",header:b("idNumber","ID Number")},{key:"name",header:b("name","Name")},{key:"gender",header:b("gender","Gender")},{key:"age",header:b("age","Age")},{key:"bedNumber",header:b("bedNumber","Bed Number")},{key:"daysAdmitted",header:b("daysInWard","Days In Ward")}],k=(0,s.useMemo)(()=>(a?.map(e=>{let{patients:t}=e,a=(0,p.yZ)(e);return t.map(e=>{let t=d?.get(e.uuid);if(!t)return{patient:e,visit:null,bed:a,inpatientAdmission:null,inpatientRequest:null};{let{patient:e,visit:n,currentInpatientRequest:i}=t;return{patient:e,visit:n,bed:a,inpatientAdmission:t,inpatientRequest:i||null}}})})?.flat()??[]).filter(e=>!e?.visit?.encounters?.find(e=>e.encounterType?.uuid===w.ipdDischargeEncounterTypeUuid)),[a,d,w]),[C,T]=(0,s.useState)(5),E=(0,s.useMemo)(()=>k?.filter(t=>t?.patient?.person?.display?.toLowerCase().includes(e.toLowerCase())),[k,e]),{paginated:N,results:S,totalPages:D,currentPage:A,goTo:P}=(0,i.usePagination)(E,C),{pageSizes:M}=(0,r.WK)(C,D,A,S.length),V=(0,s.useMemo)(()=>S.map((e,t)=>{let{encounterAssigningToCurrentInpatientLocation:a}=e.inpatientAdmission??{},n=a?.encounterDatetime?(0,i.formatDatetime)((0,i.parseDate)(a.encounterDatetime)):"--",r=a?.encounterDatetime,d=r&&u()(r).isValid()?Math.abs(u()().startOf("day").diff(u()(r).startOf("day"),"days")):"--";return{id:e.patient?.uuid??t.toString(),admissionDate:n,idNumber:(0,p.oX)(e.patient?.identifiers??[])??"--",name:l().createElement(m.YC,{patientName:e.patient?.person?.display??"",patientUuid:e.patient?.uuid}),gender:e.patient?.person?.gender??"--",age:e.patient?.person?.age??"--",bedNumber:e.bed?.bedNumber??"--",daysAdmitted:d}}),[S]);return h?l().createElement(n.OOb,null):k.length?l().createElement("div",{className:g.A.dataTableContainer},l().createElement(n.bQt,{size:"sm",rows:V,headers:y,isSortable:!0,useZebraStyles:!0},({rows:e,headers:t,getHeaderProps:a,getRowProps:r,getTableProps:d,getCellProps:u,getTableContainerProps:s})=>l().createElement(n.K3K,{title:b("admittedPatientsTitle","Admitted patients"),description:b("admittedPatientsDescription","Patients currently admitted and assigned a bed in this ward."),...s()},l().createElement(n.XIK,{...d(),"aria-label":b("admitted","Admitted")},l().createElement(n.ndF,null,l().createElement(n.Hjg,null,t.map(e=>l().createElement(n.A0N,{...a({header:e}),key:e.key},e.header)),l().createElement(n.A0N,null))),l().createElement(n.BFY,null,e.map(e=>{let t=S.find(t=>t.patient.uuid===e.id);return l().createElement(n.Hjg,{...r({row:e}),key:e.id},e.cells.map(e=>l().createElement(n.nA6,{...u({cell:e}),key:e.id},e.value)),l().createElement(n.nA6,{className:"cds--table-column-menu"},l().createElement(n.obU,{size:"sm",flipped:!0},l().createElement(n.XSD,{itemText:b("interWardTransfer","Interward Trasfer"),onClick:()=>(0,i.launchWorkspace2)("patient-admit-or-transfer-request-form",{workspaceTitle:"Trasfer",wardPatient:t,withContentSwitcher:!1,defaultTransfersection:"transfer"})}),l().createElement(n.XSD,{itemText:b("bedSwap","Bed Swap"),onClick:()=>(0,i.launchWorkspace2)("patient-bed-swap-form",{workspaceTitle:"Bed Swap",wardPatient:t,withContentSwitcher:!1,defaultTransfersection:"bed-swap"})}),l().createElement(n.XSD,{itemText:b("discharge","Discharge"),onClick:()=>{(0,i.launchWorkspace2)("patient-discharge-workspace",{wardPatient:t,patientUuid:t?.patient.uuid,formUuid:w.inpatientDischargeFormUuid,dischargePatientOnSuccesfullSubmission:!1})}}))))}))),N&&!h&&l().createElement(n.dKS,{page:A,pageSize:C,pageSizes:M,totalItems:(k??[]).length,onChange:({page:e,pageSize:t})=>{P(e),T(t)}})))):l().createElement(f.pp,{message:b("noAdmittedPatientsinCurrentward","No admitted patients in the current ward")})}},2607(e,t,a){a.d(t,{Jk:()=>l,U1:()=>s,UG:()=>o,eD:()=>u,j3:()=>c,k9:()=>p,oX:()=>m,yZ:()=>d});var n=a(357),i=a(8602),r=a(5614);function d(e){return{id:e.bedId,uuid:e.bedUuid,bedNumber:e.bedNumber,bedType:e.bedType,row:e.rowNumber,column:e.columnNumber,status:e.status}}function u(e,t){if(null==e||0==e.length)return{patients:"--",freeBeds:"--",capacity:"--"};let a=e.length,n=e.filter(e=>e.patients.length>0).length,i=0!=a?Math.trunc(t.totalPatientsCount/a*100):0;return{patients:t?.totalPatientsCount.toString()??"--",freeBeds:(a-n).toString(),capacity:i.toString()}}function s(e,t,a,n,i){let r,d=function(e){let t=new Map;for(let a of e??[])a&&t.set(a.patient.uuid,a);return t}([...e??[],...n??[]]),u=new Map,s=new Map,l=t&&(r=new Intl.Collator([],{numeric:!0}),t.bedLayouts.filter(e=>e.bedId).sort((e,t)=>r.compare(e.bedNumber,t.bedNumber))),c=new Set,o=0;l?.map(e=>{let{patients:t}=e;t.map(e=>{let t=d.get(e.uuid);if(c.add(e.uuid),t?.currentInpatientLocation?.uuid==i.uuid){u.set(e.uuid,t);let a=t.currentInpatientRequest?.dispositionType;("TRANSFER"==a||"DISCHARGE"==a)&&o++}else s.set(e?.uuid,e)})});let p=e?.filter(e=>(c.add(e?.patient?.uuid),!u.has(e?.patient?.uuid)&&!s.has(e?.patient?.uuid)))??[],m=c.size;for(let e of a??[])e&&c.add(e.patient.uuid);return{wardAdmittedPatientsWithBed:u,wardUnadmittedPatientsWithBed:s,wardPatientPendingCount:o,bedLayouts:l,wardUnassignedPatientsList:p,allWardPatientUuids:c,totalPatientsCount:m,inpatientAdmissionsByPatientUuid:d}}function l(e,t){switch(e){case"patients":return t("patients","Patients");case"freeBeds":return t("freeBeds","Free beds");case"capacity":return t("capacity","Capacity");case"pendingOut":return t("pendingOut","Pending out")}}function c(e,t,a){switch(e){case"patients":return t("patientsMetricValue","{{ metricValue }}",{metricValue:a});case"freeBeds":return t("freeBedsMetricValue","{{ metricValue }}",{metricValue:a});case"capacity":return t("capacityMetricValue","{{ metricValue }} %",{metricValue:a});case"pendingOut":return t("pendingOutMetricValue","{{ metricValue }}",{metricValue:a})}}function o(e,t){let a=(0,n.useConfig)(),{t:i}=(0,r.useTranslation)();try{return a?.patientCardElements?.[e]?.find(e=>e?.id==t)}catch(a){return(0,n.showNotification)({title:i("errorConfiguringPatientCard","Error configuring patient card"),kind:"error",critical:!0,description:i("errorConfiguringPatientCardMessage","Unable to find configuration for {{elementType}}, id: {{id}}",{elementType:e,id:t})}),null}}function p(e){let{wards:t}=(0,n.useConfig)(),a=(0,i.useMemo)(()=>t?.find(t=>null==t.appliedTo||t.appliedTo?.length==0||t.appliedTo.some(t=>t.location==e)),[t,e]);return a||(console.warn("No ward card configuration has `appliedTo` criteria that matches the current location. Using the default configuration."),{id:"default-ward"})}let m=e=>e.find(e=>"dfacd928-0370-4315-99d7-6ec1c9f7ae76"===e.identifierType.uuid)?.identifier??null}}]);
|
package/dist/2830.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2830.js","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-patients/admitted-patients.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-view/ward-view.resource.ts"],"names":["search","useWardPatientSearch","wardPatientGroupDetails","useAppContext","bedLayouts","wardAdmittedPatientsWithBed","isLoading","t","useTranslation","config","useConfig","headers","patients","useMemo","bedLayout","bed","bedLayoutToBed","patient","inpatientAdmission","visit","currentInpatientRequest","pat","encounter","pageSize","setPageSize","useState","searchResults","paginated","results","totalPages","currentPage","goTo","usePagination","pageSizes","usePaginationInfo","tableRows","index","encounterAssigningToCurrentInpatientLocation","admissionDate","formatDatetime","parseDate","encounterDate","daysAdmitted","dayjs","Math","getOpenmrsId","HyperLinkPatientCell","DataTableSkeleton","styles","DataTable","rows","getHeaderProps","getRowProps","getTableProps","getCellProps","getTableContainerProps","TableContainer","Table","TableHead","TableRow","header","TableHeader","TableBody","row","wardPatient","result","cell","TableCell","OverflowMenu","OverflowMenuItem","launchWorkspace2","Pagination","page","EmptyState","getWardMetrics","wardPatientGroup","total","occupiedBeds","capacity","freeBeds","createAndGetWardPatientGrouping","inpatientAdmissionsAtCurrentLocation","admissionLocation","inpatientRequests","inpatientAdmissionsAtOtherLocations","currentWardLocation","collator","inpatientAdmissionsByPatientUuid","getInpatientAdmissionsUuidMap","inpatientAdmissions","map","Map","wardUnadmittedPatientsWithBed","Intl","bl","bedA","bedB","allWardPatientUuids","Set","wardPatientPendingCount","admission","dispositionType","wardUnassignedPatientsList","totalPatientsCount","inpatientRequest","getWardMetricNameTranslation","name","getWardMetricValueTranslation","value","useElementConfig","elementType","id","elementConfig","e","showNotification","useWardConfig","locationUuid","wards","currentWardConfig","wardDef","criteria","console","identifiers"],"mappings":"4SAsOA,MArMyB,KACvB,IAAMA,EAASC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,IAET,CAAEC,wBAAAA,CAAuB,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAA+B,sBAAwB,CAAC,EACtF,CAAEC,WAAAA,CAAU,CAAEC,4BAAAA,CAA2B,CAAEC,UAAAA,CAAS,CAAE,CAAGJ,GAA2B,CAAC,EACrF,CAAEK,EAAAA,CAAC,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IACRC,EAASC,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,IACTC,EAAU,CACd,CAAE,IAAK,gBAAiB,OAAQJ,EAAE,gBAAiB,iBAAkB,EACrE,CAAE,IAAK,WAAY,OAAQA,EAAE,WAAY,YAAa,EACtD,CAAE,IAAK,OAAQ,OAAQA,EAAE,OAAQ,OAAQ,EACzC,CAAE,IAAK,SAAU,OAAQA,EAAE,SAAU,SAAU,EAC/C,CAAE,IAAK,MAAO,OAAQA,EAAE,MAAO,MAAO,EACtC,CAAE,IAAK,YAAa,OAAQA,EAAE,YAAa,aAAc,EACzD,CAAE,IAAK,eAAgB,OAAQA,EAAE,aAAc,eAAgB,EAChE,CAEKK,EAAWC,AAAAA,GAAAA,EAAAA,OAAAA,AAAAA,EAAQ,IAErBT,AAAAA,CAAAA,GACI,IAAI,AAACU,IACL,GAAM,CAAEF,SAAAA,CAAQ,CAAE,CAAGE,EACfC,EAAMC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAeF,GAiB3B,OAhBoCF,EAAS,GAAG,CAAC,AAACK,IAChD,IAAMC,EAAqBb,GAA6B,IAAIY,E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