Skip to content

Commit

Permalink
feat: add patient vitalStatus and other properties to patient view
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Dec 2, 2023
1 parent e89fa84 commit ce8fa29
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/core/src/domains/patient/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type Patient = {
birthDate: string,
dateOfDeath?: string,
managingSite?: Coding,
vitalStatus?: Coding,
healthInsurance?: unknown // todo: type is not defined ?!
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,12 @@ export default defineNuxtComponent({
<div><strong><i class="fas fa-birthday-cake" /> Geburtstag</strong> {{ record.patient.birthDate }}</div>
</div>
<div class="col">
<template v-if="record.therapy">
<div><strong>Therapie</strong> {{ record.therapy.notes }}</div>
<template v-if="record.patient.managingSite">
<div><strong><i class="fas fa-hospital" /> Standort</strong> {{ record.patient.managingSite.display || record.patient.managingSite.code }}</div>
</template>
<template v-if="record.patient.vitalStatus">
<div><strong><i class="fas fa-heartbeat" /> VitalStatus</strong> {{ record.patient.vitalStatus.display || record.patient.vitalStatus.code }}</div>
</template>
<div>
<strong>HPO Terme</strong>
<template
v-for="(item, key) in record.hpoTerms"
:key="key"
>
<span class="badge bg-dark ms-1">{{ item.value.code }}</span>
</template>
</div>
</div>
</div>

Expand Down Expand Up @@ -67,9 +61,31 @@ export default defineNuxtComponent({
<span class="ms-1 badge bg-dark">{{ item.display }}</span>
</template>
</div>
<div><strong><i class="fas fa-heartbeat" /> Status</strong> {{ record.diagnosis.status.display }}</div>
<div><strong><i class="fas fa-spinner" /> Status</strong> {{ record.diagnosis.status.display }}</div>
</div>
</div>
</div>
<div class="mb-2">
<h6>
HPO
</h6>
<div class="col">
<div>
<strong><i class="fa fa-tags" /> Terme</strong>
<template
v-for="(item, key) in record.hpoTerms"
:key="key"
>
<span class="badge bg-dark ms-1">{{ item.value.display || item.value.code }}</span>
</template>
</div>
</div>
</div>
<div v-if="record.therapy">
<h6 class="mb-0">
Therapie
</h6>
<div>{{ record.therapy.notes }}</div>
</div>
</div>
</template>

0 comments on commit ce8fa29

Please sign in to comment.