Giter Site home page Giter Site logo

Comments (2)

ziegm avatar ziegm commented on June 12, 2024

The above mentioned problem also exists for the reason code.

TBD in following maps:

  • input\maps\CdaChEmedMedicationCardDocumentToBundle.map
  • input\maps\CdaChEmedMedicationPrescriptionDocumentToBundle.map

Example: 2-6-MedicationPrescription
Input (CDA):

<td id="pre.1.reason"/>

Actual Output (FHIR):

<reasonCode>
   <extension url="http://hl7.org/fhir/StructureDefinition/narrativeLink">
      <valueUrl value="#pre.1.reason"/>
   </extension>
</reasonCode>

Target Output (FHIR):

<reasonCode>
   <extension url="http://hl7.org/fhir/StructureDefinition/narrativeLink">
      <valueUrl value="#pre.1.reason"/>
   </extension>
   <text value="-"/>
</reasonCode>

actual mapping section:

// source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.41
// target: reasonCode Coding (e.g. http://build.fhir.org/ig/hl7ch/ig/ch-emed/StructureDefinition/ch-emed-medicationrequest)
group TreatmentReasonEntryContentModule(source section : Section, source observation: Observation, target reasonCode : Coding) {
    observation -> reasonCode.text =  (%section.text.substring(%section.text.indexOf(%observation.text.reference.value.substring(1))).substring(%section.text.substring(%section.text.indexOf(%observation.text.reference.value.substring(1))).indexOf('>')+1, %section.text.substring(%section.text.indexOf(%observation.text.reference.value.substring(1))).indexOf('<')-%section.text.substring(%section.text.indexOf(%observation.text.reference.value.substring(1))).indexOf('>')-1)) "idRef"; 
    observation.text as text then {
      text.reference as reference then {
        reference.value as value -> reasonCode.extension as ext then NarrativeLink(value, ext) "narrativeLink";
      } "reference";
    } "text";
}

from cda-fhir-maps.

oliveregger avatar oliveregger commented on June 12, 2024

need to add the let statement to the FHIR mapping language see https://jira.hl7.org/browse/FHIR-21642 that we can check if a value is provided

from cda-fhir-maps.

Related Issues (20)

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.