Comments (2)
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.
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)
- Mapping MedStat/MedReq.note vs. Dosage.text (unstructured)
- CH-EMED-PMP mapping additions
- CH-EMED-PMP: Referenz auf Narrative
- CH-EMED-PMP: invalid text.reference in AnnotationComment HOT 1
- pharm:asContent only when amount and code
- CH-EMED-PMP: Mapping if author = device
- CH-EMED-PMP: Unstructured dosage - start and end date on dosage
- CH-EMED-PMP: medication in reserve
- Improve mapping for MedicationStatement.note HOT 1
- Mapping document author if device to wrong resource type HOT 1
- Missing author on entry level HOT 1
- Missing mapping for different authors (on different levels) HOT 1
- Adjust mapping for PADV documents
- add mapping (cda->fhir) for externalDocumentId and id in the Medication List elements
- templateId missing fhir -> cda
- Practitioner.address/name are not mapped (CDA -> FHIR) HOT 1
- mapping ext (ch-emed-ext-dispense) HOT 2
- list CDA -> FHIR: Composition section missing HOT 3
- empty narrative HOT 5
- Map files need to be updated to align with latest cda logical model 2.0.0-sd-snapshot1 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cda-fhir-maps.