this is my hierarchy
state → district → district_hospital → community_health_center → primary_health_center → health_and_wellness_center → village
I will login at village level as an ASHA worker, the requirement is to show all the primary_health_center to be shown in the dropdown so that they can be referred to that health Center from the above hierarchy.
The contact_types that we created are defined below:
“contact_types”: [
{
“id”: “state”,
“name_key”: “contact.type.state”,
“group_key”: “contact.type.state.plural”,
“create_key”: “contact.type.state.new”,
“edit_key”: “contact.type.place.edit”,
“icon”: “medic-district-hospital”,
“create_form”: “form:contact:state:create”,
“edit_form”: “form:contact:state:edit”
},
{
“id”: “district”,
“name_key”: “contact.type.district”,
“group_key”: “contact.type.district.plural”,
“create_key”: “contact.type.district.new”,
“edit_key”: “contact.type.place.edit”,
“parents”: [“state”],
“icon”: “medic-district-hospital”,
“create_form”: “form:contact:district:create”,
“edit_form”: “form:contact:district:edit”
},
{
“id”: “district_hospital”,
“name_key”: “contact.type.district_hospital”,
“group_key”: “contact.type.district_hospital.plural”,
“create_key”: “contact.type.district_hospital.new”,
“edit_key”: “contact.type.place.edit”,
“parents”: [“district”],
“icon”: “medic-district-hospital”,
“create_form”: “form:contact:district_hospital:create”,
“edit_form”: “form:contact:district_hospital:edit”
},
{
“id”: “community_health_center”,
“name_key”: “contact.type.community_health_center”,
“group_key”: “contact.type.community_health_center.plural”,
“create_key”: “contact.type.community_health_center.new”,
“edit_key”: “contact.type.place.edit”,
“parents”: [“district_hospital”],
“icon”: “medic-health-center”,
“create_form”: “form:contact:community_health_center:create”,
“edit_form”: “form:contact:community_health_center:edit”
},
{
“id”: “primary_health_center”,
“name_key”: “contact.type.primary_health_center”,
“group_key”: “contact.type.primary_health_center.plural”,
“create_key”: “contact.type.primary_health_center.new”,
“edit_key”: “contact.type.place.edit”,
“parents”: [“community_health_center”],
“icon”: “medic-health-center”,
“create_form”: “form:contact:primary_health_center:create”,
“edit_form”: “form:contact:primary_health_center:edit”
},
{
“id”: “health_and_wellness_center”,
“name_key”: “contact.type.health_and_wellness_center”,
“group_key”: “contact.type.health_and_wellness_center.plural”,
“create_key”: “contact.type.health_and_wellness_center.new”,
“edit_key”: “contact.type.place.edit”,
“parents”: [“primary_health_center”],
“icon”: “medic-clinic”,
“create_form”: “form:contact:health_and_wellness_center:create”,
“edit_form”: “form:contact:health_and_wellness_center:edit”
},
{
“id”: “village”,
“name_key”: “contact.type.village”,
“group_key”: “contact.type.village.plural”,
“create_key”: “contact.type.village.new”,
“edit_key”: “contact.type.place.edit”,
“parents”: [“health_and_wellness_center”],
“icon”: “medic-clinic”,
“create_form”: “form:contact:village:create”,
“edit_form”: “form:contact:village:edit”
},
{
“id”: “person”,
“name_key”: “contact.type.person”,
“group_key”: “contact.type.person.plural”,
“create_key”: “contact.type.person.new”,
“edit_key”: “contact.type.person.edit”,
“primary_contact_key”: “clinic.field.contact”,
“parents”: [
“village”,
“health_and_wellness_center”,
“primary_health_center”,
“community_health_center”
],
“icon”: “medic-person”,
“create_form”: “form:contact:person:create”,
“edit_form”: “form:contact:person:edit”,
“person”: true
},
{
“id”: “patient”,
“name_key”: “contact.type.patient”,
“group_key”: “contact.type.patient.plural”,
“create_key”: “contact.type.patient.new”,
“edit_key”: “contact.type.patient.edit”,
“parents”: [
“village”,
“health_and_wellness_center”,
“primary_health_center”,
“community_health_center”
],
“icon”: “medic-person”,
“create_form”: “form:contact:patient:create”,
“edit_form”: “form:contact:patient:edit”,
“person”: true
}
]
**In excel we are referring to the primary health center as: select-contact type-primary_health_center
**
@antony can you please help us out to figure above issue.