How to use the fhir-kit-client function in fhir-kit-client

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 2 years ago

Package Health Score

60 / 100
Full package analysis

Popular fhir-kit-client functions