How to use fhir-kit-client - 1 common examples

To help you get started, we’ve selected a few fhir-kit-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Vermonster / fhir-kit-client / examples / react-example / src / App.js View on Github external
async componentDidMount() {
    
    const baseUrl = "https://r4.smarthealthit.org";
    const patientId = "62acbbe9-7bae-4d33-b53f-a389c1a0e281";
    const client = new Client({ baseUrl });
    
    const response = await client.read({ resourceType: 'Patient', id: patientId });
  
    // const stringified = JSON.stringify(data);
    this.setState({ patientData: response });
  }

fhir-kit-client

FHIR Client

MIT
Latest version published 1 year ago

Package Health Score

63 / 100
Full package analysis

Popular fhir-kit-client functions