GithubHelp home page GithubHelp logo

fhir-mapping-experiments's Introduction

Goal

Transform FHIR Coverage instances - from version 1.4 to R4 using:

Assumptions

  • no 'out of the box' support for FHIR 1.4, therefore in an attempt to circumvent this, the respective StructureDefinitions were obtained and used (note- not sure if this approach is valid/workable, but we are giving it a try)

What we have done

  1. Coverage v1.4 StructureDefinition

  2. Coverage R4 StructureDefinition

  3. FML map file

    • created FML file: coveragev14toR4.map
    • Added the above 2 URLs into the map file as source and target (see here)
    • added FML rules to transform various v1.4 elements to respective R4 elements
  4. v1.4 example Coverage instance

    • an example from the v1.4 FHIR specification was downloaded to use as the input to the transform
    • saved here
    • a couple of optional elements not present were added in order to invoke the respective rule (ie network and contract)
  5. Transform operation

  6. Transform result

    • an instance of Coverage is successfully generated, however there are some gaps - see below
Transformed output
<?xml version="1.0" encoding="UTF-8"?>
<Coverage xmlns="http://hl7.org/fhir">
  <identifier>
    <system value="http://benefitsinc.com/certificate"/>
    <value value="12345"/>
  </identifier>
  <dependent value="1"/>
  <period>
    <start value="2014-05-23"/>
    <end value="2012-05-23"/>
  </period>
  <network value="test"/>
  <contract>
    <reference value="Contract/4"/>
    <display value="Contract no 4"/>
  </contract>
</Coverage>

Transform gaps

  1. Coverage.issuerReference -> Coverage.payor

    • v1.4 Coverage.issuerReference is member of choice group Coverage.issuer and is of datatype Reference
    • R4 Coverage.payor is of datatype Reference
    • a number of rule variations have not yet yielded a successful transform
    • note that a transform of Coverage.contract -> Coverage.contract (also datatype Reference) does yield success
  2. Coverage.beneficiaryReference -> Coverage.beneficiary

    • as datatype Reference - same issue as above
  3. Datatype transform Coding to CodeableConcept

    • cannot figure out how to transform these elements:
      • Coverage.type (Coding) -> Coverage.type (CodeableConcept)
      • Coverage.relationship (Coding) -> Coverage.relationship (CodeableConcept)
    • see rule attempt here

fhir-mapping-experiments's People

Contributors

robeastwood-agency avatar

Watchers

 avatar

Forkers

ahdis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.