Merge branch 'feat/page-cleaning' into feat/mcu-order
This commit is contained in:
@@ -55,23 +55,29 @@ const defaultKeys: Record<string, any> = {
|
|||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
|
earlyNurseryAssessment: {
|
||||||
|
id: 'early-nursery-assessment',
|
||||||
|
title: 'Pengkajian Awal Keperawatan',
|
||||||
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
earlyMedicalAssessment: {
|
earlyMedicalAssessment: {
|
||||||
id: 'early-medical-assessment',
|
id: 'early-medical-assessment',
|
||||||
title: 'Pengkajian Awal Medis',
|
title: 'Pengkajian Awal Medis',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
rehabMedicalAssessment: {
|
earlyMedicalRehabAssessment: {
|
||||||
id: 'rehab-medical-assessment',
|
id: 'rehab-medical-assessment',
|
||||||
title: 'Pengkajian Awal Medis Rehabilitasi Medis',
|
title: 'Pengkajian Awal Medis Rehabilitasi Medis',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory'],
|
||||||
unit: 'rehab',
|
unit: 'rehab',
|
||||||
afterId: 'early-medical-assessment',
|
afterId: 'early-medical-assessment',
|
||||||
},
|
},
|
||||||
functionAssessment: {
|
functionAssessment: {
|
||||||
id: 'function-assessment',
|
id: 'function-assessment',
|
||||||
title: 'Asesmen Fungsi',
|
title: 'Asesmen Fungsi',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory'],
|
||||||
unit: 'rehab',
|
unit: 'rehab',
|
||||||
afterId: 'rehab-medical-assessment',
|
afterId: 'rehab-medical-assessment',
|
||||||
},
|
},
|
||||||
@@ -102,16 +108,22 @@ const defaultKeys: Record<string, any> = {
|
|||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
consent: {
|
generalConsent: {
|
||||||
id: 'consent',
|
id: 'general-consent',
|
||||||
title: 'General Consent',
|
title: 'General Consent',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
patientNote: {
|
patientAmbNote: {
|
||||||
id: 'patient-note',
|
id: 'patient-amb-note',
|
||||||
title: 'CPRJ',
|
title: 'CPRJ',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
|
patientDevNote: {
|
||||||
|
id: 'patient-dev-note',
|
||||||
|
title: 'CPP',
|
||||||
|
classCode: ['inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
prescription: {
|
prescription: {
|
||||||
@@ -120,38 +132,38 @@ const defaultKeys: Record<string, any> = {
|
|||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
device: {
|
deviceOrder: {
|
||||||
id: 'device-order',
|
id: 'device-order',
|
||||||
title: 'Order Alkes',
|
title: 'Order Alkes',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
mcuRadiology: {
|
radiologyOrder: {
|
||||||
id: 'mcu-radiology',
|
id: 'radiology-order',
|
||||||
title: 'Order Radiologi',
|
title: 'Order Radiologi',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
mcuLabPc: {
|
cpLabOrder: {
|
||||||
id: 'mcu-lab-pc',
|
id: 'cp-lab-order',
|
||||||
title: 'Order Lab PK',
|
title: 'Order Lab PK',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
mcuLabMicro: {
|
microLabOrder: {
|
||||||
id: 'mcu-lab-micro',
|
id: 'micro-lab-order',
|
||||||
title: 'Order Lab Mikro',
|
title: 'Order Lab Mikro',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
mcuLabPa: {
|
paLabOrder: {
|
||||||
id: 'mcu-lab-pa',
|
id: 'pa-lab-order',
|
||||||
title: 'Order Lab PA',
|
title: 'Order Lab PA',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
medicalAction: {
|
actionRoomOrder: {
|
||||||
id: 'medical-action',
|
id: 'action-room-order',
|
||||||
title: 'Order Ruang Tindakan',
|
title: 'Order Ruang Tindakan',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
@@ -162,24 +174,48 @@ const defaultKeys: Record<string, any> = {
|
|||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
|
actionReport: {
|
||||||
|
id: 'action-report',
|
||||||
|
title: 'Laporan Tindakan',
|
||||||
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
|
surgeryReport: {
|
||||||
|
id: 'surgery-report',
|
||||||
|
title: 'Laporan Operasi',
|
||||||
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
|
vacsinData: {
|
||||||
|
id: 'vacsin-data',
|
||||||
|
title: 'Data Vaksin',
|
||||||
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
consultation: {
|
consultation: {
|
||||||
id: 'consultation',
|
id: 'consultation',
|
||||||
title: 'Konsultasi',
|
title: 'Konsultasi',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
resume: {
|
controlLetter: {
|
||||||
id: 'resume',
|
id: 'control-letter',
|
||||||
title: 'Resume',
|
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
|
||||||
unit: 'all',
|
|
||||||
},
|
|
||||||
control: {
|
|
||||||
id: 'control',
|
|
||||||
title: 'Surat Kontrol',
|
title: 'Surat Kontrol',
|
||||||
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
unit: 'all',
|
unit: 'all',
|
||||||
},
|
},
|
||||||
|
inpatientLetter: {
|
||||||
|
id: 'inpatient-letter',
|
||||||
|
title: 'SPRI',
|
||||||
|
classCode: ['ambulatory', 'emergency'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
|
refBack: {
|
||||||
|
id: 'reference-back',
|
||||||
|
title: 'PRB',
|
||||||
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
screening: {
|
screening: {
|
||||||
id: 'screening',
|
id: 'screening',
|
||||||
title: 'Skrinning MPP',
|
title: 'Skrinning MPP',
|
||||||
@@ -190,7 +226,19 @@ const defaultKeys: Record<string, any> = {
|
|||||||
id: 'supporting-document',
|
id: 'supporting-document',
|
||||||
title: 'Upload Dokumen Pendukung',
|
title: 'Upload Dokumen Pendukung',
|
||||||
classCode: ['ambulatory'],
|
classCode: ['ambulatory'],
|
||||||
unit: 'rehab',
|
unit: 'all',
|
||||||
|
},
|
||||||
|
resume: {
|
||||||
|
id: 'resume',
|
||||||
|
title: 'Resume',
|
||||||
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
|
unit: 'all',
|
||||||
|
},
|
||||||
|
ambResume: {
|
||||||
|
id: 'amb-resume',
|
||||||
|
title: 'Resume Medis Rawat Jalan',
|
||||||
|
classCode: ['ambulatory', 'emergency', 'inpatient'],
|
||||||
|
unit: 'all',
|
||||||
},
|
},
|
||||||
priceList: {
|
priceList: {
|
||||||
id: 'price-list',
|
id: 'price-list',
|
||||||
@@ -244,12 +292,12 @@ export function injectComponents(id: string | number, data: EncounterListData, m
|
|||||||
label: currentKeys.earlyMedicalAssessment['title'],
|
label: currentKeys.earlyMedicalAssessment['title'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (currentKeys?.rehabMedicalAssessment) {
|
if (currentKeys?.earlyMedicalRehabAssessment) {
|
||||||
currentKeys.rehabMedicalAssessment['component'] = EarlyMedicalRehabListAsync
|
currentKeys.earlyMedicalRehabAssessment['component'] = EarlyMedicalRehabListAsync
|
||||||
currentKeys.rehabMedicalAssessment['props'] = {
|
currentKeys.earlyMedicalRehabAssessment['props'] = {
|
||||||
encounter: data?.encounter,
|
encounter: data?.encounter,
|
||||||
type: 'early-rehab',
|
type: 'early-rehab',
|
||||||
label: currentKeys.rehabMedicalAssessment['title'],
|
label: currentKeys.earlyMedicalRehabAssessment['title'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (currentKeys?.functionAssessment) {
|
if (currentKeys?.functionAssessment) {
|
||||||
@@ -287,44 +335,44 @@ export function injectComponents(id: string | number, data: EncounterListData, m
|
|||||||
currentKeys.educationAssessment['component'] = null
|
currentKeys.educationAssessment['component'] = null
|
||||||
currentKeys.educationAssessment['props'] = { encounter_id: id }
|
currentKeys.educationAssessment['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.consent) {
|
if (currentKeys?.generalConsent) {
|
||||||
currentKeys.consent['component'] = GeneralConsentListAsync
|
currentKeys.generalConsent['component'] = GeneralConsentListAsync
|
||||||
currentKeys.consent['props'] = { encounter_id: id }
|
currentKeys.generalConsent['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.patientNote) {
|
if (currentKeys?.patientAmbNote) {
|
||||||
currentKeys.patientNote['component'] = CprjAsync
|
currentKeys.patientAmbNote['component'] = CprjAsync
|
||||||
currentKeys.patientNote['props'] = { encounter_id: id }
|
currentKeys.patientAmbNote['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.prescription) {
|
if (currentKeys?.prescription) {
|
||||||
currentKeys.prescription['component'] = PrescriptionAsync
|
currentKeys.prescription['component'] = PrescriptionAsync
|
||||||
currentKeys.prescription['props'] = { encounter_id: id }
|
currentKeys.prescription['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.device) {
|
if (currentKeys?.deviceOrder) {
|
||||||
currentKeys.device['component'] = DeviceOrderAsync
|
currentKeys.deviceOrder['component'] = DeviceOrderAsync
|
||||||
currentKeys.device['props'] = { encounter_id: id }
|
currentKeys.deviceOrder['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.mcuRadiology) {
|
if (currentKeys?.radiologyOrder) {
|
||||||
currentKeys.mcuRadiology['component'] = RadiologyAsync
|
currentKeys.radiologyOrder['component'] = RadiologyAsync
|
||||||
currentKeys.mcuRadiology['props'] = { encounter_id: id }
|
currentKeys.radiologyOrder['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.mcuLabPc) {
|
if (currentKeys?.cpLabOrder) {
|
||||||
currentKeys.mcuLabPc['component'] = CpLabOrderAsync
|
currentKeys.cpLabOrder['component'] = CpLabOrderAsync
|
||||||
currentKeys.mcuLabPc['props'] = { encounter_id: id }
|
currentKeys.cpLabOrder['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.mcuLabMicro) {
|
if (currentKeys?.microLabOrder) {
|
||||||
// TODO: add component for mcuLabMicro
|
// TODO: add component for microLabOrder
|
||||||
currentKeys.mcuLabMicro['component'] = null
|
currentKeys.microLabOrder['component'] = null
|
||||||
currentKeys.mcuLabMicro['props'] = { encounter_id: id }
|
currentKeys.microLabOrder['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.mcuLabPa) {
|
if (currentKeys?.paLabOrder) {
|
||||||
// TODO: add component for mcuLabPa
|
// TODO: add component for paLabOrder
|
||||||
currentKeys.mcuLabPa['component'] = null
|
currentKeys.paLabOrder['component'] = null
|
||||||
currentKeys.mcuLabPa['props'] = { encounter_id: id }
|
currentKeys.paLabOrder['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.medicalAction) {
|
if (currentKeys?.actionRoomOrder) {
|
||||||
// TODO: add component for medicalAction
|
// TODO: add component for actionRoomOrder
|
||||||
currentKeys.medicalAction['component'] = null
|
currentKeys.actionRoomOrder['component'] = null
|
||||||
currentKeys.medicalAction['props'] = { encounter_id: id }
|
currentKeys.actionRoomOrder['props'] = { encounter_id: id }
|
||||||
}
|
}
|
||||||
if (currentKeys?.mcuResult) {
|
if (currentKeys?.mcuResult) {
|
||||||
// TODO: add component for mcuResult
|
// TODO: add component for mcuResult
|
||||||
|
|||||||
Reference in New Issue
Block a user