Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Code Block
languagejs
titleSample Practitioner
{
  "identifier": "437cc699-cfa7-414c-ba27-1668b6b517e6",
  "active": true,
  "name": "Test User Lusaka",
  "userId": "cad04f1e-9b05-4eac-92ce-4b38aa478644",
  "username": "lusaka"
}


FieldDescription
identifierthis is a unique ID for this user
activetrue or false depending on whether this user is active
nameThe full name of the user
userIdThis is the UUID from the user in OpenMRS (displayed in grey in the Show Advanced Options in OpenMRS)
usernameThis is the OpenMRS username

Steps:

  • Copy all of the information from OpenMRS into Excel
  • Create the JSON above in excel
    • (You can copy and paste unique identifiers to excel from an online GUID generator if you like)
    • Sample Excel Formula: ="{""identifier"": """&A2&""",""active"": true,""name"": """&C2&""",""userId"": """&D2&""",""username"": """&B2&"""},"

A

Identifier

B

Username

C

Name

D

OpenMRS User UUID

f7369d1d-9463-486e-8f9d-2c5e2160c8j9testUser1Test User One1998b24e-b631-42fd-8dd3-f09463e3e626
c304705b-467e-4f38-bfd3-2c683eac411btestUser2Test User Twof3229835-0433-4bc9-a626-736d58035df4

Create Organizations in Reveal

...

Code Block
languagejs
titleSample Organization
{
  "identifier": "fcc19470-d599-11e9-bb65-2a2ae2dbcce4",
  "active": true,
  "name": "The Luang",
  "type": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/organization-type",
        "code": "team",
        "display": "Team"
      }
    ]
  }
}


FieldDescription
identifierThis is the unique GUID of the organization
activetrue or false depending on whether this organization is active
nameThis is the name of the organization
typeDon't change this. It's a link to a FHIR coded type.

Steps:

...

Code Block
languagejs
titleSample PractitionerRole
{
  "identifier": "85771b10-1d77-40c8-bdf2-d6eb74380f76",
  "active": true,
  "organization": "0c7fd90f-5b99-4ed9-b337-0b42d51eab97",
  "practitioner": "d7c9c000-e9b3-427a-890e-49c301aa48e6",
  "code": {
    "text": "Community Health Worker"
  }
}


FieldDescription
identifierThis is a unique GUID for this practitionerRole
activetrue or false depending on whether this organization is active
organizationThis is the identifier of the organization
practitionerThis is the identifier of the practitioner
code.textThis can be anything. We use Community Health Worker as a placeholder

Steps:

...

Code Block
languagejs
titleSample LocationsAndPlans
[{
  "organization": "",
  "jurisdictionIdjurisdiction": "304cbcd4-0850-404a-a8b1-486b02f7b84d",
  "planIdplan": "144f4d78-a406-5a4f-a45c-8f2b66919e35",
  "fromDate": "2019-09-17T00:00:00.000Z",
  "toDate": "2019-12-01T00:00:00.000Z"
}]


FieldDescription
jurisdictionId
organizationThis is the identifier of the organization
jurisdictionThis 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
planThis is the identifier of the plan
fromDateThis is the start date of the assignment
toDateThis is the end date of the assignment. If this passes, users will not be able to access this assignment.

Steps: