Skip to content

w3c/hcls-fhir-rdf

Repository files navigation

hcls-fhir-rdf

This repo is maintained by the RDF subgroup of the HL7 ITS group, and is mostly used for tracking FHIR RDF issues.

State of affairs

RDF (Turtle) is one of three official FHIR serialization formats, along with JSON and XML.

The FHIR publishing process on github generates:

  • a ShEx schema for all core FHIR resources,
  • a fairly minimal FHIR ontology; and
  • RDF serializations for all of the FHIR examples in the FHIR specification.

HAPI is now used for parsing and generating FHIR RDF in the FHIR publication process. See RDFParser

Code for the ShEx generation can be found in ShExGenerator.java

The RDF and ShEx generation code in this repository is no longer maintained.


Directories

Still in use:

  • scripts -- Convenience scripts for transforming FHIR RDF data

Obsolete:

  • data - the current stable FHIR specification
    • examples -- XML examples from specification
    • site -- FHIR definitions (we use the json format)
    • rdf -- RDF representation of examples
    • definitions.shex -- shex definitions of FHIR content
    • definitions.xml -- XML definitions used in xslt transformation
    • extract.log -- log of build for the data directory
  • hcls_fhir_rdf -- python 3 modules for building data directory
  • ontology -- early work on modeling FHIR definitions in OWL
  • tests -- python unit tests (not a lot at the moment)
  • xsl -- XSLT 2.0 transform for converting FHIR instances from XML to RDF