dev: hotfix temp

This commit is contained in:
2025-12-08 12:31:52 +07:00
parent d78e0b1ae7
commit 5db181fc16
12 changed files with 7893 additions and 6317 deletions
+51 -60
View File
@@ -133,30 +133,27 @@ const isExcluded = (key: string) => props.excludeFields?.includes(key)
<div class="my-2">
<h1 class="font-semibold">Penanggung Jawab</h1>
</div>
<Block :col-count="2" :cell-flex="false">
<Cell>
<Label dynamic>Nama Penanggung Jawab</Label>
<Field>
<Input
v-model="responsibleName"
v-bind="responsibleNameAttrs"
/>
</Field>
</Cell>
<div class="my-2 rounded-md border border-slate-300 p-4">
<Block :colCount="2">
<Cell>
<Label dynamic>Nama Penanggung Jawab</Label>
<Field>
<Input
v-model="responsibleName"
v-bind="responsibleNameAttrs"
/>
</Field>
</Cell>
<Cell>
<Label dynamic>No. Hp Penanggung Jawab</Label>
<Field>
<Input
v-model="responsiblePhone"
v-bind="responsiblePhoneAttrs"
/>
</Field>
</Cell>
</Block>
</div>
<Cell>
<Label dynamic>No. Hp Penanggung Jawab</Label>
<Field>
<Input
v-model="responsiblePhone"
v-bind="responsiblePhoneAttrs"
/>
</Field>
</Cell>
</Block>
<Separator class="mt-8" />
@@ -164,20 +161,17 @@ const isExcluded = (key: string) => props.excludeFields?.includes(key)
<div class="my-2">
<h1 class="font-semibold">Pemberi Informasi</h1>
</div>
<div class="my-2 rounded-md border border-slate-300 p-4">
<Block>
<Cell>
<Label dynamic>Informant</Label>
<Field>
<Input
v-model="informant"
v-bind="informantAttrs"
/>
</Field>
</Cell>
</Block>
</div>
<Block :col-count="2" :cell-flex="false">
<Cell>
<Label dynamic>Informant</Label>
<Field>
<Input
v-model="informant"
v-bind="informantAttrs"
/>
</Field>
</Cell>
</Block>
<Separator class="mt-8" />
@@ -185,30 +179,27 @@ const isExcluded = (key: string) => props.excludeFields?.includes(key)
<div class="my-2">
<h1 class="font-semibold">Saksi</h1>
</div>
<Block :col-count="2" :cell-flex="false">
<Cell>
<Label dynamic>Saksi 1</Label>
<Field>
<Input
v-model="witness1"
v-bind="witness1Attrs"
/>
</Field>
</Cell>
<div class="my-2 rounded-md border border-slate-300 p-4">
<Block :colCount="2">
<Cell>
<Label dynamic>Saksi 1</Label>
<Field>
<Input
v-model="witness1"
v-bind="witness1Attrs"
/>
</Field>
</Cell>
<Cell>
<Label dynamic>Saksi 2</Label>
<Field>
<Input
v-model="witness2"
v-bind="witness2Attrs"
/>
</Field>
</Cell>
</Block>
</div>
<Cell>
<Label dynamic>Saksi 2</Label>
<Field>
<Input
v-model="witness2"
v-bind="witness2Attrs"
/>
</Field>
</Cell>
</Block>
</div>
</form>
</template>
+19 -6
View File
@@ -13,20 +13,33 @@ const props = defineProps<{
Order {{ data?.createdAt?.substring(0, 10) }} - {{ data?.status_code }}
</div>
<div class="max-w-[1000px]">
<DE.Block mode="preview" :col-count=5 class="!mb-3">
<DE.Block :col-count=5 class="!mb-3" :cell-flex="false">
<DE.Cell :col-span="2">
<DE.Label class="font-semibold">DPJP</DE.Label>
<DE.Label>DPJP</DE.Label>
<DE.Field>
{{ data?.doctor?.employee?.person?.name || '.........' }}
<Input :value="data?.doctor?.employee?.person?.name || '.........'" readonly />
</DE.Field>
</DE.Cell>
<DE.Cell></DE.Cell>
<DE.Cell :col-span="2">
<DE.Label class="font-semibold">PPDS</DE.Label>
<DE.Label>PPDS</DE.Label>
<DE.Field>
...........
<Input :value="'.........'" readonly />
</DE.Field>
</DE.Cell>
<DE.Cell :col-span="2">
<DE.Label>Pemeriksaan Ke</DE.Label>
<DE.Field>
<Input readonly />
</DE.Field>
</DE.Cell>
<DE.Cell></DE.Cell>
<DE.Cell :col-span="2">
<DE.Label>Temperatur Aksiler</DE.Label>
<DE.Field>
<Input />
</DE.Field>
</DE.Cell>
</DE.Block>
</div>
</template>
</template>
+2 -2
View File
@@ -142,10 +142,10 @@ async function getPatientList() {
try {
const params: any = { includes: includesParams, ...filterParams.value }
if (props.classCode) {
params.class_code = props.classCode
params['class-code'] = props.classCode
}
if (props.subClassCode) {
params.sub_class_code = props.subClassCode
params['sub-class-code'] = props.subClassCode
}
const result = await getEncounterList(params)
if (result.success) {
+3 -3
View File
@@ -108,8 +108,8 @@ const protocolRows = [
{ value: 'prescription', label: 'Order Obat', component: Prescription, props: { encounter_id: data.value.id } },
{ value: 'device-order', label: 'Order Alkes', component: DeviceOrder, props: { encounter_id: data.value.id } },
{ value: 'device', label: 'Order Alkes' },
{ value: 'mcu-radiology', label: 'Order Radiologi', component: Radiology, props: { encounter_id: data.id } },
{ value: 'mcu-lab-cp', label: 'Order Lab PK', component: CpLabOrder, props: { encounter_id: data.id } },
{ value: 'mcu-radiology', label: 'Order Radiologi', component: Radiology, props: { encounter_id: data.value.id } },
{ value: 'mcu-lab-cp', label: 'Order Lab PK', component: CpLabOrder, props: { encounter_id: data.value.id } },
{ value: 'consent', label: 'General Consent', component: GeneralConsentList, props: { encounter: data } },
{
value: 'initial-nursing-study',
@@ -219,4 +219,4 @@ async function getData() {
:can-delete="canDelete"
/>
</div>
</template>
</template>
@@ -117,7 +117,6 @@ async function actionHandler(type: string) {
})
}
console.log('data', result)
const resp = await handleActionSave(
{
...payload.value,
@@ -131,6 +131,7 @@ async function getItems() {
<Detail :data="data" />
<div class="font-semibold pt-4 text-sm mb-1">Daftar Item</div>
<ItemListEntry
:data="items"
@requestItem="requestItem"/>
@@ -132,9 +132,20 @@ async function getItems() {
<Detail :data="data" />
<div class="mb-5">
<div>Keterangan Klinis</div>
<Textarea />
</div>
<ItemListEntry
:data="items"
@requestItem="requestItem"/>
<div class="my-5">
<div>Catatan Pemeriksaan DSA</div>
<Textarea />
</div>
<Separator class="my-5" />
<div class="w-full flex justify-center">
+27 -10
View File
@@ -94,12 +94,23 @@ const defaultKeys: Record<string, any> = {
unit: 'rehab',
afterId: 'rehab-medical-assessment',
},
therapyProtocol: {
id: 'therapy-protocol',
classCode: ['ambulatory'],
title: 'Protokol Terapi',
unit: 'rehab',
afterId: 'function-assessment',
// therapyProtocol: {
// id: 'therapy-protocol',
// classCode: ['ambulatory'],
// title: 'Protokol Terapi',
// unit: 'rehab',
// afterId: 'function-assessment',
initialNursingStudy: {
id: 'initial-nursing-study',
title: 'Kajian Awal Keperawatan',
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
fkr: {
id: 'fkr',
title: 'FKR',
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
chemotherapyProtocol: {
id: 'chemotherapy-protocol',
@@ -265,12 +276,18 @@ const defaultKeys: Record<string, any> = {
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
initialNursingStudy: {
id: 'initial-nursing-study',
title: 'Kajian Awal Keperawatan',
// initialNursingStudy: {
// id: 'initial-nursing-study',
// title: 'Kajian Awal Keperawatan',
// classCode: ['ambulatory', 'emergency', 'inpatient'],
// unit: 'all',
// },
summaryMedic: {
id: 'summary-medic',
title: 'Profil Ringkasan Medis',
classCode: ['ambulatory', 'emergency', 'inpatient'],
unit: 'all',
},
}
}
export function getItemsByClassCode(classCode: string, items: EncounterItem[]) {
@@ -41,9 +41,7 @@ const canRemove = getPageAccess(roleAccess, 'delete')
<div v-if="hasAccess">
<Content
class-code="inpatient"
sub-class-code="vk"
:can-create="canCreate"
:can-delete="canRemove"
sub-class-code="reg"
/>
</div>
<Error
+7677 -6185
View File
File diff suppressed because it is too large Load Diff
+1 -47
View File
@@ -23,27 +23,6 @@
}
]
},
{
"title": "IGD",
"icon": "i-lucide-zap",
"children": [
{
"title": "Triase",
"icon": "i-lucide-stethoscope",
"link": "/emergency/triage"
},
{
"title": "Kunjungan",
"icon": "i-lucide-building-2",
"link": "/emergency/encounter"
},
{
"title": "Konsultasi",
"icon": "i-lucide-building-2",
"link": "/emergency/consultation"
}
]
},
{
"title": "Rawat Inap",
"icon": "i-lucide-building-2",
@@ -68,32 +47,7 @@
{
"title": "Kemoterapi",
"icon": "i-lucide-droplets",
"link": "/outpation-action/chemotherapy"
},
{
"title": "Hemofilia",
"icon": "i-lucide-droplet-off",
"link": "/outpation-action/hemophilia"
}
]
},
{
"heading": "Ruang Tindakan Anak",
"items": [
{
"title": "Thalasemi",
"icon": "i-lucide-baby",
"link": "/children-action/thalasemia"
},
{
"title": "Echocardiography",
"icon": "i-lucide-baby",
"link": "/children-action/echocardiography"
},
{
"title": "Spirometri",
"icon": "i-lucide-baby",
"link": "/children-action/spirometry"
"link": "/chemotherapy"
}
]
}
+100
View File
@@ -0,0 +1,100 @@
[
{
"heading": "Menu Utama",
"items": [
{
"title": "Dashboard",
"icon": "i-lucide-home",
"link": "/"
},
{
"title": "Rawat Jalan",
"icon": "i-lucide-stethoscope",
"children": [
{
"title": "Kunjungan",
"icon": "i-lucide-stethoscope",
"link": "/ambulatory/encounter"
},
{
"title": "Konsultasi",
"icon": "i-lucide-building-2",
"link": "/ambulatory/consultation"
}
]
},
{
"title": "IGD",
"icon": "i-lucide-zap",
"children": [
{
"title": "Triase",
"icon": "i-lucide-stethoscope",
"link": "/emergency/triage"
},
{
"title": "Kunjungan",
"icon": "i-lucide-building-2",
"link": "/emergency/encounter"
},
{
"title": "Konsultasi",
"icon": "i-lucide-building-2",
"link": "/emergency/consultation"
}
]
},
{
"title": "Rawat Inap",
"icon": "i-lucide-building-2",
"children": [
{
"title": "Kunjungan",
"icon": "i-lucide-building-2",
"link": "/inpatient/encounter"
},
{
"title": "Konsultasi",
"icon": "i-lucide-building-2",
"link": "/inpatient/consultation"
}
]
}
]
},
{
"heading": "Ruang Tindakan Rajal",
"items": [
{
"title": "Kemoterapi",
"icon": "i-lucide-droplets",
"link": "/chemotherapy"
},
{
"title": "Hemofilia",
"icon": "i-lucide-droplet-off",
"link": "/hemophilia"
}
]
},
{
"heading": "Ruang Tindakan Anak",
"items": [
{
"title": "Thalasemi",
"icon": "i-lucide-baby",
"link": "/thalasemia"
},
{
"title": "Echocardiography",
"icon": "i-lucide-baby",
"link": "/echocardiography"
},
{
"title": "Spirometri",
"icon": "i-lucide-baby",
"link": "/spirometry"
}
]
}
]