sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
const createObservation = async (accountId: string, projectId: string, patientId: string) => { | |
const observation = await fetch(`https://fhir.us.lifeomic.com/${accountId}/dstu3/Observation`, { | |
method: 'POST', | |
headers: { | |
authorization: `Bearer ${process.env.PHC_API_KEY}`, | |
'content-type': 'application/json' | |
}, | |
body: JSON.stringify({ | |
resourceType: "Observation", | |
const createPatient = async (accountId: string, projectId: string) => { | |
const patient = await fetch(`https://fhir.us.lifeomic.com/${accountId}/dstu3/Patient`, { | |
method: 'POST', | |
headers: { | |
authorization: `Bearer ${process.env.PHC_API_KEY}`, | |
'content-type': 'application/json' | |
}, | |
body: JSON.stringify({ | |
resourceType: "Patient", | |