Skip to content

Instantly share code, notes, and snippets.

View fhirfly's full-sized avatar

FHIRFLY fhirfly

View GitHub Profile
@fhirfly
fhirfly / PatientTensor.py
Last active June 27, 2023 02:10
PyTorch Code to create a Tensor for a FHIR Patient Resource
import torch
import json
from fhir_types import FHIR_Patient
#from fhir.resources.patient import Patient
def fhir_patient_to_tensor(fhir_patient_json, fhir_structure_definition_json):
# Parse the FHIR Patient resource
fhir_patient = FHIR_Patient (json.loads(fhir_patient_json))
# Load the FHIR StructureDefinition
@fhirfly
fhirfly / tzprofiles
Created July 26, 2022 14:07
tz confirmation
I am attesting that this GitHub handle fhirfly is linked to the Tezos account tz1bxJDs4YHVfTLBYeoptePQYNxM7iatLQa5 for tzprofiles
sig:edsigtny8Zu3C3jpbfYZ3ANvTVAspA5Nfxt1tjba7ycoRWyBShwMTx98dvsLrEjyCYwTiksAbzBuaUUTaKXLadb9qjnEKuC6SoE
@fhirfly
fhirfly / schema.json
Created July 25, 2022 23:55
fhir r4 json schema
This file has been truncated, but you can view the full file.
{
"$id": "http://hl7.org/fhir/json-schema/4.6",
"description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
"discriminator": {
"propertyName": "resourceType",
"mapping": {
"Account": "#/definitions/Account",
"ActivityDefinition": "#/definitions/ActivityDefinition",
"AdministrableProductDefinition": "#/definitions/AdministrableProductDefinition",
"AdverseEvent": "#/definitions/AdverseEvent",