opensrp / opensrp-server

OpenSRP backend
https://smartregister.atlassian.net/wiki/display/Documentation/OpenSRP+Developer%27s+Guide
Other
24 stars 37 forks source link

Add a new module for opensrp intergration with external projects #3

Closed maimoonak closed 9 years ago

maimoonak commented 9 years ago
maimoonak commented 9 years ago

https://docs.google.com/a/ihsinformatics.com/spreadsheets/d/1L_MeoIo7xP7IckPTKM6ofV023-hPeswid-1M4_iB-6k/edit?usp=sharing The file has mappings between OpenMRS and OpenSRP fields. It also specifies what data is mandatory when trying to push data to OpenMRS.

https://docs.google.com/a/ihsinformatics.com/spreadsheets/d/1j_UnD6WMtyaDnnlw2cJdiZ8r2_JARFYjfk8zZrK90r4/edit?usp=sharing The sheet above represents a simple form that registers woman on ANC_Visit. From the sheet openmrs_opensrp we can see the MUST fields (firstname, lastname, gender, birthdate, encounter_date, encounter_location, encounter_provider). We provide openmrs mapping in xlsForm like highlighted columns in sheet.

The form would be downloaded as model.xml with attributes embedded inside like few item highlighted in doc here https://docs.google.com/a/ihsinformatics.com/document/d/134Dx0byfpExYxBkmDZ0yVw_mguW5iG8XUHM1o32Obno/edit?usp=sharing

Now we need to figure out that how these attributes would be mapped from model.xml to form_definition.json so that these could be transferred with a formSubmission. The form submission with attributes satisfied by openmrs-connector would be extracted, and pushed to openmrs.

maimoonak commented 9 years ago

An abstract breakdown of activities to be conducted for module.

sohelsarder commented 9 years ago

Is that integration module will also responsible for handling submission from other non openSRP client? (i.e mCare case, we need to accept submssions of register clients and their households data collected by mJivita+ application then they want to push that data into openSRP server)

ndisha commented 9 years ago

@maimoonak this issue was further broken down into more issues e.g., OpenMRS patient access, OpenMRS encounter access and openmrs core and interface integration..

Is the patient and encounter access done? If yes, can we close it and have the openmrs core and interface integration part referenced in issue #32 ; Error Handler and Logger into another issue and give the milestones accordingly? That way we can know exactly what of this huge component is done and what is remaining.

maimoonak commented 9 years ago

After discussion with client/mobile devs in the Sprint, it appeared that our team can not modify anything in ziggy or enketo and trying coordinating with enketo developer would only causing more delay, hence, we should not expect any form submission or form_definition.json specifying the concept mappings. The client devs suggested, that the functionality should be on server side. The idea was more applicable, easier to implement and doable in our timelines. The ticket for the implementation of openmrs attributes parser from form files is here #33

The final working flow is