Application Name: Reference Application Version Number: 2.3
Hi Everyone,
We are working with the new instructions to be able to collect multiple fields with the registration app. Our team realized that clicking the ‘edit’ button in the patient header doesn’t redirect to the appropriate screen, so we followed the work done by @ssmusoke to:
-
disable the extension points in our module activator. (link to full activator)
/**
-
@see ModuleActivator#started() */ public void started() { AppFrameworkService appFrameworkService = Context.getService(AppFrameworkService.class);
try { // disable the reference app registration page appFrameworkService.disableApp(“referenceapplication.registrationapp.registerPatient”); // disable the registration app’s basic registration page appFrameworkService.disableApp(“registrationapp.basicRegisterPatient”); // disable the extension to the edit person demographic information appFrameworkService.disableExtension(“org.openmrs.module.registrationapp.editPatientDemographics”); // disable the extension to the edit person contact information appFrameworkService.disableExtension(“org.openmrs.module.registrationapp.editPatientContactInfo”);
} catch (Exception e) { Module mod = ModuleFactory.getModuleById(“isanteplusregistration”); ModuleFactory.stopModule(mod); throw new RuntimeException("failed to setup the module ", e); } log.info(“isanteplusregistration Module started”); }
-
-
Add the new extension points to our app.json file (link to full app.json)
{ “id”: “referenceapplication.registrationapp.isantePlusRegistration.editPatientDemographics”, “extensionPointId”: “patientHeader.editPatientDemographics”, “type”: “link”, “label”: “general.edit”, “url”: “registrationapp/editSection.page?patientId={{patient.patientId}}§ionId=demographics&appId=referenceapplication.registrationapp.isantePlusRegistration” }, { “id”: “referenceapplication.registrationapp.isantePlusRegistration.editPatientContactInfo”, “extensionPointId”: “patientHeader.editPatientContactInfo”, “type”: “link”, “label”: “general.edit”, “url”: “registrationapp/editSection.page?patientId={{patient.patientId}}§ionId=contactInfo&appId=referenceapplication.registrationapp.isantePlusRegistration” }
Questions This is fine for editing patientDemographics and patientContactInfo, but the new app.json technique allows you to collect any number of sections.
- If we create a new section, how do we access that section for editing?
- Is there a way to view all information that’s collected in the registration process on a single screen, click “edit” and edit it like we would with htmlformentry?
- Are there other extension points or places on the dashboard that displays patient fields that have been collected?
Thanks, Craig