Skip to content
APIsAPI ReferenceAnalysisTreatment Recommendation

Treatment Recommendations

Introduction

The getAlternatives request retrieves valid therapeutic alternatives for an indication.

Entry Point

post/aort/v1/graphql

HTTP Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Variables

To enter the indication, use the autocomplete with entity_type=CLINICAL_INDICATION.
To enter drugs, use the autocomplete with entity_type=DRUG.
To enter conditions, use autocomplete with entity_type=CONTRAINDICATION_TERRAIN.
To enter adverse effects to avoid, use autocomplete with entity_type=ADVERSE_EFFECT.

VariableInput fieldTypeDescription
targetdrugDrugInputDrug for which to find an alternative to exclude from the results
targetindicationIndicationInputIndication for which to find a therapeutic alternative
targetlevelLevelRisk level of the alternatives; alternatives will only be proposed for indications without alerts of an equivalent level
targetadverseEffectsToAvoidCodingInputWithLabel[]List of codes for adverse effects to avoid for the alternatives
targetpathwaysCodingInputWithLabel[]List of codes for forms for the alternatives
targetformsCodingInputWithLabel[]List of codes for routes for the alternatives
targettherapeuticBookletTherapeuticBookletTherapeutic booklet configuration to include only the specialties (packaged drugs) present in the booklet
targetoutOfStockBooleanFilter for out-of-stock items (not yet implemented)
targetmarketedBooleanFilter for drugs with market authorization
patientconditionsConditionInput[]Patient’s pathologies and conditions (SNOMED)
patientsexGenderPatient’s biological gender
patientageGroupsAgeGroup[]Patient’s age group
patientbirthDateDatePatient’s date of birth
patientcontinuousCriteriaContinuousCriterionInput[]Patient’s biological parameters
patientconcurrentTreatmentsAlternativeTreatmentInputPatient’s pre-existing treatments
snomedInferrenceindicationBooleanParameter to search for alternatives on similar indications via inferences allowed by SNOMED.
snomedInferrencealertsBooleanParameter to search for alerts on similar conditions via inferences allowed by SNOMED.
snomedInferrenceadverseEffectsBooleanParameter to search for adverse effects via inferences allowed by SNOMED.

ContinuousCriterionInput

Input fieldTypeDescription
typeStringBiological parameter type
unitStringBiological parameter unit
minFloatLower bound of the biological parameter
maxFloatUpper bound of the biological parameter
valueFloatAbsolute value of the biological parameter

ConcurrentTreatments

Input fieldTypeDescription
ingredientsString[]Ingredients of pre-existing drugs in the patient
proceduresString[]Procedures and operations in the patient’s history
therapeuticClassesString[]Therapeutic classes of treatments taken by the patient

Result

The API returns an object of type AlternativeResult.

Alternative Result

AttributesTypeDescription
drugAlternativeDrugDescription of each drug in an alternative
alertsAlertResult[]List of remaining contraindications for each alternative
interactionsInteractionResult[]List of remaining interactions for each alternative
adverseEffectsAdverseEffect[]List of remaining adverse effects for each alternative
indicationsIndicationResultDetails about the indication to fill the filters

AlternativeDrug

AttributesTypeDescription
clinicalDrugClinicalDrugDetails about the proposed virtual drug as an alternative
brandedDrugsBrandedDrug[]List of brand names of the drugs
ingredientsString[]List of ingredient designations

ClinicalDrug

AttributesTypeDescription
codingsCoding[]Additional codes to describe the drug
formCodingDrug form
pathwaysCoding[]Possible administration routes for the drug
innStringInternational Nonproprietary Name
marketedBooleanIndicates if the drug is marketed
historicalSalesHistoricalSalesSales history of the drug

HistoricalSales

AttributesTypeDescription
atc5IntSales history for ATC5
atc7IntSales history for ATC7

TherapeuticUseResult

