Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSY audit report: operative care #159

Open
wants to merge 10 commits into
base: feat/csy-reports-refactor
Choose a base branch
from
123 changes: 107 additions & 16 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-09-17T14:21:36.444Z\n"
"PO-Revision-Date: 2024-09-17T14:21:36.444Z\n"
"POT-Creation-Date: 2024-09-25T12:32:54.534Z\n"
"PO-Revision-Date: 2024-09-25T12:32:54.534Z\n"

msgid "<No value>"
msgstr ""
Expand Down Expand Up @@ -68,16 +68,6 @@ msgid ""
"does not match the auto-calculated"
msgstr ""

msgid ""
"Module 1 totals with missing sum or sum that does not match the "
"auto-calculated"
msgstr ""

msgid ""
"Module 1 (Subnational single entry) totals with missing sum or sum that "
"does not match the auto-calculated"
msgstr ""

msgid "Metadata Admin Report"
msgstr ""

Expand Down Expand Up @@ -132,7 +122,6 @@ msgstr ""
msgid "Username"
msgstr ""

msgid "Template Groups"
msgid "Template Groups"
msgstr ""

Expand Down Expand Up @@ -222,6 +211,43 @@ msgid ""
"= not done"
msgstr ""

msgid "CSY Audit Filters - Operative Care"
msgstr ""

msgid "Mortality (operative and 24hr) among low-risk patients (ASA score 1-2) "
msgstr ""

msgid "Mortality (operative and 24hr) in patients with 0 comorbidities "
msgstr ""

msgid "Mortality (operative and 24hr) in patients who undergo C-section ​"
msgstr ""

msgid "Number of prior facilities is >1 and case urgency is Emergent"
msgstr ""

msgid "All cases where the Safe Surgery checklist was not performed"
msgstr ""

msgid "All cases of OR/OT mortality"
msgstr ""

msgid "Emergent case and time to OR/OT > 6 hours (admission time-operative time)"
msgstr ""

msgid ""
"All cases of mortality where the category of surgical or anesthesia "
"provider is not a specialist"
msgstr ""

msgid "All cases without pulse oximetry used"
msgstr ""

msgid ""
"Any intra-operative complications in patients with ASA 1-2 or 0 "
"co-morbidities"
msgstr ""

msgid "CSY Audit Filters - Trauma Care"
msgstr ""

Expand Down Expand Up @@ -464,9 +490,6 @@ msgstr ""
msgid "Select File"
msgstr ""

msgid "Select File"
msgstr ""

msgid "Version has been successfully patched"
msgstr ""

Expand Down Expand Up @@ -876,3 +899,71 @@ msgstr ""
msgctxt "Facility Dispo = Morgue or Died"
msgid "ETA_EU Dispo = Morgue or Died or ETA"
msgstr ""

msgctxt "ASA Functional Status Score == ASA 1 or ASA 2"
msgid ""
"(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || "
"CSY_OP_Disposition 24 Hours After Surgery == Deceased) && CSY_OP"
msgstr ""

msgctxt ""
"Disposition 24 Hours After Surgery == Deceased) && Number of Major Medical "
"Comorbidities == 0"
msgid "(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || CSY_OP"
msgstr ""

msgctxt "SurgicalIntervention 5 == Caesarean Section )"
msgid ""
"(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || "
"CSY_OP_Disposition 24 Hours After Surgery == Deceased) && "
"(CSY_OP_SurgicalIntervention == Caesarean Section || "
"CSY_OP_SurgicalIntervention 2 == Caesarean Section || "
"CSY_OP_SurgicalIntervention 3 == Caesarean Section || "
"CSY_OP_SurgicalIntervention 4 == Caesarean Section || CSY_OP"
msgstr ""

msgctxt "Urgency of Surgery == Acute emergency, needed within 6 hours (Emergent)"
msgid "ETA_Facility Transfers > 1 && CSY_OP"
msgstr ""

msgctxt "Safe Surgery Check List Used == No"
msgid "CSY_OP"
msgstr ""

msgctxt "Disposition on Leaving Operating Theatre == Deceased"
msgid "CSY_OP"
msgstr ""

