Skip to content

Commit

Permalink
Add outpatient register and referral note forms (#21)
Browse files Browse the repository at this point in the history
* Add outpatient registration form

* Add outpatient register and referral note forms

* Adds an empty line at the end of the files

* Edits constants and corrects type

* Add validations in the OPD Register

* Adds conditional validations and BMI calculations

* Adds empty line at the end of the json in outpatient register

* Adds more concepts in both forms

* Fixes conflicts and rebase issues
  • Loading branch information
Irenyak1 authored Nov 4, 2022
1 parent 8a6c026 commit 6b8f199
Show file tree
Hide file tree
Showing 8 changed files with 2,779 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ export const CHILD_REGISTER_ENCOUNTER_TYPE = "";
//maternity
export const ADMISSION_DATE = "cb9b223e-a09c-4f8a-b34d-a0934a2af04a";
export const DELIVERY_TYPE = "dcc3ac63-30ab-102d-86b0-7a5022ba4115";

// opd
export const OUTPATIENT_DEPARTMENT_ENCOUNTER_TYPE =
"ee4780f5-b5eb-423b-932f-00b5879df5ab";
export const REFERRAL_NOTE_ENCOUNTER_TYPE =
"e0e4780f5-b5eb-423b-932f-00b5879df5ab";
17 changes: 14 additions & 3 deletions src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const opdDashboardMeta = {
slot: "opd-dashboard-slot",
config: { columns: 1, type: "grid" },
title: "Outpatient Department",
slotName: "opd-dashboard-slot",
};

export const familyHealthDashboardMeta = {
Expand Down Expand Up @@ -42,7 +41,19 @@ export const pncDashboardMeta = {
export const ancDashboardMeta = {
slot: "anc-dashboard-slot",
config: { columns: 1, type: "grid" },
title: "Antenatal",
title: "Antenatal"
}

export const outpatientDashboardMeta = {
title: "Outpatient Register",
slot: "outpatient-dashboard-slot1",
config: { columns: 1, type: "grid" },
};

export const referralNoteDashboardMeta = {
title: "Referral Note",
slot: "referral-note-dashboard-slot",
config: { columns: 1, type: "grid" },
};

export const maternityMeta = {
Expand Down
11 changes: 10 additions & 1 deletion src/forms/forms-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import eid_followup from "./family-health-services/mch-services/HMIS-ACP-015-Exp
import integrated_postnatal_register from "./family-health-services/mch-services/integrated-postnatal-register-form.json";
import integrated_maternity_register from "./family-health-services/mch-services/integrated-maternity-register.json";
import child_health_register from "./family-health-services/HIMS-EPI-007-childHealthRegister.json";

import outpatient_register from "./opd/HMIS-OPD-002-OutpatientRegister.json";
import referral_note from "./opd/HMIS-OPD-003-ReferralNote.json";
export default {
uganda_emr_cacx: {
cacx_registration: {
Expand Down Expand Up @@ -42,4 +43,12 @@ export default {
"1.0": child_health_register,
},
},
uganda_emr_opd: {
outpatient_register: {
"1.0": outpatient_register,
},
referral_note: {
"1.0": referral_note,
},
},
};
Loading

0 comments on commit 6b8f199

Please sign in to comment.