AttributesTypeDescription
intentsIntent[]Intentions for which the drug is an alternative
treatmentTypesTreatmentType[]Types of treatment for which the drug is an alternative
therapiesTherapy[]Types of therapy for which the drug is an alternative

BrandedDrug

AttributesTypeDescription
codeCodingSpecialty code (branded drug)
brandnameStringBrand name of the specialty
therapeuticBookletBooleanIf true, filters specialties to only show those present in the booklet
outOfStockBooleanIf true, filters specialties to only show those in stock (Not yet implemented)

AdverseEffect

AttributesTypeDescription
conditionConditionDescription of the adverse effect condition
incidenceIncidenceIncidence of the adverse effect
patientPatientPatient criteria for which the adverse effect has this incidence
dosageStringDrug dose likely to cause the adverse effect
phaseStringTreatment phase likely to cause the adverse effect
behaviourStringRecommended action in case of occurrence of the adverse effect

IndicationResult

AttributesTypeDescription
conditionConditionIndication condition description
therapeuticUseTherapeuticUseDetails of therapeutic use of the indication

Example

Alternatives

query getAlternatives($target: AlternativeTarget) {
  getAlternatives(target: $target) {
    drug {
      clinicalDrug {
        inn
        codings {
          code
          label
          terminology
        }
        form {
          code
          label
          terminology
        }
        routes {
          code
          label
          terminology
        }
        marketed
        historicalSales {
          atc5
          atc7
        }
      }
      brandedDrugs {
        brandname
        code {
          code
          label
          terminology
        }
        outOfStock
        therapeuticBooklet
      }
      ingredients
    }
    indications {
      condition {
        designation
        codings {
          code
          label
          terminology
        }
        associatedConditions {
          designation
          codings {
            code
            label
            terminology
          }
          
          modifiers
        }
        modifiers
      }
      therapeuticUse {
        intents
        therapies
        treatmentTypes
      }
    }
    alerts {
      designation
      type
      condition {
        designation
        codings {
          code
          label
          terminology
        }
        associatedConditions {
          designation
          codings {
            code
            label
            terminology
          }
          modifiers
        }
        modifiers
      }
      patient {
        ageGroups
        gender
        concurrentTreatments {
          ingredients
          procedures
          therapeuticClasses
        }
        continuousCriteria {
          type
          min
          max
          unit
        }
      }
      warnings {
        risk
        modifiers
        guidelines
      }
      source {
        author
        url
      }
      comment
    }
    interactions {
      designation
      type
      drugs {
        ingredient {
          code
          label
          terminology
        }
        clinicalDrug {
          code
          label
          terminology
        }
        brandedDrug {
          code
          label
          terminology
        }
      }
      comment
      source {
        author
        url
      }
    }
    adverseEffects {
      condition {
        designation
        codings {
          code
          label
          terminology
        }
        associatedConditions {
          designation
          codings {
            code
            label
            terminology
          }
          modifiers
        }
        modifiers
      }
      incidence
      patient {
        ageGroups
        gender
        concurrentTreatments {
          ingredients
          procedures
          therapeuticClasses
        }
        continuousCriteria {
          type
          min
          max
          unit
        }
      }
      phase
      dosage
      behaviour
    }
  }
}

Response

