Skip to content

Commit

Permalink
Form name update to correspond to back end forms
Browse files Browse the repository at this point in the history
  • Loading branch information
abdisha committed Aug 16, 2023
1 parent 20aa29c commit d1a859c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/pages/post-exposure/post-exposure.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ const columns = [
header: "Actions",
getValue: (encounter) => [
{
form: { name: "positive_tracking", package: "eth_hiv" },
form: { name: "Exposed Person Information", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "View Positive Tracking",
mode: "view",
},
{
form: { name: "positive_tracking", package: "eth_hiv" },
form: { name: "Exposed Person Information", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "Edit Positive Tracking",
Expand All @@ -63,7 +63,7 @@ const PostExposureProphylaxis: React.FC<{ patientUuid: string }> = ({
<EncounterList
patientUuid={patientUuid}
encounterType={POST_EXPOSURE_ENCOUNTER_TYPE}
formList={[{ name: "post_exposure" }]}
formList={[{ name: "Exposed Person Information" }]}
columns={columns}
description="Post Exposure Tracking List"
headerTitle="Post Exposure"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ const columns = [
header: "Actions",
getValue: (encounter) => [
{
form: { name: "pre_exposure_followup", package: "eth_hiv" },
form: { name: "Pre Exposure Followup", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "View Pre Exposure Followup",
mode: "view",
},
{
form: { name: "pre_exposure_followup", package: "eth_hiv" },
form: { name: "Pre Exposure Followup", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "Edit Pre Exposure Followup",
Expand All @@ -64,7 +64,7 @@ const PreExposureFollowupList: React.FC<{ patientUuid: string }> = ({
<EncounterList
patientUuid={patientUuid}
encounterType={PRE_EXPOSURE_FOLLOWUP_ENCOUNTER_TYPE}
formList={[{ name: "pre_exposure_followup" }]}
formList={[{ name: "Pre Exposure Followup" }]}
columns={columns}
description="Pre Exposure Followup Tracking List"
headerTitle="Pre Exposure Followup"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ const columns = [
header: "Actions",
getValue: (encounter) => [
{
form: { name: "pre_exposure_screening", package: "eth_hiv" },
form: { name: "Prep", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "View Pre Exposure Screening",
mode: "view",
},
{
form: { name: "pre_exposure_screening", package: "eth_hiv" },
form: { name: "Prep", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "Edit Pre Exposure Screening",
Expand All @@ -63,7 +63,7 @@ const PreExposureScreeningList: React.FC<{ patientUuid: string }> = ({
<EncounterList
patientUuid={patientUuid}
encounterType={PRE_EXPOSURE_SCREENING_ENCOUNTER_TYPE}
formList={[{ name: "pre_exposure_screening" }]}
formList={[{ name: "Prep" }]}
columns={columns}
description="Pre Exposure Screening Tracking List"
headerTitle="Pre Exposure Screening"
Expand Down
6 changes: 3 additions & 3 deletions src/pages/program-management/tabs/phdp.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ const columns = [
header: "Actions",
getValue: (encounter) => [
{
form: { name: "phdp", package: "eth_hiv" },
form: { name: "POC PHDP Form", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "View PHDP",
mode: "view",
},
{
form: { name: "phdp", package: "eth_hiv" },
form: { name: "POC PHDP Form", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "Edit PHDP",
Expand All @@ -54,7 +54,7 @@ const PHDPList: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
<EncounterList
patientUuid={patientUuid}
encounterType={PHDP_ENCOUNTER_TYPE}
formList={[{ name: "phdp" }]}
formList={[{ name: "POC PHDP Form" }]}
columns={columns}
description="PHDP List"
headerTitle="PHDP"
Expand Down
6 changes: 3 additions & 3 deletions src/pages/visits/visits-summary.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ const VisitsSummary: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
header: "Actions",
getValue: (encounter) => [
{
form: { name: "followup", package: "eth_hiv" },
form: { name: "POC Followup Form", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "View Followup",
mode: "view",
},
{
form: { name: "followup", package: "eth_hiv" },
form: { name: "POC Followup Form", package: "eth_hiv" },
encounterUuid: encounter.uuid,
intent: "*",
label: "Edit Followup",
Expand All @@ -93,7 +93,7 @@ const VisitsSummary: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
<EncounterList
patientUuid={patientUuid}
encounterType={FOLLOWUP_ENCOUNTER_TYPE}
formList={[{ name: "followup" }]}
formList={[{ name: "POC Followup Form" }]}
columns={columns}
description="Followup Encounter List"
headerTitle="Followup"
Expand Down

0 comments on commit d1a859c

Please sign in to comment.