Skip to content

Commit

Permalink
type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skks1212 committed Jun 24, 2024
1 parent b6b4def commit 543b579
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Components/Facility/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export interface ConsultationModel {
is_readmission?: boolean;
medico_legal_case?: boolean;
investigation?: InvestigationType[];
has_consents?: boolean;
}

export interface PatientStatsModel {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ export const PatientManager = () => {
</span>
</span>
)}
{patient.has_consents || (
{patient.last_consultation?.has_consents || (
<span className="relative inline-flex">
<Chip
size="small"
Expand Down
2 changes: 0 additions & 2 deletions src/Components/Patient/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ export interface PatientModel {
// ABDM related
abha_number?: string;
abha_number_object?: AbhaObject;

has_consents?: boolean;
}

export interface SampleTestModel {
Expand Down

0 comments on commit 543b579

Please sign in to comment.