Skip to content

Instantly share code, notes, and snippets.

@mdlavin
mdlavin / Machine Setup.md
Last active July 7, 2022 11:45
Machine setup

Enable FileVault disk encryption

Enable Firewall

sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1

Disable guest account

@mdlavin
mdlavin / secure-data-create-observation.ts
Last active August 1, 2022 12:34
Secure Health Data Storage Article - Create Observation Snippet
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",
@mdlavin
mdlavin / secure-data-create-patient.ts
Last active August 1, 2022 12:31
Secure Health Data Storage Article - Create Patient Snippet
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",