msgctxt ""
"Urgency of Surgery == Acute emergency, needed within 6 hours (Emergent) && "
"(Arrival Date and Time - Date and Time of Operating Theatre Arrival > 6 "
"hours)"
msgid "CSY_OP"
msgstr ""

msgctxt ""
"Category of Surgical Provider 3 ≠ Surgeon with Specialty in Surgery "
"Performed or Primary Anaesthesia type ≠ Specialist Anaesthesia Physician))"
msgid ""
"(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || "
"CSY_OP_Disposition 24 Hours After Surgery == Deceased) && ((CSY_OP_Category "
"of Surgical Provider ≠ Surgeon with Specialty in Surgery Performed or "
"Primary Anaesthesia type ≠ Specialist Anaesthesia Physician) || "
"(CSY_OP_Category of Surgical Provider 2 ≠ Surgeon with Specialty in Surgery "
"Performed or Primary Anaesthesia type ≠ Specialist Anaesthesia Physician) "
"|| (CSY_OP"
msgstr ""

msgctxt "Monitoring Used Intra-operatively 5 ≠ Pulse oximeter "
msgid ""
"CSY_OP_Monitoring Used Intra-operatively ≠ Pulse oximeter && "
"CSY_OP_Monitoring Used Intra-operatively 2 ≠ Pulse oximeter && "
"CSY_OP_Monitoring Used Intra-operatively 3 ≠ Pulse oximeter && "
"CSY_OP_Monitoring Used Intra-operatively 4 ≠ Pulse oximeter && CSY_OP"
msgstr ""

msgctxt "Major Medical Comorbidities == 0)"
msgid ""
"If CSY_OP_Intra-operative complication has value && (CSY_OP_ASA Functional "
"Status Score == ASA 1 or ASA 2 || ETA"
msgstr ""
124 changes: 108 additions & 16 deletions i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2024-09-17T14:37:32.167Z\n"
"POT-Creation-Date: 2024-09-25T12:27:30.865Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -68,16 +68,6 @@ msgid ""
"not match the auto-calculated"
msgstr ""

msgid ""
"Module 1 totals with missing sum or sum that does not match the auto-"
"calculated"
msgstr ""

msgid ""
"Module 1 (Subnational single entry) totals with missing sum or sum that does "
"not match the auto-calculated"
msgstr ""

msgid "Metadata Admin Report"
msgstr ""

Expand Down Expand Up @@ -132,7 +122,6 @@ msgstr ""
msgid "Username"
msgstr ""

msgid "Template Groups"
msgid "Template Groups"
msgstr ""

Expand Down Expand Up @@ -222,6 +211,44 @@ msgid ""
"not done"
msgstr ""

msgid "CSY Audit Filters - Operative Care"
msgstr ""

msgid "Mortality (operative and 24hr) among low-risk patients (ASA score 1-2) "
msgstr ""

msgid "Mortality (operative and 24hr) in patients with 0 comorbidities "
msgstr ""

msgid "Mortality (operative and 24hr) in patients who undergo C-section ​"
msgstr ""

msgid "Number of prior facilities is >1 and case urgency is Emergent"
msgstr ""

msgid "All cases where the Safe Surgery checklist was not performed"
msgstr ""

msgid "All cases of OR/OT mortality"
msgstr ""

msgid ""
"Emergent case and time to OR/OT > 6 hours (admission time-operative time)"
msgstr ""

msgid ""
"All cases of mortality where the category of surgical or anesthesia provider "
"is not a specialist"
msgstr ""

msgid "All cases without pulse oximetry used"
msgstr ""

msgid ""
"Any intra-operative complications in patients with ASA 1-2 or 0 co-"
"morbidities"
msgstr ""

msgid "CSY Audit Filters - Trauma Care"
msgstr ""

Expand Down Expand Up @@ -465,9 +492,6 @@ msgstr ""
msgid "Select File"
msgstr ""

msgid "Select File"
msgstr ""

msgid "Version has been successfully patched"
msgstr ""

Expand Down Expand Up @@ -814,7 +838,6 @@ msgstr ""

msgid "Occupation"
msgstr ""
msgstr ""

