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

Validation 2.1 #34

Merged
merged 8 commits into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions openmrs/apps/clinical/extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,17 @@
"order": 13,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalConceptSetGroupObsertionsARTTreatment": {
"id": "bahmni.clinical.conceptSetGroup.observations.vitals",
"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations",
"type": "config",
"extensionParams": {
"default": true,
"conceptName": "ART Treatment And Interruptions Form"
},
"order": 14,
"requiredPrivilege": "app:clinical"
},
"bahmniClinicalConceptSetGroupObservationsSecondVitals": {
"id": "bahmni.clinical.conceptSetGroup.observations.secondVitals",
"extensionPointId": "org.bahmni.clinical.conceptSetGroup.observations",
Expand Down
18 changes: 16 additions & 2 deletions openmrs/apps/clinical/formConditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,22 @@ Bahmni.ConceptSet.FormConditions.rules = {
show:["Substitution Regimen (2nd Line Adults)"]
}
}
},

},
"AntiRetroviral Treatment" : function (formName , formFieldValues, patient){
if(patient.age < 15){
return{
show: ["Initial ART Regimen For Children"],
hide:["Initial ART Regimen (Adult)"]

}
}else {
return{
hide: ["Initial ART Regimen For Children"],
show:["Initial ART Regimen (Adult)"]

}
}
},
"Is there an immunization not Given?" : function (formName , formFieldValues){
var immunizationgiven = formFieldValues["Is there an immunization not Given?"];
if(immunizationgiven == true){
Expand Down