-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hiv care and treatment summary tabs (#3)
- Loading branch information
1 parent
0e8e11b
commit 9aecc67
Showing
15 changed files
with
405 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"menuId": "allergies", | ||
"cardTitle": "Allergies", | ||
"columns": [ | ||
{ | ||
"id": "encounterDate", | ||
"isDate": true, | ||
"title": "Encounter Date", | ||
"encounterTypes": [ | ||
"allergyEncounterType" | ||
], | ||
"concept": "encounterDate" | ||
}, | ||
{ | ||
"id": "suspectedDrug", | ||
"title": "Suspected Drug", | ||
"encounterTypes": [ | ||
"allergyEncounterType" | ||
], | ||
"concept": "suspectedDrugConcept" | ||
}, | ||
|
||
{ | ||
"id": "drugEffect", | ||
"title": "Drug Effect", | ||
"encounterTypes": [ | ||
"allergyEncounterType" | ||
], | ||
"concept": "drugEffectConcept" | ||
}, | ||
{ | ||
"id": "actionTaken", | ||
"title": "Action Taken", | ||
"encounterTypes": [ | ||
"allergyEncounterType" | ||
], | ||
"concept": "actionTakenConcept" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from "react"; | ||
import { | ||
getSummaryCardProps, | ||
SummaryCard, | ||
} from "@ohri/openmrs-esm-ohri-commons-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
import allergiesCongif from "./allergies-config.json"; | ||
import { useConfig } from "@openmrs/esm-framework"; | ||
|
||
const Allergies: React.FC<{ patientUuid: string }> = ({ patientUuid }) => { | ||
const { t } = useTranslation(); | ||
const config = useConfig(); | ||
const allergyCardColumns = getSummaryCardProps(allergiesCongif, config); | ||
|
||
const title = t("allergies", "Allergies"); | ||
|
||
return ( | ||
<SummaryCard | ||
patientUuid={patientUuid} | ||
headerTitle={title} | ||
columns={allergyCardColumns} | ||
/> | ||
); | ||
}; | ||
|
||
export default Allergies; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"menuId": "hospitalization", | ||
"cardTitle": "Hospitalization", | ||
"columns": [ | ||
{ | ||
"id": "encounterDate", | ||
"isDate": true, | ||
"title": "Encounter Date", | ||
"encounterTypes": [ | ||
"hospitalizationEncounterType" | ||
], | ||
"concept": "encounterDate" | ||
}, | ||
{ | ||
"id": "reasonForHospitalization", | ||
"title": "Reason For Hospitalization", | ||
"encounterTypes": [ | ||
"hospitalizationEncounterType" | ||
], | ||
"concept": "reasonForHospitalizationConcept" | ||
}, | ||
{ | ||
"id": "duration", | ||
"title": "Duration", | ||
"encounterTypes": [ | ||
"hospitalizationEncounterType" | ||
], | ||
"concept": "durationConcept" | ||
}, | ||
{ | ||
"id": "durationUnit", | ||
"title": "Duration Unit", | ||
"encounterTypes": [ | ||
"hospitalizationEncounterType" | ||
], | ||
"concept": "durationUnitConcept" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
import { | ||
getSummaryCardProps, | ||
SummaryCard, | ||
} from "@ohri/openmrs-esm-ohri-commons-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
import hospitalizationConfig from "./hospitalization-config.json"; | ||
import { useConfig } from "@openmrs/esm-framework"; | ||
|
||
const Hospitalization: React.FC<{ patientUuid: string }> = ({ | ||
patientUuid, | ||
}) => { | ||
const { t } = useTranslation(); | ||
const config = useConfig(); | ||
const allergyCardColumns = getSummaryCardProps(hospitalizationConfig, config); | ||
const title = t("hospitalization", "Hospitalization"); | ||
|
||
return ( | ||
<SummaryCard | ||
patientUuid={patientUuid} | ||
headerTitle={title} | ||
columns={allergyCardColumns} | ||
/> | ||
); | ||
}; | ||
|
||
export default Hospitalization; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"menuId": "opportunisticInfections", | ||
"cardTitle": "Opportunistic Infections", | ||
"columns": [ | ||
{ | ||
"id": "encounterDate", | ||
"isDate": true, | ||
"title": "Encounter Date", | ||
"encounterTypes": [ | ||
"imageEncounterType" | ||
], | ||
"concept": "encounterDate" | ||
}, | ||
{ | ||
"id": "imageOrdered", | ||
"title": "Image ordered", | ||
"encounterTypes": [ | ||
"imageEncounterType" | ||
], | ||
"concept": "imageOrderedConcept" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import { | ||
getSummaryCardProps, | ||
SummaryCard, | ||
} from "@ohri/openmrs-esm-ohri-commons-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
import imageConfig from "./image-config.json"; | ||
import { useConfig } from "@openmrs/esm-framework"; | ||
|
||
const Image: React.FC<{ patientUuid: string }> = ({ patientUuid }) => { | ||
const { t } = useTranslation(); | ||
const config = useConfig(); | ||
const imageCardColumns = getSummaryCardProps(imageConfig, config); | ||
const title = t("image", "Image"); | ||
|
||
return ( | ||
<SummaryCard | ||
patientUuid={patientUuid} | ||
headerTitle={title} | ||
columns={imageCardColumns} | ||
/> | ||
); | ||
}; | ||
|
||
export default Image; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"menuId": "opportunisticInfections", | ||
"cardTitle": "Opportunistic Infections", | ||
"columns": [ | ||
{ | ||
"id": "encounterDate", | ||
"isDate": true, | ||
"title": "Encounter Date", | ||
"encounterTypes": [ | ||
"oiEncounterType" | ||
], | ||
"concept": "encounterDate" | ||
}, | ||
{ | ||
"id": "chronicCareDx", | ||
"title": "Suspected Drug", | ||
"encounterTypes": [ | ||
"oiEncounterType" | ||
], | ||
"concept": "chronicCareDxConcept" | ||
}, | ||
{ | ||
"id": "whoStage", | ||
"title": "WHO Stage", | ||
"encounterTypes": [ | ||
"oiEncounterType" | ||
], | ||
"concept": "whoStageConcept" | ||
}, | ||
{ | ||
"id": "criteria", | ||
"title": "Criteria", | ||
"encounterTypes": [ | ||
"oiEncounterType" | ||
], | ||
"concept": "criteriaConcept" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import { | ||
getSummaryCardProps, | ||
SummaryCard, | ||
} from "@ohri/openmrs-esm-ohri-commons-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
import { useConfig } from "@openmrs/esm-framework"; | ||
import oiConfig from "./oi-config.json"; | ||
|
||
const OI: React.FC<{ patientUuid: string }> = ({ patientUuid }) => { | ||
const { t } = useTranslation(); | ||
const config = useConfig(); | ||
const oiCardColumns = getSummaryCardProps(oiConfig, config); | ||
const title = t("opportunisticInfections", "Opportunistic Infections"); | ||
|
||
return ( | ||
<SummaryCard | ||
patientUuid={patientUuid} | ||
headerTitle={title} | ||
columns={oiCardColumns} | ||
/> | ||
); | ||
}; | ||
|
||
export default OI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.