msgid "Practising"
msgstr ""
Expand Down Expand Up @@ -879,6 +902,75 @@ msgctxt "Facility Dispo = Morgue or Died"
msgid "ETA_EU Dispo = Morgue or Died or ETA"
msgstr ""

msgctxt "ASA Functional Status Score == ASA 1 or ASA 2"
msgid ""
"(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || "
"CSY_OP_Disposition 24 Hours After Surgery == Deceased) && CSY_OP"
msgstr ""

msgctxt ""
"Disposition 24 Hours After Surgery == Deceased) && Number of Major Medical "
"Comorbidities == 0"
msgid "(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || CSY_OP"
msgstr ""

msgctxt "SurgicalIntervention 5 == Caesarean Section )"
msgid ""
"(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || "
"CSY_OP_Disposition 24 Hours After Surgery == Deceased) && "
"(CSY_OP_SurgicalIntervention == Caesarean Section || "
"CSY_OP_SurgicalIntervention 2 == Caesarean Section || "
"CSY_OP_SurgicalIntervention 3 == Caesarean Section || "
"CSY_OP_SurgicalIntervention 4 == Caesarean Section || CSY_OP"
msgstr ""

msgctxt ""
"Urgency of Surgery == Acute emergency, needed within 6 hours (Emergent)"
msgid "ETA_Facility Transfers > 1 && CSY_OP"
msgstr ""

msgctxt "Safe Surgery Check List Used == No"
msgid "CSY_OP"
msgstr ""

msgctxt "Disposition on Leaving Operating Theatre == Deceased"
msgid "CSY_OP"
msgstr ""

msgctxt ""
"Urgency of Surgery == Acute emergency, needed within 6 hours (Emergent) && "
"(Arrival Date and Time - Date and Time of Operating Theatre Arrival > 6 "
"hours)"
msgid "CSY_OP"
msgstr ""

msgctxt ""
"Category of Surgical Provider 3 ≠ Surgeon with Specialty in Surgery "
"Performed or Primary Anaesthesia type ≠ Specialist Anaesthesia Physician))"
msgid ""
"(CSY_OP_Disposition on Leaving Operating Theatre == Deceased || "
"CSY_OP_Disposition 24 Hours After Surgery == Deceased) && ((CSY_OP_Category "
"of Surgical Provider ≠ Surgeon with Specialty in Surgery Performed or "
"Primary Anaesthesia type ≠ Specialist Anaesthesia Physician) || "
"(CSY_OP_Category of Surgical Provider 2 ≠ Surgeon with Specialty in Surgery "
"Performed or Primary Anaesthesia type ≠ Specialist Anaesthesia Physician) || "
"(CSY_OP"
msgstr ""

msgctxt "Monitoring Used Intra-operatively 5 ≠ Pulse oximeter "
msgid ""
"CSY_OP_Monitoring Used Intra-operatively ≠ Pulse oximeter && "
"CSY_OP_Monitoring Used Intra-operatively 2 ≠ Pulse oximeter && "
"CSY_OP_Monitoring Used Intra-operatively 3 ≠ Pulse oximeter && "
"CSY_OP_Monitoring Used Intra-operatively 4 ≠ Pulse oximeter && CSY_OP"
msgstr ""

msgctxt "Major Medical Comorbidities == 0)"
msgid ""
"If CSY_OP_Intra-operative complication has value && (CSY_OP_ASA Functional "
"Status Score == ASA 1 or ASA 2 || ETA"
msgstr ""

