...
- Get the list of OpenMRS location UUIDs per location that was imported from VitalWave
- Match those locations to Reveal and run a Nifi processor group that:
- Define a list of Reveal locations to query
- GET the location from RevealĀ
- (https://reveal-stage.smartregister.org/opensrp/rest/location/{identifier}?is_jurisdiction=true)
- Check to see if the OpenMRS_Id property is already on the location
- Update the location to add the OpenMRS_Id property
- PUT the location back to Reveal (https://reveal-stage.smartregister.org/opensrp/rest/location/?is_jurisdiction=true)
...
- POST this JSON to the /practitioner endpoint (one user at a time) (https://reveal-stage.smartregister.org/opensrp/rest/practitionerpractitioners)
Create Organizations in Reveal
...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"organizationId": "",
"jurisdictionId": "304cbcd4-0850-404a-a8b1-486b02f7b84d",
"planId": "144f4d78-a406-5a4f-a45c-8f2b66919e35",
"fromDate": "2019-09-17T00:00:00.000Z",
"toDate": "2019-12-01T00:00:00.000Z"
} |
Field | Description |
---|---|
organizationId | This is the identifier of the organization |
jurisdictionId | This is the identifier of the operational area to be assigned. This must be a jurisdiction type location and we do not support cascading, so it must be the lowest level in the hierarchy |
planId | This is the identifier of the plan |
fromDate | This is the start date of the assignment |
toDate | This is the end date of the assignment. If this passes, users will not be able to access this assignment. |
...