Introduction
This API allows you to make a contextual call to the different Posos functionalities.
The call requires identity token authentication, described in Authentication section.
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.
post/api/partners/proxy/prepare
HTTP headers
Name | Value |
---|---|
Authorization | Bearer <token> |
Query parameters
It is possible to pass the same parameters in a
Request body
Name | Type | Description |
---|---|---|
rpps | string | The RPPS number (character string representing 11 digits) of the user, or a technical identifier of the user within the establishment |
first_name | string | User’s first name |
last_name | string | User name |
guide | string | A string whose value is authorized in the list of guides, and which can contain as many parameters as necessary (see the guides documentation) |
Good to know: The “RPPS” is not necessarily the RPPS but can be a technical identifier of the user within the establishment. On the
preprod
environment you can test with theabcde1234
user which is configured.
Request
{
"rpps": "<rpps_user>",
"first_name": "<username>",
"last_name": "<username",
"guide": "<guide_name>"
}
Description of the guide
parameter
Access to the home page
guide: home
This guide provides access to the POSOS home page, thus providing access to its search bar and other guides. This integration does not allow the pre-filling of a search field.
Good to know: No call parameters to include in the body of the call.
Example
{
"rpps": "abcde1234",
"first_name": "John",
"last_name": "Doe",
"guide": "home"
}
Side Effects Guide
guide: side_effects
This guide allows you to list the undesirable effects from a list of medications and to suggest which medication may be causing an observed effect. In this integration, it is proposed to pre-populate the search with a list of medications.
Name | Type | Description |
---|---|---|
ucds | string[] | Table containing a list of ucd7 or ucd13 code describing the drugs to send. |
dcis | string[] | Table containing a list of dci describing the drugs to send. |
cis | string[] | Table containing a list of cis describing the drugs to send. |
It is necessary to have at least one of the ucds
or dcis
or cis
parameters. they’re cumulative.
Example
{
"rpps": "abcde1234",
"first_name": "John",
"last_name": "Does",
"guide": "side_effects",
"ucds": ["3400894203018", "3400892335049"],
"cis": ["67443191"],
"dcis": ["paracetamol"]
}
Interactions and Contraindications Guide
guide: interactions
This guide lists known drug interactions between several medications.
Name | Type | Description |
---|---|---|
ucds | string[] | Table containing a list of ucd7 or ucd13 code describing the drugs to send. |
dcis | string[] | Table containing a list of dci describing the drugs to send. |
cis | string[] | Table containing a list of cis describing the drugs to send. |
It is necessary to have at least one of the ucds
or dcis
or cis
parameters. they’re cumulative.
Parameter | Type | Description |
---|---|---|
terrains | string[] | Array of strings containing a list of cim10 codes to send. It may also contain SNOMED-CT codes. |
age | number | Integer representing the patient’s age in years. |
birth_date | string | Character string representing the date of birth in ISO format. |
pregnancy | boolean | false if the subject is not pregnant, true if the subject is pregnant. |
The age
and birth_date
fields can coexist but the value of birth_date
is used in case of conflict.
Example
{
"rpps": "abcde1234",
"first_name": "John",
"last_name": "Does",
"guide": "interactions",
"ucds": ["3400894203018", "3400891764857"],
"cis": ["67443191"],
"dcis": ["paracetamol"],
"terrains": ["E11"], // diabetes
"age": 70, // or "birth_date": "1952-01-04" ISO date format;
// 0 if age < 1 year.
"pregnancy": false // false by default (no known pregnancy),
//or true (current pregnancy)
// result, the combination of haloperidol and citalopram is contraindicated
}
Prescription Analysis Guide
guide: analysis
This guide centralizes the functionalities of the Interactions and Contraindications and Adverse Effects guides.
Name | Type | Description |
---|---|---|
ucds | string[] | Table containing a list of ucd7 or ucd13 code describing the drugs to send. |
dcis | string[] | Table containing a list of dci describing the drugs to send. |
cis | string[] | Table containing a list of cis describing the drugs to send. |
It is necessary to have at least one of the ucds
or dcis
or cis
parameters. they’re cumulative.
Parameter | Type | Description |
---|---|---|
terrains | string[] | Array of strings containing a list of cim10 codes to send. It may also contain SNOMED-CT codes. |
age | number | Integer representing the patient’s age in years. |
birth_date | string | Character string representing the date of birth in ISO format (2024-12-22). |
pregnancy | boolean | false if the subject is not pregnant, true if the subject is pregnant. |
The age
and birth_date
fields can coexist but the value of birth_date
is used in case of conflict.
Example
{
"rpps": "abcde1234",
"first_name": "John",
"last_name": "Does",
"guide": "analysis",
"ucds": ["3400894203018", "3400891764857"],
"cis": ["67443191"],
"dcis": ["paracetamol"],
"terrains": ["E11"], // diabetes
"age": 70, // or "birth_date": "1952-01-04" ISO date format;
// 0 if age < 1 year.
"pregnancy": false // false by default (no known pregnancy),
//or true (current pregnancy)
// result, the combination of haloperidol and citalopram is contraindicated
}
Alternative treatments
guide: alternatives
This guide allows you to find alternative treatments for a drug, given a patient profile and concomitant treatments.
Nom | Type | Description |
---|---|---|
ucd | string | a ucd7 or ucd13 code describing the drug to be treated. |
cis | string | a cis code describing the drug to be treated. |
cip | string | a cip7 or cip13 code describing the drug to be treated. |
it is necessary to have at least one of the ucd
, cis
, or cip
parameters. The three cannot be sent together.
Parameter | Type | Description |
---|---|---|
terrains | string[] | Array of strings containing a list of cim10 codes to send. It may also contain SNOMED-CT codes. |
age | number | Integer representing the patient’s age in years. |
birth_date | string | Character string representing the date of birth in ISO format (2024-12-22). |
pregnancy | boolean | false if the subject is not pregnant, true if the subject is pregnant. |
All of the fields are optional. age
and birth_date
can coexist but birth_date
is used in case of conflict.
Parameter | Type | Description |
---|---|---|
concomitantTreatments | object | an object describing the patient’s concomitant treatments |
concomitantTreatments.ucds | string[] | Table containing a list of ucd7 or ucd13 code describing concomitant treatments. |
concomitantTreatments.dcis | string[] | Table containing a list of dci describing concomitant treatments. |
concomitantTreatments.cis | string[] | Table containing a list of cis describing concomitant treatments. |
concomitantTreatments.cip | string[] | Table containing a list of cip7 or cip13 code describing concomitant treatments. |
concomitantTreatments
is optional. If passed, it is required to have at least one of the ucds
, dcis
, cis
, or cips
parameters, they’re cumulative.
Exemple
{
"rpps": "abcde1234",
"first_name": "John",
"last_name": "Doe",
"guide": "alternatives",
"cis": "61467730", // or ucd or cip
"concomitantTreatments": {
"ucds": ["3400894203018", "3400891764857"],
"cis": ["68416845"],
"dcis": ["paracetamol"],
"cips": ["3406955"]
},
"terrains": ["E11"], // diabete
"age": 70, // or "birth_date": "1952-01-04" ISO date format;
// 0 if age < 1 year.
"pregnancy": false // false by default (no known pregnancy),
//or true (current pregnancy)
}
Example
Request
curl --request POST \
--url https://partner-connect.preprod.posos.co/api/partners/proxy/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"rpps": "abcde1234",
"first_name": "John",
"last_name": "Does",
"guide": "analysis",
"ucds": "3400891764857",
"dcis": ["ketamine"]
}'
Response
{
"location": "https://partner-connect.preprod.posos.co/api/partners/proxy/logout?payload=..."
}
Response format
If successful, an HTTP code 201 is returned with a JSON response body containing a single location
field containing the URL to redirect the workstation to.
Response
{
"location": "https://partner-connect.preprod.posos.co/partners/proxy/logout?payload=...."
}
The payload
parameter in the url contains an opaque token which will authenticate the user. This URL will be used in the next step.
Response codes
Code | Description |
---|---|
201 | |
400 | One of the parameters passed in the request is invalid |
403 | Token in Authorization header is incorrect or missing |
Example of error 400
Bad UCD code syntax
{
"error": "'/ucds' must be array; '/ucds' must match pattern \"^([0-9]{7}|[0-9]{13})$\"; '/ucds' must match exactly one schema in oneOf"
}