Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 });
}