Creating Person Attributes properly for registration page and dashboard
Hi OpenMRS community,
Can anyone help with the reference registrationapp. i created attributes and added them to the code but it only shows up in the new patient registration page process not in patient dashboard. here is the code below:
{ “id”: “referenceapplication.registrationapp.myRegisterPat”, “instanceOf”: “registrationapp.registerPatient”, “label”: “Cadastrar Paciente”, “description”: “Criar uma ficha para paciente”, “extensions”: [ { “id”: “referenceapplication.registrationapp.registerPatient.homepageLink”, “extensionPointId”: “org.openmrs.referenceapplication.homepageLink”, “type”: “link”, “label”: “referenceapplication.app.registerPatient.label”, “url”: “registrationapp/registerPatient.page?appId=referenceapplication.registrationapp.myRegisterPat”, “icon”: “icon-user”, “order”: 1, “requiredPrivilege”: “App: registrationapp.registerPatient” } ],
“config”: { “afterCreatedUrl”: “/coreapps/clinicianfacing/patient.page?patientId={{patientId}}”, “sections”: [
{ “id”: “contactInfo”, “label”: “Informação”, “questions”: [
{
"legend": "Person.address",
"fields": [
{
"type": "personAddress",
"label": "registrationapp.patient.address.question",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/personAddress"
}
}
]
},
{ “legend”: “Grupo sanguineo”, “id”: “myPersonAttributeLabel”, “fields”: [ { “type”: “personAttribute”, “label”: “Grupo sanguineo do paciente”, “formFieldName”: “GrupoSanguineo”, “uuid”: “c29cbfbf-3a89-457c-8908-2b8274fa06af”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/text” }, “cssClasses”: [“GrupoSanguineo”,“required”] } ] },
{
"legend": "registrationapp.patient.phone.label",
"id": "phoneNumberLabel",
"fields": [
{
"type": "personAttribute",
"label": "registrationapp.patient.phone.question",
"formFieldName": "phoneNumber",
"uuid": "14d4f066-15f5-102d-96e4-000c29c2a5d7",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text"
},
"cssClasses": ["Phone"]
}
]
}
] },
{
"id": "relationships-info",
"label": "registrationapp.person.relationship",
"questions": [
{
"legend": "registrationapp.person.relationship.label",
"header": "registrationapp.person.relationship.question",
"fields": [
{
"type": "personRelationships",
"widget": {
"providerName": "registrationapp",
"fragmentId": "field/personRelationship"
}
}
]
}
]
}
]
}
}
both grupo sanguíneo and family menbers do show in the patient dashboard… Help
I do not think this is currently implemented. Do you mind creating a new ticket for this under the Reference Application JIRA project?