{
  "data": {
    "getAlternatives": [
      {
        "drug": {
          "clinicalDrug": {
            "inn": "glimépiride",
            "codings": [
              {
                "code": "MV00000125",
                "label": "Glimépiride 3 mg comprimé",
                "terminology": "posos"
              },
              {
                "code": "A10B",
                "label": "médicaments hypoglycémiants sauf insulines",
                "terminology": "ATC4"
              },
              {
                "code": "A10BB",
                "label": "sulfonylurées",
                "terminology": "ATC5"
              },
              {
                "code": "A10BB12",
                "label": "glimépiride",
                "terminology": "ATC7"
              }
            ],
            "form": {
              "code": "PDF-10219000",
              "label": "Comprimé",
              "terminology": "EDQM_form"
            },
            "routes": [
              {
                "code": "ROA-20053000",
                "label": "Voie orale",
                "terminology": "EDQM_pathway"
              }
            ],
            "marketed": true,
            "historicalSales": {
              "atc5": 9112677,
              "atc7": 1636144
            }
          },
          "brandedDrugs": [
            {
              "brandname": "glimepiride",
              "code": {
                "code": "61788049",
                "label": "GLIMEPIRIDE ACCORD HEALTHCARE 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "62969440",
                "label": "GLIMEPIRIDE ZYDUS 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "63235360",
                "label": "GLIMEPIRIDE ARROW 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "63422748",
                "label": "GLIMEPIRIDE ARROW GENERIQUES 3 mg, comprimé sécable",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "63718067",
                "label": "GLIMEPIRIDE CRISTERS 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "64816831",
                "label": "GLIMEPIRIDE EG 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "amarel",
              "code": {
                "code": "65035230",
                "label": "AMAREL 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "65546901",
                "label": "GLIMEPIRIDE ZENTIVA 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "65607350",
                "label": "GLIMEPIRIDE SANDOZ 3 mg, comprimé sécable",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "65660794",
                "label": "GLIMEPIRIDE TEVA SANTE 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "67447122",
                "label": "GLIMEPIRIDE EVOLUGEN 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "68427382",
                "label": "GLIMEPIRIDE BGR 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            },
            {
              "brandname": "glimepiride",
              "code": {
                "code": "69977393",
                "label": "GLIMEPIRIDE VIATRIS 3 mg, comprimé",
                "terminology": "cis"
              },
              "outOfStock": false,
              "therapeuticBooklet": false
            }
          ],
          "ingredients": null
        },
        "indications": [
          {
            "condition": {
              "designation": null,
              "codings": [
                {
                  "code": "10022491",
                  "label": "Diabète insulinorésistant",
                  "terminology": "meddra"
                },
                {
                  "code": "44054006",
                  "label": "diabète sucré de type 2",
                  "terminology": "snomed"
                },
                {
                  "code": "E11",
                  "label": "Diabète sucré de type 2",
                  "terminology": "cim10"
                }
              ],
              "associatedConditions": null,
              "modifiers": []
            },
            "therapeuticUse": {
              "intents": [],
              "therapies": [],
              "treatmentTypes": []
            }
          }
        ],
        "alerts": [],
        "interactions": [],
        "adverseEffects": []
      }
    ],
    ...
  }
}

Enum

Gender

VariableDescription
MMale
FFemale

AgeGroup

VariableDescription
NEWBORNNewborn
SENIORSenior
CHILDChild
ADOLESCENTAdolescent
PREMATUREPremature
INFANTInfant
ADULTAdult

Intent

VariableDescription
FIRST_LINEFirst intention
SECOND_LINESecond intention
THIRD_LINEThird intention

TreatmentType

VariableDescription
ACUTEAcute treatment
ADJUVANTAdjuvant treatment
CONTINUATIONContinuation treatment
CURATIVECurative treatment
DIAGNOSISDiagnostic agent
EMERGENCYEmergency treatment
ETIOLOGICALEtiological treatment
HOMEOPATHYHomeopathic treatment
IMMUNOMODULATORImmunomodulator treatment
INDUCTIONInduction treatment
INITIALInitial treatment
LOCALLocal treatment
LONG_TERM_DISEASE_MODIFYINGLong-term disease-modifying
MAINTENANCEMaintenance treatment
MANAGEMENTManagement treatment
PALLIATIVEPalliative treatment
PHYTOTHERAPYPhytotherapy treatment
PREVENTIVEPreventive treatment
REPLACEMENTReplacement treatment
REVERSALReversal treatment
SYMPTOMATICSymptomatic treatment
VACCINEVaccine

Therapy

VariableDescription
MONOTHERAPYMonotherapy treatment type
BITHERAPYBitherapy treatment type
TRITHERAPYTritherapy treatment type
COMBINATION_THERAPYCombination therapy type

Codes de réponse

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