Introduction
This API allows you to integrate a QR Code containing a technical patient file identifier into any HTML page.
Entry point
Contextual call URLs
⚠️
The base url is https://partner-connect.{env}.posos.co
where {env}
is the
following environment: preprod
for validation, production
for live.
get/api/partners/patient/qrcode
HTTP headers
N / A
Query parameters
Name | type | Description |
---|---|---|
slug | string | Partner identifier required |
patient | string | Technical patient record identifier required |
Example
Request
GET
curl --request GET\
--url 'https://partner-connect.preprod.posos.co/api/partners/patient/qrcode?slug=hopital_demo&patient=abcde1234' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
QR Code example
<img
src="https://partner-connect.preprod.posos.co/api/partners/patient/qrcode?slug=hopital_demo&patient=43ea-b254fa"
width="256"
height="256"
/>
The link above generates the following QR Code:
Response format
The response is a PNG image stream that can be embedded in any img
or other HTML tag.
The QR Code contained in this image is encrypted and can only be decrypted by POSOS.
Response codes
Code | Description |
---|---|
200 | |
400 | One of the parameters passed in the request is invalid |