refactor(patient): restructure patient data handling to use nested properties

Move address, contact and relative data into nested properties of Person model
Update preview component to access data through person object
Remove separate props for addresses, contacts and relatives
This commit is contained in:
Khafid Prayoga
2025-10-10 10:30:00 +07:00
parent bd4a269fad
commit a5d5e8acd1
3 changed files with 40 additions and 17 deletions
@@ -75,9 +75,6 @@ function handleAction(type: string) {
/>
<AppPatientPreview
:person="patient.person"
:person-addresses="patient.personAddresses"
:person-contacts="patient.personContacts"
:person-relatives="patient.personRelatives"
@click="handleAction"
/>
</template>