Skip to content
APIsAPI ReferenceContext callQR Code

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

NametypeDescription
slugstringPartner identifier
required
patientstringTechnical patient record identifier
required

Example

Request

GET
/api/partners/patient/qrcode
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:


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

CodeDescription
200
400One of the parameters passed in the request is invalid