From 08521842f4abb2e1cbe806fd3306748126f131cb Mon Sep 17 00:00:00 2001 From: qaziabubakar-vd Date: Mon, 27 Jun 2022 19:06:04 +0500 Subject: [PATCH] Make changes --- .../assets/json.form/birth_certification.json | 37 +++++++++---------- .../birth_certification_changed.json | 8 +--- .../assets/json.form/child_enrollment.json | 4 -- .../assets/json.form/death_certification.json | 13 +------ .../json.form/out_of_area_death_form.json | 9 +---- 5 files changed, 23 insertions(+), 48 deletions(-) diff --git a/opensrp-chw/src/crvs/assets/json.form/birth_certification.json b/opensrp-chw/src/crvs/assets/json.form/birth_certification.json index 091e55d300..bed6f32f47 100644 --- a/opensrp-chw/src/crvs/assets/json.form/birth_certification.json +++ b/opensrp-chw/src/crvs/assets/json.form/birth_certification.json @@ -128,6 +128,22 @@ } } }, + { + "key": "birth_cert_num", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "162052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "text", + "type": "label", + "text": "{{birth_certification.step1.birth_cert_num.hint}}", + "relevance": { + "rules-engine": { + "ex-rules": { + "rules-file": "birth_certification_relevance.yml" + } + } + } + }, { "key": "birth_cert_num_acte", "openmrs_entity_parent": "", @@ -208,26 +224,7 @@ } }, - { - "key": "birth_cert_num", - "openmrs_entity_parent": "", - "openmrs_entity": "concept", - "openmrs_entity_id": "162052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_data_type": "text", - "type": "edit_text", - "hint": "{{birth_certification.step1.birth_cert_num.hint}}", - "v_required": { - "value": "true", - "err": "{{birth_certification.step1.birth_cert_num.v_required.err}}" - }, - "relevance": { - "rules-engine": { - "ex-rules": { - "rules-file": "birth_certification_relevance.yml" - } - } - } - }, + { "key": "birth_notification", "openmrs_entity_parent": "", diff --git a/opensrp-chw/src/crvs/assets/json.form/birth_certification_changed.json b/opensrp-chw/src/crvs/assets/json.form/birth_certification_changed.json index 555c647c35..b7d2021a60 100644 --- a/opensrp-chw/src/crvs/assets/json.form/birth_certification_changed.json +++ b/opensrp-chw/src/crvs/assets/json.form/birth_certification_changed.json @@ -166,12 +166,8 @@ "openmrs_entity": "concept", "openmrs_entity_id": "162052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "openmrs_data_type": "text", - "type": "edit_text", - "hint": "{{birth_certification_changed.step1.birth_cert_num.hint}}", - "v_required": { - "value": "true", - "err": "{{birth_certification_changed.step1.birth_cert_num.v_required.err}}" - }, + "type": "label", + "text": "{{birth_certification_changed.step1.birth_cert_num.hint}}", "relevance": { "rules-engine": { "ex-rules": { diff --git a/opensrp-chw/src/crvs/assets/json.form/child_enrollment.json b/opensrp-chw/src/crvs/assets/json.form/child_enrollment.json index 4362dfd8e1..dab3194cc4 100644 --- a/opensrp-chw/src/crvs/assets/json.form/child_enrollment.json +++ b/opensrp-chw/src/crvs/assets/json.form/child_enrollment.json @@ -696,10 +696,6 @@ }, "min_date": "today-120y", "max_date": "today-10y", - "v_required": { - "value": true, - "err": "{{child_enrollment.step1.father_age_entered.v_required.error}}" - }, "relevance": { "rules-engine": { "ex-rules": { diff --git a/opensrp-chw/src/crvs/assets/json.form/death_certification.json b/opensrp-chw/src/crvs/assets/json.form/death_certification.json index ef346ae09d..845ed371a3 100644 --- a/opensrp-chw/src/crvs/assets/json.form/death_certification.json +++ b/opensrp-chw/src/crvs/assets/json.form/death_certification.json @@ -107,17 +107,8 @@ "openmrs_entity_parent": "", "openmrs_entity": "concept", "openmrs_entity_id": "deathCertificationNumber", - "label": "{{death_certification.step1.death_certificate_number.label}}", - "hint": "{{death_certification.step1.death_certificate_number.hint}}", - "type": "edit_text", - "v_numeric": { - "value": "true", - "err": "{{death_certification.step1.death_certificate_number.v_numeric.err}}" - }, - "v_required": { - "value": "true", - "err": "{{death_certification.step1.mandatory_field.v_required.err}}" - }, + "text": "{{death_certification.step1.death_certificate_number.hint}}", + "type": "label", "relevance": { "step1:received_death_certificate": { "type": "string", diff --git a/opensrp-chw/src/crvs/assets/json.form/out_of_area_death_form.json b/opensrp-chw/src/crvs/assets/json.form/out_of_area_death_form.json index 5a0ac5f52b..a01520689b 100644 --- a/opensrp-chw/src/crvs/assets/json.form/out_of_area_death_form.json +++ b/opensrp-chw/src/crvs/assets/json.form/out_of_area_death_form.json @@ -690,13 +690,8 @@ "openmrs_entity_parent": "", "openmrs_entity": "concept", "openmrs_entity_id": "deathCertificationNumber", - "label": "{{out_of_area_death_form.step1.death_certificate_number.label}}", - "hint": "{{out_of_area_death_form.step1.death_certificate_number.hint}}", - "type": "edit_text", - "v_numeric": { - "value": "true", - "err": "{{out_of_area_death_form.step1.death_certificate_number.v_numeric.err}}" - }, + "text": "{{out_of_area_death_form.step1.death_certificate_number.hint}}", + "type": "label", "relevance": { "step1:received_death_certificate": { "type": "string",