Skip to content

Commit

Permalink
Merge pull request #2059 from opensrp/2014-add-preg-outcome-question
Browse files Browse the repository at this point in the history
Add pregnancy outcome birth place question
  • Loading branch information
allan-on authored May 18, 2022
2 parents c99c88f + 637d239 commit 8beddd4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions opensrp-chw/src/crvs/assets/json.form/anc_pregnancy_outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,22 @@
}
}
},
{
"key": "birth_place_name",
"openmrs_entity_parent": "",
"openmrs_entity": "concept",
"openmrs_entity_id": "",
"type": "edit_text",
"hint": "{{anc_pregnancy_outcome.step1.birth_place_name.hint}}",
"edit_type": "name",
"relevance": {
"rules-engine": {
"ex-rules": {
"rules-file": "anc_pregnancy_outcome_relevance.yml"
}
}
}
},
{
"key": "baby_label",
"type": "label",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ condition: "step1_preg_outcome == 'Live birth' || step1_preg_outcome == 'Stillbi
actions:
- "isRelevant = true"

---
name: step1_birth_place_name
description: birth_place_name relevance
priority: 1
condition: "step1_preg_outcome == 'Live birth' || step1_preg_outcome == 'Stillbirth'"
actions:
- "isRelevant = true"

---
name: step1_baby_label
description: baby_label relevance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ anc_pregnancy_outcome.step1.delivery_date.v_required.err = Please enter date the
anc_pregnancy_outcome.step1.stillbirth_classification.values[0] = Intrapartum stillbirth (Fresh)
anc_pregnancy_outcome.step1.delivery_place.values[2] = Other
anc_pregnancy_outcome.step1.delivery_place.hint = Place of delivery
anc_pregnancy_outcome.step1.birth_place_name.hint = Name of birth place
anc_pregnancy_outcome.step1.title = Pregnancy Outcome
anc_pregnancy_outcome.step1.type_of_pregnancy.values[1] = Twin
anc_pregnancy_outcome.step1.preg_outcome.values[3] = Other
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ anc_pregnancy_outcome.step1.delivery_date.v_required.err = Entrez la date
anc_pregnancy_outcome.step1.stillbirth_classification.values[0] = Mortinaissance intra-partum (fraîche)
anc_pregnancy_outcome.step1.delivery_place.values[2] = Autre
anc_pregnancy_outcome.step1.delivery_place.hint = Lieu d'accouchement
anc_pregnancy_outcome.step1.birth_place_name.hint = Nom du lieu de naissance
anc_pregnancy_outcome.step1.title = Résultat de la grossesse
anc_pregnancy_outcome.step1.type_of_pregnancy.values[1] = Jumeaux
anc_pregnancy_outcome.step1.preg_outcome.values[3] = Autre
Expand Down

0 comments on commit 8beddd4

Please sign in to comment.