Patients API¶
Data types endpoints¶
Individuals
api/individuals GET: list of individuals
api/individuals/{id} GET: single individual
The following filters can be used:
id (single or multiple ids can be sent):
/api/individuals?id=10001&id=10002alternate_ids (case-insensitive partial match):
/api/individuals?alternate_ids=10002-23sex (case-insensitive exact match):
/api/individuals?sex=femaleoptions: female, male, unknown_sex, other_sexkaryotypic_sex (case-insensitive exact match):
/api/individuals?karyotypic_sex=xxoptions: unknown_karyotype, XX, XY, XO, XXY, XXX, XXYY, XXXY, XXXX, XYY, other_karyotypeactive status:
/api/individuals?active=trueoptions: true, falsedeceased status:
/api/individuals?deceased=falseoptions: true, falseethnicity (case-insensitive partial match):
/api/individuals?ethnicity={value}race (case-insensitive partial match):
/api/individuals?race={value}date_of_birth (range filter):
/api/individuals?date_of_birth_after=1987-01-01&date_of_birth_before=1990-12-31disease (case-insensitive partial match for disease term label or disease id represented by URI or CURIE): for example, a disease recorded as
{"id": "SNOMED:840539006", "label": "COVID-19"}can be searchedby its label
/api/individuals?disease=covidor
by its CURIE
/api/individuals?disease=SNOMED:840539006found_phenotypic_feature (case-insensitive partial match for phenotypic feature type label or id represented by URI or CURIE), finds all phenotypic feature with negated set to False: for example, a phenotypic feature recorded as
{"id": "HP:0000822", "label": "Hypertension"}can be searchedby its label
/api/individuals?found_phenotypic_feature=hypertensionor
by its CURIE
/api/individuals?found_phenotypic_feature=HP:0000822phenopackets__biosamples (single or multiple biosample ids), returns individuals linked to those biosamples:
/api/individuals?phenopackets__biosamples=2615-01&phenopackets__biosamples=2390-11phenopackets (single or multiple phenopacket ids):
/api/individuals?phenopackets=10080&phenopackets=12045
Batch Individuals
api/batch/individuals POST: list of individuals
The following body JSON options can be used:
format: case-sensitive, exact match:
csvoptions: csv, phenopackets, fhir, argoid: single or multiple ids can be provided as an array
{"id": ["HP:0000822", "HP:0000823"]}