capybara_29309
04/18/2024, 2:27 AMsvelte
<script lang="ts">
import { MedplumClient } from '@medplum/core';
const client = new MedplumClient({
baseUrl: 'http://fhirserverBaserURL',
fhirUrlPath: ''
});
const result = client
.createResource({
resourceType: 'Patient',
name: [
{
given: ['George'],
family: 'Washington'
}
]
})
.then((response) => console.log(response));
// const readPatient = client.readResource('Patient', '6').then((response) => console.log(response));
</script>rahul1
04/24/2024, 6:00 AMrahul1
04/24/2024, 6:00 AMrahul1
04/24/2024, 6:01 AMfhirserverBaserURL?
If not, you will need the configure the FHIR server to allow requests from your App's domain