Readings - Blood Oxygen

Export Blood Oxygen Readings

GET
Exports blood oxygen readings for a specified patient within a given date range as either an Excel spreadsheet or a CSV file. This endpoint facilitates the retrieval of blood oxygen data by allowing the specification of a patient ID and optional start and end dates to narrow down the readings. If no patient ID is specified, the service may return readings for all patients, contingent on the service's implementation details. The 'excel' parameter controls the output format: if set to true, the data is delivered in Excel format; if false, it is delivered in CSV format. The data is streamed directly to the client and can be consumed in the specified format.

Query parameters

excelbooleanOptional
Determines the format of the export: if true, the data is returned in Excel format; otherwise, it is returned as CSV.
patientIdintegerOptional
The ID of the patient whose blood oxygen readings are to be exported. If not provided, readings for all patients may be exported.
startdatetimeOptional
The start date for filtering blood oxygen readings. Only readings after or equal to this date will be included.
enddatetimeOptional
The end date for filtering blood oxygen readings. Only readings before this date will be included.

Response

This endpoint returns a file.
GET
1curl -G https://app.impiloplatform.com/api/v3/blood-oxygen-reading/export \
2 -H "Impilo-API-Key: <apiKey>" \
3 -d excel=true \
4 -d patientId=0