Hi all, @darius and @mogoodrich
This is the follow up on an issue that I had left pending in ‘How to customise the Patient Registration page?’
We are using the "field/personAddressWithHierarchy"
widget successfully with the Address Hierachy module. However we just cannot seem to be able to add a free text field in the "contactInfo"
section.
There is no documentation on this and I could only find two examples:
- From PIH/openmrs-module-mirebalais provided by @mogoodrich, but this is done via the Java code and not a JSON configuration file.(1)
- From a test resource of openmrs/openmrs-module-registrationapp.
My latest trial is below but the free "houseNumber"
text field just doesn’t show up:
"legend": "Person.address",
"fields": [
{
"type": "personAddress",
"label": "registrationapp.patient.address.question",
"widget": {
"providerName": "registrationapp",
"fragmentId": "field/personAddressWithHierarchy",
"config": {
"manualFields": ["houseNumber"],
"fieldMappings": {"houseNumber": "obs.CIEL:161011"}
}
}
}
]
I am not sure what to do from there, any other tips would be greatly welcome! Thanks guys.
(1) I wanted to debug that file from PIH/openmrs-module-mirebalais to see what exact JSON is generated, but the project doesn’t build. It seems to refer to snapshot versions of various resources that are not (yet) on the public repo. After solving the Maven dependency issues and falling back to the nearest lower available versions I stumbled upon compilation erros upon mvn install
-ing.