SparkFhirSchemas
SparkFhirSchemas
PyPi: https://pypi.org/project/sparkfhirschemas/
Source Code: https://github.com/icanbwell/SparkFhirSchemas
This package provides generated FHIR schemas for Spark so you can validate your FHIR data while you are processing it in Spark. This package enables processing FHIR as a native format in Apache Spark.
FHIR schemas in Spark format can be used natively in Spark.
from spark_fhir_schemas.r4.resources.patient import PatientSchema
schema = PatientSchema.get_schema(include_extension=True)
# Load file using the schema for validation
df = spark.read.json(file_path, schema=schema)Updated 9 months ago
