Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New logic for prefix matching in XML parser
- Loading branch information
Showing
13 changed files
with
221 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
<foo> | ||
<datatypeMaps xmi:id="_txRJpaI_Eem3sI_lln0jxw" | ||
name="FHIR_ReferenceToInstanceIdentifier" | ||
fromMDMI=" | ||
function mapInstanceIdentifierToFHIR_Reference(source, target, properties, conversionrule) { | ||
var fhirResource = org.mdmi.core.engine.javascript.Utils.getSemanticProperyQualifier(conversionrule, 'fhirResource:'); | ||
target.setValueSafely('reference.type', fhirResource); | ||
if (properties.get('REFERENCEURL') != null) { | ||
if (source.getValue('extension') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource + source.getValue('extension')); | ||
} | ||
if (source.getValue('root') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource + source.getValue('root')); | ||
} | ||
} else { | ||
if (source.getValue('extension') != null && source.getValue('root') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource +source.getValue('root') + '::' + source.getValue('extension')); | ||
} else { | ||
if (source.getValue('extension') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource +source.getValue('extension')); | ||
} | ||
if (source.getValue('root') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource +source.getValue('root')); | ||
} | ||
} | ||
} | ||
} | ||
" | ||
toMDMI="function mapFHIR_ReferenceToInstanceIdentifier(s,t) { 
 if (s.getValue("reference") != null) {
 var sc = s.getValue("reference");
 if (sc.getValue("value") != null) {
 t.setValue("extension", sc.getValue("value"));
 }
 }
}
 " /> | ||
</foo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
function mapInstanceIdentifierToFHIR_Reference(source, target, properties, conversionrule) { | ||
|
||
|
||
var fhirResource = org.mdmi.core.engine.javascript.Utils.getSemanticProperyQualifier(conversionrule, 'fhirResource:'); | ||
target.setValueSafely('reference.type', fhirResource); | ||
|
||
if (properties.get('REFERENCEURL') != null) { | ||
if (source.getValue('extension') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource + source.getValue('extension')); | ||
} | ||
|
||
if (source.getValue('root') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource + source.getValue('root')); | ||
} | ||
} else { | ||
|
||
if (source.getValue('extension') != null && source.getValue('root') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource +source.getValue('root') + '::' + source.getValue('extension')); | ||
} else { | ||
if (source.getValue('extension') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource +source.getValue('extension')); | ||
} | ||
|
||
if (source.getValue('root') != null) { | ||
target.setValueSafely('reference.value', properties.get('REFERENCEURL') + fhirResource +source.getValue('root')); | ||
} | ||
} | ||
|
||
|
||
|
||
} | ||
} |