Pam Basis API Services

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

PAM-API SERVICES

1) To get Patient details via CPR-nr & Encounter type : cpr-1510933156,


encounterType-AMB,IMP,EMER
URL-
http://vmccs1307:8003/pam-api/encounters?
cpr=1510933156&encounterType=AMB&encounterType=IMP&encounte
rType=EMER

2) To GET patient details via temporary CPR-nr & Encounter Type: cpr-
1510933pa6, encounterType-AMB,IMP,EMER
URL-
http://vmccs1307:8003/pam-api/encounters?
cpr=1510933pa6&encounterType=AMB&encounterType=IMP&encounte
rType=EMER

3) To GET details of patients encounters via Organizational Role, Code or Mnemo


Code & encounter type
URL-
http://vmccs1307:8003/pam-api/encounters?
orgRole=CR&codeOrMnemoCode=4001593&encounterType=AMB&enco
unterType=IMP&encounterType=EMER

4) To GET details of patients encounters via Organizational Role, Code or Mnemo


Code & encounter type (HERE codeOrMnemoCode-4001010)
URL-
http://vmccs1307:8003/pam-api/encounters?
orgRole=CR&codeOrMnemoCode=4001593&encounterType=AMB&enco
unterType=IMP&encounterType=EMER
Error message
-"PAM_BE_00003_MAX_NBR_PATIENT_ENCOUNTERS_FOUND",
"userMessage": "Mere end 200 kontakter fundet",

5) To GET patients encounters via Service Deleivery Location, Code or Mnemo


Code & Encounter Type
URL-
http://vmccs1307:8003/pam-api/encounters?
codeOrMnemoCode=4001593&orgRole=SDL&encounterType=AMB&enc
ounterType=IMP&encounterType=EMER

BASIS-API SERVICES
1) To search organization on Mnemo code and org Role code (Here through Clinical
Responsible-Behandlingsansvar)
Method Used - GET
URL-
http://vmccs1307:8003/basis-api/organization/units?
CodeOrMnemoCode=4001593&OrgRoleCode=ORG_ROLE_CLIN_RESP_OR
G_UNIT

2) To search organization on Mnemo code and org Role code (Here through Service
Delivery Location-Opholdaddresse)
Method Used- GET
URL-
http://vmccs1307:8003/basis-api/organization/units?
CodeOrMnemoCode=4001593&OrgRoleCode=ORG_ROLE_SERV_DELV_LO
CATION

3) To search organization on Mnemo code and org Role code (Here through Service
Delivery Responsible Kontaktansvar)
Method Used- GET
URL-
http://vmccs1307:8003/basis-api/organization/units?
CodeOrMnemoCode=4001593&OrgRoleCode=ORG_ROLE_SERV_DELV_RE
SP

4) To Login -
URL-
http://vmccs1307:8003/basis-api/user/login
Give the method as POST. You donot have to give any authentication. Navigate
to body and in RAW give the parameters as -
{"username":"testuser1","password":"Testuser-01"} and click send.
Method Used - POST
RESPONSE - "ccsSessionToken": "GgKz4WQA80cF8-UV-kcAj7B2:S"

5) To Logout-
URL- http://vmccs1307:8003/basis-api/user/logout
In Authorization go to basic auth and send updated request . Navigate to
headers and change Authorization to AuthCookie. Also add Key- content type
and value application Jason and click send.
Method used- POST
RESPONSE- NOTHING

6) To get user favorites by type


(Here type is to be fetched from database table-
CCS_STAFF_USER_FAVOURITTES)
METHOD USED-GET
URL-
http://vmccs1307:8003/basis-
api/staffs/testuser1/userfavorites/types/UNIT_OR_TEAM_CONTEXT

7) To get user favorites by id


(Here id is fetched from the last response of user fav by type)
URL-
http://vmccs1307:8003/basis-api/staffs/testuser1/userfavorites/14041
Method Used- GET

8) To delete user favorites by id


Method Used- DELETE
(Here id is taken from the response of the service fav by type or fav by id)
URL-
http://vmccs1307:8003/basis-api/staffs/testuser1/userfavorites/14041

Response The favorite with this ID is deleted (Nothing is shown in response


window and if the same ID is searched )

9) To replace user favorites by type


Method Used-PUT
URL-

10) To persist/save user favorites


Method Used POST
URL-
http://vmccs1307:8003/basis-api/staffs/testuser1/userfavorites
(Here give basic authorization with testuser1 & Testuser-01, In body raw
{
"type" : "TASK_LIST_PATIENT_CONTEXT",
"name" : "ATL-meddelese-1",
"rank" :25
}
Click Send

11) To update user favorites by id


Method Used-PUT
URL-
http://vmccs1307:8003/basis-api/staffs/testuser1/userfavorites/15023
(Here Take Id from the response of To persist/save user favorites. In body
raw and enter the value of rank {to be taken from the response of To
persist/save user favorites} ).Click SEND.
Response-OK
12) To replace user favorites by type
Method Used- PUT
URL-
http://vmccs1307:8003/basis-
api/staffs/testuser1/userfavorites/types/TASK_LIST_PATIENT_CONTEXT
(Here In body raw , write
[
{
"type" : "TASK_LIST_PATIENT_CONTEXT",
"name" : "ATL-meddelese-1",
"rank" : "25"
}
]
Response 201 CREATED

You might also like