2.1.4 • Published 4 months ago
pathling-client v2.1.4
pathling-client
This is a client library for the Pathling FHIR API, for use with JavaScript and TypeScript.
Example usage
import PathlingClient from 'pathling-client';
const client = new PathlingClient("https://demo.pathling.app/fhir");
// Invoke the import operation.
client.import({
sources: [
{ resourceType: "Patient", url: "s3://somebucket/Patient.ndjson" },
{ resourceType: "Condition", url: "s3://somebucket/Condition.ndjson" },
]
}).then(result => console.log(result));
// Invoke the aggregate operation.
client.aggregate({
subjectResource: "Patient",
aggregations: ["count()"],
groupings: [
"reverseResolve(Condition.subject).code.coding" +
".where(subsumedBy(http://snomed.info/sct|73211009))"
]
}).then(result => console.log(result));
// Invoke the search operation.
client.search({
subjectResource: "Patient",
filters: [
"(reverseResolve(Condition.subject).code.coding" +
".where($this.subsumedBy(http://snomed.info/sct|73211009))) " +
"contains http://snomed.info/sct|427089005||'Diabetes from Cystic Fibrosis'"
],
}).then(result => console.log(result));
// Invoke the extract operation.
client.extract({
subjectResource: "Patient",
columns: [
"id",
"reverseResolve(Condition.subject).code.coding"
],
filters: [
"reverseResolve(Condition.subject).code" +
".subsumedBy(http://snomed.info/sct|73211009).anyTrue"
]
}).then(result => console.log(result));
Pathling and "pathling-client" are copyright © 2023, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230. Licensed under the Apache License, version 2.0.
2.1.4
4 months ago
2.1.3
2 years ago
2.1.2
2 years ago
2.1.1
2 years ago
2.0.9
3 years ago
2.0.10
3 years ago
2.0.8
3 years ago
2.1.0
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.5
3 years ago
2.0.4
3 years ago
2.0.6
3 years ago
2.0.1
3 years ago
1.2.0
4 years ago
1.1.3
4 years ago
2.0.0
3 years ago
1.2.1
3 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago