Hi,
I'm interested on working on and agree that it would be best to automate this idea. I'm training a crawler at
import.io to test the concept and want to make sure I capture everything appropriately. I've written a brief example for the coreapps patientHeader followed by some questions.
coreapps patientHeader Example:
Here's the line that we call on the groovy page to include the fragment:
${ ui.includeFragment("coreapps", "patientHeader", [ patient: patient.patient, activeVisit: activeVisit, appContextModel: appContextModel ]) }
Clearly "coreapps" is the module name, "patientHeader" is the fragment name and the parameters are a list.
So, to extract these components from FragmentController.java docs we would need to use the following:
I can pull the module name and fragment name from the URL and some of the parameters from the "@FragmentParam" property.
Questions:
1) Is there a problem with the capitalization of the letter P in "PatientHeader" in the URL vs the call "patientHeader" in the ui.includeFragment function?
2) I see that I can get some of the parameters by searching the text for "@FragmentParam". Is this the right thing to do? What about other parameters such as "activeVisit: activeVisit" from above? That isn't explicitly stated as a Fragment Parameter.
3) Would it be as useful to provide the github link to the fragment controller instead of trying to define the parameters in the table?
4) Are there any sources for a "description" column?
Sincerely,
Craig