feat: add diagnosis name handling and update SEP title in integration pages
This commit is contained in:
@@ -104,6 +104,7 @@ const titleLetterDate = computed(() =>
|
||||
)
|
||||
const mode = props.mode !== undefined ? props.mode : 'add'
|
||||
const attendingDoctorName = ref('')
|
||||
const diagnosisName = ref('')
|
||||
const isAccidentally = computed(() => accident.value === '1' || accident.value === '2')
|
||||
const isProvinceSelected = computed(() => accidentProvince.value !== '')
|
||||
const isCitySelected = computed(() => accidentCity.value !== '')
|
||||
@@ -157,8 +158,8 @@ const onInitialized = (objects: any) => {
|
||||
if (objects?.sepType === 'external') {
|
||||
admissionType.value = '1'
|
||||
}
|
||||
if (objects?.initialDiagnosis) {
|
||||
initialDiagnosis.value = objects?.initialDiagnosis
|
||||
if (objects?.diagnosisName) {
|
||||
diagnosisName.value = objects?.diagnosisName
|
||||
}
|
||||
// Patient data
|
||||
if (objects?.serviceType) {
|
||||
@@ -655,7 +656,7 @@ onMounted(() => {
|
||||
/>
|
||||
<Input
|
||||
v-else
|
||||
v-model="initialDiagnosis"
|
||||
v-model="diagnosisName"
|
||||
v-bind="initialDiagnosisAttrs"
|
||||
:disabled="isLoading || isReadonly"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user