Misc API

Table of Contents

Id Identification

Current Implementation

This operation is used to identify whether a specific id belongs to a Patient, a User or it is Unknown on the system.

The possible values returned by this operation are:

  • USER
  • PATIENT
  • UNKNOWN

Parameters

Base URL: /id/{id}
Parameters:

NameTypeMandatoryDescription
{id}StringYesThe id you want to identify
tokenStringYesThe passwor token associated with the provided user id.
userIdStringYesThe id of the token's user.

API Sample

User Id Identification

http://localhost:8080/PresentationServices/id/poda?token=d56c8e42-395e-4ba1-9bbb-73e5ed403f51&userId=poda

Result
{"data":{"type":"USER"},"statusFact":{"success":true}}

Patient Id Identification

http://localhost:8080/PresentationServices/id/000000003d8f5de2013dff67a76e00f6?token=d56c8e42-395e-4ba1-9bbb-73e5ed403f51&userId=poda

Result
{"data":{"type":"PATIENT"},"statusFact":{"success":true}}

Unknown Id Identification

http://localhost:8080/PresentationServices/id/non-existing-id?token=d56c8e42-395e-4ba1-9bbb-73e5ed403f51&userId=poda

Result
{"data":{"type":"UNKNOWN"},"statusFact":{"success":true}}

Tag Id Identification

Current Implementation

This operation is used to identify whether a specific tag id belongs to a Patient, a User or it is Unknown on the system.

The possible values returned by this operation are:

  • USER
  • PATIENT
  • UNKNOWN

Parameters

Base URL: /tag/{id}
Parameters:

NameTypeMandatoryDescription
{id}StringYesThe tag id you want to identify
tokenStringYesThe password token associated with the provided user id.
userIdStringYesThe id of the token's user.

API Sample

User Id Identification

http://localhost:8080/PresentationServices/tag/test?token=d56c8e42-395e-4ba1-9bbb-73e5ed403f51&userId=poda

Result
{"data":{"type":"USER"},"statusFact":{"success":true}}

Patient Id Identification

http://localhost:8080/PresentationServices/tag/babyTag?token=d56c8e42-395e-4ba1-9bbb-73e5ed403f51&userId=poda

Result
{"data":{"type":"PATIENT"},"statusFact":{"success":true}}

Unknown Id Identification

http://localhost:8080/PresentationServices/tag/non-existing-tag?token=d56c8e42-395e-4ba1-9bbb-73e5ed403f51&userId=poda

Result
{"data":{"type":"UNKNOWN"},"statusFact":{"success":true}}