#~ msgid "Add"
#~ msgstr "Añadir"

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
"two-factor-monitoring-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn two-factor-monitoring-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-audit-emergency-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_emergency && react-scripts build && yarn run csy-audit-emergency-manifest && cp -r i18n icon.png build",
"csy-audit-emergency-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn csy-audit-emergency-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-audit-operative-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_operative && react-scripts build && yarn run csy-audit-operative-manifest && cp -r i18n icon.png build",
"csy-audit-operative-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn csy-audit-operative-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-audit-trauma-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_trauma && react-scripts build && yarn run csy-audit-trauma-manifest && cp -r i18n icon.png build",
"csy-audit-trauma-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn csy-audit-trauma-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-summary-mortality-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_summary_mortality && react-scripts build && yarn run csy-summary-mortality-manifest && cp -r i18n icon.png build",
Expand Down Expand Up @@ -94,6 +96,7 @@
"authorities-monitoring-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_authorities_monitoring",
"two-factor-monitoring-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_twofactor_monitoring",
"csy-audit-emergency-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_emergency",
"csy-audit-operative-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_operative",
"csy-audit-trauma-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_trauma",
"csy-summary-mortality-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_summary_mortality",
"csy-summary-patient-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_summary_patient",
Expand Down Expand Up @@ -123,6 +126,7 @@
"two-factor-monitoring": "1.0.0",
"authorities-monitoring": "1.0.0",
"csy-audit-emergency": "1.0.0",
"csy-audit-operative": "1.0.0",
"csy-audit-trauma": "1.0.0",
"csy-summary-mortality": "1.0.0",
"csy-summary-patient": "1.0.0",
Expand Down Expand Up @@ -208,4 +212,4 @@
}
}
}
}
}
6 changes: 6 additions & 0 deletions src/compositionRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { GetSubscriptionUseCase } from "./domain/reports/mal-data-subscription/u
import { GetMonitoringUseCase as GetSubscriptionMonitoringUseCase } from "./domain/reports/mal-data-subscription/usecases/GetMonitoringUseCase";
import { SaveMonitoringUseCase as SaveSubscriptionMonitoringUseCase } from "./domain/reports/mal-data-subscription/usecases/SaveMonitoringUseCase";
import { AuditItemD2Repository as CSYAuditEmergencyD2Repository } from "./data/reports/csy-audit-emergency/AuditItemD2Repository";
import { AuditItemD2Repository as CSYAuditOperativeD2Repository } from "./data/reports/csy-audit-operative/AuditItemD2Repository";
import { GetAuditEmergencyUseCase } from "./domain/reports/csy-audit-emergency/usecases/GetAuditEmergencyUseCase";
import { SaveAuditEmergencyUseCase } from "./domain/reports/csy-audit-emergency/usecases/SaveAuditEmergencyUseCase";
import { GetAuditTraumaUseCase } from "./domain/reports/csy-audit-trauma/usecases/GetAuditTraumaUseCase";
Expand Down Expand Up @@ -104,10 +105,12 @@ import { GetMonitoringTwoFactorColumnsUseCase } from "./domain/reports/twofactor
import { SaveMonitoringTwoFactorUseCase } from "./domain/reports/twofactor-monitoring/usecases/SaveMonitoringTwoFactorUseCase";
import { MonitoringTwoFactorD2Repository } from "./data/reports/twofactor-monitoring/MonitoringTwoFactorD2Repository";
import { GetOrgUnitsWithChildrenUseCase } from "./domain/reports/glass-data-submission/usecases/GetOrgUnitsWithChildrenUseCase";
import { GetAuditOperativeUseCase } from "./domain/reports/csy-audit-operative/usecases/GetAuditOperativeUseCase";

export function getCompositionRoot(api: D2Api) {
const configRepository = new Dhis2ConfigRepository(api, getReportType());
const csyAuditEmergencyRepository = new CSYAuditEmergencyD2Repository(api);
const csyAuditOperativeRepository = new CSYAuditOperativeD2Repository(api);
const csyAuditTraumaRepository = new CSYAuditTraumaD2Repository(api);
const dataCommentsRepository = new NHWADataCommentsDefaultRepository(api);
const dataApprovalRepository = new NHWADataApprovalDefaultRepository(api);
Expand Down Expand Up @@ -174,6 +177,9 @@ export function getCompositionRoot(api: D2Api) {
get: new GetAuditEmergencyUseCase(csyAuditEmergencyRepository),
save: new SaveAuditEmergencyUseCase(csyAuditEmergencyRepository),
}),
auditOperative: getExecute({
get: new GetAuditOperativeUseCase(csyAuditOperativeRepository),
}),
auditTrauma: getExecute({
get: new GetAuditTraumaUseCase(csyAuditTraumaRepository),
save: new SaveAuditTraumaUseCase(csyAuditTraumaRepository),
Expand Down
Loading