Skip to content

Instantly share code, notes, and snippets.

@shakogele
Created September 25, 2019 09:52
Show Gist options
  • Save shakogele/6fee60d3cbf1eacb3270071d14122ff6 to your computer and use it in GitHub Desktop.
Save shakogele/6fee60d3cbf1eacb3270071d14122ff6 to your computer and use it in GitHub Desktop.
OpenEMR API RESOURCES POSTMAIN FILE
{
"info": {
"_postman_id": "4669c9d2-1af8-42bc-ada3-2ae86bd552b5",
"name": "OpenEMROnAWS",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "AUTH",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"grant_type\":\"password\",\n \"username\": \"olmaitemr\",\n \"password\": \"Olmait@2019\",\n \"scope\":\"default\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/auth",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
"auth"
],
"variable": [
{
"key": "api",
"value": "api"
}
]
}
},
"response": []
},
{
"name": "GETResourceById",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "facility"
},
{
"key": "id",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "POST",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "woXchgiwbBfW2iMBXcJEkiXK9nrqFZrI6668697264656661756c74",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"id\": \"observation-5\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2019-09-20T12:32:35\"\n },\n \"resourceType\": \"Observation\",\n \"identifier\": [\n {\n \"use\": \"official\",\n \"system\": \"http://www.bmc.nl/zorgportal/identifiers/observations\",\n \"value\": \"5\"\n }\n ],\n \"status\": \"final\",\n \"code\": {\n \"coding\": {\n \"system\": \"http://loinc.org\",\n \"code\": \"10839-9\",\n \"display\": \"Troponin I.cardiac [Mass/volume] in Serum or Plasma\"\n }\n },\n \"subject\": {\n \"reference\": \"Patient/3\",\n \"display\": \"MrBakurKuchua\"\n },\n \"effectivePeriod\": {\n \"start\": \"2019-09-20T12:32:35\"\n },\n \"issued\": \"2019-09-20T12:32:35\",\n \"valueQuantity\": {\n \"value\": \"\",\n \"unit\": null,\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"mmol/L\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/:resource",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource"
],
"variable": [
{
"key": "api",
"value": "fhir"
},
{
"key": "resource",
"value": "Observation"
}
]
}
},
"response": []
},
{
"name": "POST_SubResource",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "observation"
}
]
}
},
"response": []
},
{
"name": "PUT_SUBRESOURCE",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"Dermatochalasis\",\n \"begdate\": \"2010-04-13\",\n \"enddate\": \"2018-03-12\",\n \"diagnosis\": \"ICD10:H02.839\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:srid",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":srid"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "medical_problem"
},
{
"key": "srid",
"value": "4"
}
]
}
},
"response": []
},
{
"name": "DELETE_SUBRESOURCE",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:sid",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":sid"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "message"
},
{
"key": "sid",
"value": "3"
}
]
}
},
"response": []
},
{
"name": "GETResource",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
}
]
}
},
"response": []
},
{
"name": "GETResourceByIdAndSubResources",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "medical_problem"
}
]
}
},
"response": []
},
{
"name": "GETResourceByIdAndSubResourceById",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encounter"
},
{
"key": "subResourceId",
"value": "3"
}
]
}
},
"response": []
},
{
"name": "SOAP_NOTE",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/soap_note",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"soap_note"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encounter"
},
{
"key": "subResourceId",
"value": "3"
}
]
}
},
"response": []
},
{
"name": "SOAP_NOTE_BY_ID",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/soap_note/:sid",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"soap_note",
":sid"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encounter"
},
{
"key": "subResourceId",
"value": "3"
},
{
"key": "sid",
"value": "5"
}
]
}
},
"response": []
},
{
"name": "SOAP_NOTE_POST",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"subjective\": \"...\",\n \"objective\": \"...\",\n \"assessment\": \"...\",\n \"plan\": \"...\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/soap_note",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"soap_note"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encounter"
},
{
"key": "subResourceId",
"value": "3"
}
]
}
},
"response": []
},
{
"name": "SOAP_NOTE_PUT",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"subjective\": \"...\",\n \"objective\": \"...\",\n \"assessment\": \"...\",\n \"plan\": \"...\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/soap_note/:sid",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"soap_note",
":sid"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encoutner"
},
{
"key": "subResourceId",
"value": "3"
},
{
"key": "sid",
"value": "5"
}
]
}
},
"response": []
},
{
"name": "VITAL",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/vital",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"vital"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encounter"
},
{
"key": "subResourceId",
"value": "3"
}
]
}
},
"response": []
},
{
"name": "VITAL_BY_ID",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/vital/:vid",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"vital",
":vid"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encounter"
},
{
"key": "subResourceId",
"value": "3"
},
{
"key": "vid",
"value": "4"
}
]
}
},
"response": []
},
{
"name": "VITAL_POST",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"bps\": \"130\",\n \"bpd\": \"80\",\n \"weight\": \"220\",\n \"height\": \"70\",\n \"temperature\": \"98\",\n \"temp_method\": \"Oral\",\n \"pulse\": \"60\",\n \"respiration\": \"20\",\n \"note\": \"...\",\n \"waist_circ\": \"37\",\n \"head_circ\": \"22.2\",\n \"oxygen_saturation\": \"80\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/vital",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"vital"
],
"variable": [
{
"key": "api",
"value": ""
},
{
"key": "resource",
"value": ""
},
{
"key": "id",
"value": ""
},
{
"key": "subResource",
"value": ""
},
{
"key": "subResourceId",
"value": ""
}
]
}
},
"response": []
},
{
"name": "VITAL_PUT",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "933THI299oc1xXIDXXAPQTsBqU9z0EQz6f656d7264656661756c74",
"type": "string"
}
]
},
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"bps\": \"140\",\n \"bpd\": \"80\",\n \"weight\": \"220\",\n \"height\": \"70\",\n \"temperature\": \"98\",\n \"temp_method\": \"Oral\",\n \"pulse\": \"60\",\n \"respiration\": \"20\",\n \"note\": \"...\",\n \"waist_circ\": \"37\",\n \"head_circ\": \"22.2\",\n \"oxygen_saturation\": \"80\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{openRMRURL}/apis/:api/:resource/:id/:subResource/:subResourceId/vital/:vid",
"protocol": "http",
"host": [
"ec2-52-58-117-129",
"eu-central-1",
"compute",
"amazonaws",
"com"
],
"path": [
"apis",
":api",
":resource",
":id",
":subResource",
":subResourceId",
"vital",
":vid"
],
"variable": [
{
"key": "api",
"value": "api"
},
{
"key": "resource",
"value": "patient"
},
{
"key": "id",
"value": "3"
},
{
"key": "subResource",
"value": "encounter"
},
{
"key": "subResourceId",
"value": "3"
},
{
"key": "vid",
"value": "3"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment