Skip to content

Commit

Permalink
BAH-3053|Kavitha|add config for pre-patient flow (#134)
Browse files Browse the repository at this point in the history
* BAH-3053|Kavitha|add config for pre-patient flow

* BAH-3053 | add locale key for pre-patient
  • Loading branch information
kavitha-sundararajan authored Apr 22, 2024
1 parent 3a64cad commit cc28573
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 6 deletions.
12 changes: 12 additions & 0 deletions masterdata/configuration/liquibase/liquibase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,16 @@
"org.openmrs.customdatatype.datatype.LongFreeTextDatatype", "org.openmrs.web.attribute.handler.LongFreeTextTextareaHandler", 0, 1, NOW(), 0, "6cd01df8-4418-4079-95bf-9716413dc8f5");
</sql>
</changeSet>
<changeSet id="RELATED_IDENTIFIER_ATTR_TYPE_202404181317" author="BAHMNI-CONFIG">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
select count(*) from person_attribute_type where name = 'confirmedPatient';
</sqlCheck>
</preConditions>
<comment>Add person_attribute_type 'confirmedPatient' to differentiate potential and actual patients</comment>
<sql>
INSERT INTO person_attribute_type (name, description, format, searchable, creator, date_created, retired, sort_weight, uuid)
VALUES ('confirmedPatient', 'confirmedPatient', 'java.lang.Boolean', '0', 1, curdate(), 0, 30, uuid());
</sql>
</changeSet>
</databaseChangeLog>
6 changes: 5 additions & 1 deletion openmrs/apps/adt/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@
"type": "conditionsList",
"displayOrder": 6
}
}}
}},
"filterOutAttributeForAllSearch": [{
"attrName": "confirmedPatient",
"attrValue": "false"
}]

}
}
4 changes: 4 additions & 0 deletions openmrs/apps/clinical/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
{ "locale" : "pt", "css": "offline-language-portuguese-brazil"}
]
},
"filterOutAttributeForAllSearch": [{
"attrName": "confirmedPatient",
"attrValue": "false"
}],
"diagnosisStatus": "Inactive",
"program": {
"patientInformation": {
Expand Down
8 changes: 7 additions & 1 deletion openmrs/apps/documentUpload/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
"description": "Bahmni patient search, lookup Page"
}
],
"contextModel": []
"contextModel": [],
"config": {
"filterOutAttributeForAllSearch": [{
"attrName": "confirmedPatient",
"attrValue": "false"
}]
}
}
4 changes: 4 additions & 0 deletions openmrs/apps/ipd/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"allowFutureDates": true
}
},
"filterOutAttributeForAllSearch": [{
"attrName": "confirmedPatient",
"attrValue": "false"
}],
"hideStartNewVisitPopUp": false,
"patientForwardUrl": "../bedmanagement/#/patient/{{patientUuid}}/visit/{{visitUuid}}/dashboard",
"dashboard": {
Expand Down
6 changes: 5 additions & 1 deletion openmrs/apps/orders/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"conceptNames": ["Radiology Notes"],
"numberOfVisits": 2,
"scope": "latest"
}
},
"filterOutAttributeForAllSearch": [{
"attrName": "confirmedPatient",
"attrValue": "false"
}]
}
}
6 changes: 5 additions & 1 deletion openmrs/apps/ot/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"dayViewEnd": "18:00",
"dayViewSplit": "60"
},
"startOfWeek": "Monday"
"startOfWeek": "Monday",
"filterOutAttributeForAllSearch": [{
"attrName": "confirmedPatient",
"attrValue": "false"
}]
}
}
8 changes: 7 additions & 1 deletion openmrs/apps/registration/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
},
"hidden": {
"attributes": [
"primaryContact"
"primaryContact",
"confirmedPatient"
]
},
"defaults": {
Expand Down Expand Up @@ -69,6 +70,11 @@
"showSaveConfirmDialog": false,
"showBirthTime": true,
"showCasteSameAsLastNameCheckbox": false,
"relatedIdentifierAttribute": {
"name": "confirmedPatient",
"hideOrDisable": "hide",
"hideOnValue": "true"
},
"printOptions": [
{
"translationKey": "REGISTRATION_PRINT_REG_CARD_LOCAL_KEY",
Expand Down
3 changes: 2 additions & 1 deletion openmrs/i18n/registration/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"REGISTRATION_INSTITUTE_ADDRESS": "Ganiyari, District - Bilaspur",
"FEE_INFORMATION_LOCALE_KEY": "Fee Information",
"NUTRITIONAL_VALUES_LOCALE_KEY": "Nutritional Values",
"REGISTRATION_PRINT_WITH_BARCODE": "Bar<u>c</u>ode Print"
"REGISTRATION_PRINT_WITH_BARCODE": "Bar<u>c</u>ode Print",
"RELATED_PATIENT_IDENTIFIER_LABEL": "Patient"
}

0 comments on commit cc28573

Please sign in to comment.