Skip to content

Commit

Permalink
Fix hyperlink on empty table list (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 authored Jan 30, 2024
1 parent 6aa732e commit d8cab5c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions packages/esm-tb-app/src/tb-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@ import { getConfig } from '@openmrs/esm-framework';
import { moduleName } from '.';

export async function getTbRegimen(encounter: any, tBEnrollmentType: string) {
const config = await getConfig(moduleName);
const regimen =
tBEnrollmentType === config.obsConcepts.dsTBEnrollment
? config.obsConcepts.dSregimen
: config.obsConcepts.dRregimen;
const config = await getConfig(moduleName);
const regimen =
tBEnrollmentType === config.obsConcepts.dsTBEnrollment
? config.obsConcepts.dSregimen
: config.obsConcepts.dRregimen;

return getObsFromEncounter(encounter, regimen);
return getObsFromEncounter(encounter, regimen);
}

export async function getTbTreatmentStartDate(encounter: any, tBEnrollmentType: string){
const config = await getConfig(moduleName);
const tBTreatmentStartDateConcept =
tBEnrollmentType === config.obsConcepts.dsTBEnrollment
? config.obsConcepts.dSTreatmentStartDate
: config.obsConcepts.dRTreatmentStartDate;
export async function getTbTreatmentStartDate(encounter: any, tBEnrollmentType: string) {
const config = await getConfig(moduleName);
const tBTreatmentStartDateConcept =
tBEnrollmentType === config.obsConcepts.dsTBEnrollment
? config.obsConcepts.dSTreatmentStartDate
: config.obsConcepts.dRTreatmentStartDate;

return getObsFromEncounter(encounter, tBTreatmentStartDateConcept, true);
return getObsFromEncounter(encounter, tBTreatmentStartDateConcept, true);
}

export async function getTbTreatmentId(encounter: any, tBEnrollmentType: string){
const config = await getConfig(moduleName);
const treatmentId =
tBEnrollmentType === config.obsConcepts.dsTBEnrollment
? config.obsConcepts.dSTreatmentId
: config.obsConcepts.dRTreatmentId;
return getObsFromEncounter(encounter, treatmentId);
}
export async function getTbTreatmentId(encounter: any, tBEnrollmentType: string) {
const config = await getConfig(moduleName);
const treatmentId =
tBEnrollmentType === config.obsConcepts.dsTBEnrollment
? config.obsConcepts.dSTreatmentId
: config.obsConcepts.dRTreatmentId;
return getObsFromEncounter(encounter, treatmentId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const TptEnrolmentList: React.FC<TptEnrolmentListProps> = ({ patientUuid }) => {
patientUuid={patientUuid}
encounterType={encounterTypes.tptCaseEnrollment}
formList={[
{ name: formNames.TptOutcomeFormName, excludedIntents: ['*'] },
{ name: formNames.TptCaseEnrolmentFormName },
{ name: formNames.TptOutcomeFormName, excludedIntents: ['*'] },
]}
columns={columns}
description={headerTitle}
Expand Down

0 comments on commit d8cab5c

Please sign in to comment.