REST Web Service Resources in OpenMRS 1.9
We have migrated to an enhanced online openmrs rest api documentation. Please visit
https://rest.openmrs.org/#openmrs-rest-api
This page is generated automatically and must not be edited manually. It describes the urls/resources published by the REST Module.
For more information on conventions, authentication, and setup, see the main REST Web Services API For Clients page.
- 1 ActiveListType
- 2 Cohort
- 3 CohortMember
- 4 Concept
- 5 ConceptClass
- 6 ConceptDatatype
- 7 ConceptDescription
- 8 ConceptMap
- 9 ConceptMapType
- 10 ConceptName
- 11 ConceptReferenceTerm
- 12 ConceptReferenceTermMap
- 13 ConceptSource
- 14 Drug
- 15 Encounter
- 16 EncounterType
- 17 Field
- 18 FieldAnswer
- 19 FieldType
- 20 Form
- 21 FormField
- 22 FormResource
- 23 HL7
- 24 HL7Source
- 25 Location
- 26 LocationAttribute
- 27 LocationAttributeType
- 28 LocationTag
- 29 Obs
- 30 Order
- 31 DrugOrder subclass of Order
- 32 OrderType
- 33 Patient
- 34 PatientIdentifier
- 35 PatientIdentifierType
- 36 Person
- 37 PersonAddress
- 38 PersonAttribute
- 39 PersonAttributeType
- 40 PersonName
- 41 Privilege
- 42 Problem
- 43 Provider
- 44 ProviderAttribute
- 45 ProviderAttributeType
- 46 Role
- 47 User
- 48 Visit
- 49 VisitAttribute
- 50 VisitAttributeType
- 51 VisitType
When a parameter has a bang "!" in front of it, it means that url will only be called if that parameter does NOT exist.
Properties listed in bold must not be null.
ActiveListType
URLs
url | description |
|---|---|
GET /ws/rest/v1/activelisttype | Fetch all non-retired that match any specified parameters otherwise fetch all non-retired |
GET /ws/rest/v1/activelisttype/{uuid} | Fetch by unique uuid |
POST /ws/rest/v1/activelisttype | Create with properties in request |
POST /ws/rest/v1/activelisttype/{uuid} | Edit with given uuid, only modifying properties in request |
DELETE /ws/rest/v1/activelisttype/{uuid}?!purge | Retire/Void this object |
DELETE /ws/rest/v1/activelisttype/{uuid}?purge | Delete this object from the database |
Representations
GET ref | GET default | GET full | POST create | POST update |
|---|---|---|---|---|
uuid | uuid | uuid | name | name |
Allergy
URLs
url | description |
|---|---|
GET /ws/rest/v1/allergy | Fetch all non-retired that match any specified parameters otherwise fetch all non-retired |
GET /ws/rest/v1/allergy/{uuid} | Fetch by unique uuid |
POST /ws/rest/v1/allergy | Create with properties in request |
POST /ws/rest/v1/allergy/{uuid} | Edit with given uuid, only modifying properties in request |
DELETE /ws/rest/v1/allergy/{uuid}?!purge | Retire/Void this object |
DELETE /ws/rest/v1/allergy/{uuid}?purge | Delete this object from the database |
Representations
GET ref | GET default | GET full | POST create | POST update |
|---|---|---|---|---|
uuid | uuid | uuid | person | person |
Cohort
URLs
url | description |
|---|---|
GET /ws/rest/v1/cohort | Fetch all non-retired that match any specified parameters otherwise fetch all non-retired |
GET /ws/rest/v1/cohort/{uuid} | Fetch by unique uuid |
POST /ws/rest/v1/cohort | Create with properties in request |
POST /ws/rest/v1/cohort/{uuid} | Edit with given uuid, only modifying properties in request |
DELETE /ws/rest/v1/cohort/{uuid}?!purge | Retire/Void this object |
DELETE /ws/rest/v1/cohort/{uuid}?purge | Delete this object from the database |
Representations
GET ref | GET default | GET full | POST create | POST update |
|---|---|---|---|---|
uuid | uuid | uuid | name | name |
CohortMember
URLs
url | description |
|---|---|
GET /ws/rest/v1/cohort/{parentUuid}/member/{uuid} | Fetch by unique uuid |
GET /ws/rest/v1/cohort/{parentUuid}/member | Fetch all non-retired |
POST /ws/rest/v1/cohort/{parentUuid}/member | Create with properties in request |
POST /ws/rest/v1/cohort/{parentUuid}/member/{uuid} | Edit with given uuid, only modifying properties in request |
DELETE /ws/rest/v1/cohort/{parentUuid}/member/{uuid}?!purge | Retire/Void this object |
DELETE /ws/rest/v1/cohort/{parentUuid}/member/{uuid}?purge | Delete this object from the database |
Representations
GET ref | GET default | GET full | POST create | POST update |
|---|---|---|---|---|
display | display | display | patient | patient |
Concept
URLs
url | description |
|---|---|
GET /ws/rest/v1/concept | Fetch all non-retired that match any specified parameters otherwise fetch all non-retired |
GET /ws/rest/v1/concept/{uuid} | Fetch by unique uuid |
POST /ws/rest/v1/concept | Create with properties in request |
POST /ws/rest/v1/concept/{uuid} | Edit with given uuid, only modifying properties in request |
DELETE /ws/rest/v1/concept/{uuid}?!purge | Retire/Void this object |
DELETE /ws/rest/v1/concept/{uuid}?purge | Delete this object from the database |
Representations
GET ref | GET default | GET full | POST create | POST update |
|---|---|---|---|---|
uuid | uuid | uuid | names | datatype |
Examples
Call Type | Sample URL | Output |
|---|---|---|
GET | /ws/rest/v1/concept | Returns a list of top 50 concepts with uuid, display and links |
GET | /ws/rest/v1/concept?v=custom:(uuid,name) | Returns a list of top 50 concepts |
GET | /ws/rest/v1/concept/cbec024a-8bb4-4fcc-b59b-c7b706bb432e | Returns full description of a concept, including: |
GET | /ws/rest/v1/concept?q=Yes | Returns list of concepts matching "Yes" with uuid, display and links |
GET | /ws/rest/v1/concept?q=COUGH&v=custom:(uuid,name) | Returns list of concepts matching "COUGH" with uuid and name |
ConceptClass
URLs
url | description |
|---|---|
GET /ws/rest/v1/conceptclass | Fetch all non-retired that match any specified parameters otherwise fetch all non-retired |
GET /ws/rest/v1/conceptclass/{uuid} | Fetch by unique uuid |
POST /ws/rest/v1/conceptclass | Create with properties in request |
POST /ws/rest/v1/conceptclass/{uuid} | Edit with given uuid, only modifying properties in request |
DELETE /ws/rest/v1/conceptclass/{uuid}?!purge | Retire/Void this object |
DELETE /ws/rest/v1/conceptclass/{uuid}?purge | Delete this object from the database |
Representations
GET ref | GET default | GET full | POST create | POST update |
|---|---|---|---|---|
uuid | uuid | uuid | name | name |
ConceptDatatype
URLs
url | description |
|---|---|
GET /ws/rest/v1/conceptdatatype | Fetch all non-retired that match any specified parameters otherwise fetch all non-retired |
GET /ws/rest/v1/conceptdatatype/{uuid} | Fetch by unique uuid |
POST /ws/rest/v1/conceptdatatype | Create with properties in request |
POST /ws/rest/v1/conceptdatatype/{uuid} | Edit with given uuid, only modifying properties in request |
DELETE /ws/rest/v1/conceptdatatype/{uuid}?!purge | Retire/Void this object |
DELETE /ws/rest/v1/conceptdatatype/{uuid}?purge | Delete this object from the database |
Representations
GET ref |
|---|