feat: Implement VClaim SEP integration with new components and handlers for encounter entry and supporting documents.
This commit is contained in:
No files matched your search
@@ -10,6 +10,7 @@ type SmallDetailDto = Encounter
|
|||||||
const action = defineAsyncComponent(() => import('./dropdown-action.vue'))
|
const action = defineAsyncComponent(() => import('./dropdown-action.vue'))
|
||||||
const statusBadge = defineAsyncComponent(() => import('./status-badge.vue'))
|
const statusBadge = defineAsyncComponent(() => import('./status-badge.vue'))
|
||||||
const vclaimSepInfo = defineAsyncComponent(() => import('./vclaim-sep-info.vue'))
|
const vclaimSepInfo = defineAsyncComponent(() => import('./vclaim-sep-info.vue'))
|
||||||
|
const vclaimSepNone = defineAsyncComponent(() => import('./vclaim-sep-none.vue'))
|
||||||
|
|
||||||
export const defaultConfig: Config = {
|
export const defaultConfig: Config = {
|
||||||
cols: [{}, {}, {}, { width: 160 }, {}, { width: 70 }, {}, { width: 50 }],
|
cols: [{}, {}, {}, { width: 160 }, {}, { width: 70 }, {}, { width: 50 }],
|
||||||
@@ -197,7 +198,10 @@ export const ambulatoryConfig: Config = {
|
|||||||
components: {
|
components: {
|
||||||
sep(rec: any) {
|
sep(rec: any) {
|
||||||
if (rec?.paymentMethod_code !== 'jkn') {
|
if (rec?.paymentMethod_code !== 'jkn') {
|
||||||
return {} as RecComponent
|
return {
|
||||||
|
rec: rec as object,
|
||||||
|
component: vclaimSepNone,
|
||||||
|
} as RecComponent
|
||||||
}
|
}
|
||||||
const res: RecComponent = {
|
const res: RecComponent = {
|
||||||
rec: rec as object,
|
rec: rec as object,
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const props = defineProps<{
|
||||||
|
rec: any
|
||||||
|
}>()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="flex flex-col gap-2">
|
||||||
|
<span>Tidak ada</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -601,7 +601,6 @@ export function useEncounterEntry(props: {
|
|||||||
await uploadAttachmentCustom({
|
await uploadAttachmentCustom({
|
||||||
id: isEditMode.value && formValues.sepFileReview ? formValues.sepFileReview.id : null,
|
id: isEditMode.value && formValues.sepFileReview ? formValues.sepFileReview.id : null,
|
||||||
file: sepFile.value,
|
file: sepFile.value,
|
||||||
name: 'image-vclaim-sep',
|
|
||||||
refId: encounterId,
|
refId: encounterId,
|
||||||
entityTypeCode: 'encounter',
|
entityTypeCode: 'encounter',
|
||||||
type: 'vclaim-sep',
|
type: 'vclaim-sep',
|
||||||
@@ -611,7 +610,6 @@ export function useEncounterEntry(props: {
|
|||||||
await uploadAttachmentCustom({
|
await uploadAttachmentCustom({
|
||||||
id: isEditMode.value && formValues.sippFileReview ? formValues.sippFileReview.id : null,
|
id: isEditMode.value && formValues.sippFileReview ? formValues.sippFileReview.id : null,
|
||||||
file: sippFile.value,
|
file: sippFile.value,
|
||||||
name: 'image-vclaim-sipp',
|
|
||||||
refId: encounterId,
|
refId: encounterId,
|
||||||
entityTypeCode: 'encounter',
|
entityTypeCode: 'encounter',
|
||||||
type: 'vclaim-sipp',
|
type: 'vclaim-sipp',
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ export async function uploadAttachmentCustom(payload: any) {
|
|||||||
const { user } = useUserStore()
|
const { user } = useUserStore()
|
||||||
|
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('name', payload.name)
|
if (!payload.id && payload.name) {
|
||||||
|
formData.append('name', payload.name)
|
||||||
|
}
|
||||||
formData.append('content', payload.file)
|
formData.append('content', payload.file)
|
||||||
formData.append('entityType_code', payload.entityTypeCode)
|
formData.append('entityType_code', payload.entityTypeCode)
|
||||||
formData.append('type_code', payload.type)
|
formData.append('type_code', payload.type)
|
||||||
|
|||||||
Reference in New Issue
Block a user