@prefix fhir: . @prefix owl: . @prefix rdfs: . @prefix xsd: . # - resource ------------------------------------------------------------------- a fhir:StructureMap; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "FhirToCdaTypes"]; fhir:Resource.meta [ fhir:Meta.versionId [ fhir:value "2" ]; fhir:Meta.lastUpdated [ fhir:value "2021-11-03T11:16:56.175+01:00"^^xsd:dateTime ] ]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "

Generated Narrative

Resource \"FhirToCdaTypes\" Version \"2\" Updated \"2021-11-03T11:16:56.175+01:00\"

url: http://fhir.ch/ig/cda-fhir-maps/StructureMap/FhirToCdaTypes

version: 0.3.0

name: FhirToCdaTypes

status: draft

date: 2022-02-11T11:14:39+01:00

publisher: ahdis

contact: ahdis: http://www.ahdis.ch/

description: Adapted from https://github.com/HL7/ccda-to-fhir/tree/master/mappings\r\nCDA: http://build.fhir.org/ig/ahdis/cda-core-2.0/branches/master/index.html\r\nFHIR: http://hl7.org/fhir/r4/

copyright: CC-BY-SA-4.0

structure

url: Identifier

mode: source

structure

url: II: InstanceIdentifier (V3 Data Type)

mode: target

group

name: Any

typeMode: none

input

name: src

mode: source

input

name: tgt

mode: target

rule

name: extension

Sources

-ContextElementVariableCondition
*srcextensionextension$this.url = 'http://hl7.org/fhir/StructureDefinition/iso21090-nullFlavor'

Targets

-ContextContextTypeElementVariable
*tgtvariablenullFlavornullFlavor

rule

name: nullFlavor

group

name: IdentifierII

extends: Any

typeMode: types

input

name: src

type: Identifier

mode: source

input

name: tgt

type: II

mode: target

rule

name: idAsUuid

Sources

-ContextElementVariableCondition
*srcvaluevaluesrc.system.empty() and src.value.startsWith('urn:uuid:')

target

context: tgt

contextType: variable

element: root

transform: evaluate

Parameters

-Value[x]
*value.substring(9).upper()

rule

name: idAsUuid

Sources

-ContextElementVariableCondition
*srcvaluevaluesrc.system = 'urn:ietf:rfc:3986'

target

context: tgt

contextType: variable

element: root

transform: evaluate

Parameters

-Value[x]
*value.substring(9).upper()

rule

name: system

Sources

-ContextElementVariableCondition
*srcvaluevaluesrc.system.startsWith('urn:oid:')

rule

name: oidident

group

name: IntegerINT

extends: Any

typeMode: types

input

name: src

type: integer

mode: source

input

name: tgt

type: INT

mode: target

rule

name: integer

Sources

-ContextElementVariable
*srcvaluev

target

context: tgt

contextType: variable

element: value

transform: copy

Parameters

-Value[x]
*v

group

name: InstantTS

extends: Any

typeMode: types

documentation: group Identifier(source src : Identifier, target tgt : II) extends Any <<types>> {\r\nsrc.system as system then {\r\nsrc.value as value then {\r\nvalue.value as v where system.value = 'urn:ietf:rfc:3986' -> tgt.root = cast(v, 'string') \"noExtension\";\r\nsystem.value as v where system.value != 'urn:ietf:rfc:3986' -> tgt.root = v then {\r\nvalue.value as val -> tgt.extension = cast(val, 'string') \"extension\";\r\n} \"withExtension\";\r\n} \"rootValue\";\r\n} \"root\";\r\nsrc.value as value -> tgt.root = '123' \"test\";\r\nsrc -> tgt.root = '123' \"test\";\r\nsrc.assigner as a then {\r\na.display as display then {\r\ndisplay.value as val -> tgt.assigningAuthorityName = cast(val, 'string');\r\n} \"display\";\r\n} \"assigner\";\r\nsrc.extension as ext where ext.url = 'http://hl7.org/fhir/cdaStructureDefinition/extension-displayable' -> tgt.displayable as displayable then {\r\next.value as v -> displayable.value = cast(v, 'string');\r\n} \"displayable\";\r\n}

input

name: src

type: instant

mode: source

input

name: tgt

type: TS

mode: target

rule

name: copy

Sources

-ContextElementVariable
*srcvaluev

target

context: tgt

contextType: variable

element: value

transform: copy

Parameters

-Value[x]
*v

group

name: DateTimeTS

extends: InstantTS

typeMode: types

input

name: src

type: dateTime

mode: source

input

name: tgt

type: TS

mode: target

group

name: DateTS

extends: InstantTS

typeMode: types

input

name: src

type: date

mode: source

input

name: tgt

type: TS

mode: target

group

name: CodeCS

extends: Any

typeMode: types

input

name: src

type: code

mode: source

input

name: tgt

type: CS

mode: target

rule

name: code

Sources

-ContextElementVariable
*srccodec

target

context: tgt

contextType: variable

element: value

transform: cast

parameter

value: c

parameter

value: string

group

name: CodeCE

extends: CodeCS

typeMode: types

input

name: src

type: code

mode: source

input

name: tgt

type: CE

mode: target

group

name: CodeCD

extends: CodeCS

typeMode: types

input

name: src

type: code

mode: source

input

name: tgt

type: CD

mode: target

group

name: CodingCE

extends: Any

typeMode: types

input

name: src

type: Coding

mode: source

input

name: tgt

type: CE

mode: target

rule

name: code

Sources

-ContextElementVariable
*srccodecode

target

context: tgt

contextType: variable

element: code

transform: copy

Parameters

-Value[x]
*code

rule

name: system

Sources

-ContextElementVariableCondition
*srcsystemsystem$this.startsWith('http:')

target

context: tgt

contextType: variable

element: codeSystem

transform: translate

parameter

value: system

parameter

value: #uri2oid

parameter

value: code

rule

name: system

Sources

-ContextElementVariableCondition
*srcsystemsystem$this.startsWith('urn:oid:')

rule

name: oidident

rule

name: systemName1

Sources

-ContextElementVariableCondition
*srcsystemsystem$this.startsWith('http:')

target

context: tgt

contextType: variable

element: codeSystemName

transform: translate

parameter

value: system

parameter

value: #uri2system

parameter

value: code

rule

name: systemName2

Sources

-ContextElementVariableCondition
*srcsystemsystem$this.startsWith('urn:oid:')

target

context: tgt

contextType: variable

element: codeSystemName

transform: translate

parameter

value: system

parameter

value: #oid2system

parameter

value: code

rule

name: display

Sources

-ContextElementVariable
*srcdisplaydisplay

target

context: tgt

contextType: variable

element: displayName

transform: copy

Parameters

-Value[x]
*display

group

name: CodeableConceptCE

extends: Any

typeMode: types

input

name: src

type: CodeableConcept

mode: source

input

name: tgt

type: CE

mode: target

rule

name: text

Sources

-ContextElementVariable
*srctexttext

target

context: tgt

contextType: variable

element: orginialText

variable: originalText

target

context: originalText

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*text

rule

name: first

Sources

-ContextElementListModeVariable
*srccodingfirstcoding

Dependents

-NameVariable
*CodingCEcoding, tgt

rule

name: translation

Sources

-ContextElementListModeVariable
*srccodingnot_firstcoding

Targets

-ContextContextTypeElementVariable
*tgtvariabletranslationtranslation

Dependents

-NameVariable
*CodingCEcoding, translation

group

name: AddressAD

extends: Any

typeMode: types

documentation: group CECodeableConcept(source src : CE, target tgt : CodeableConcept) extends Any <<types>> {\r\nsrc.originalText -> tgt.text;\r\nsrc -> tgt.coding as coding then {\r\nsrc.code as code -> coding.code = cast(code, 'string');\r\nsrc.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\r\nsrc.displayName as display -> coding.display = cast(display, 'string');\r\n} \"code\";\r\nsrc.translation as translation -> tgt.coding as coding then {\r\ntranslation.code as code -> coding.code = cast(code, 'string');\r\ntranslation.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\r\ntranslation.displayName as display -> coding.display = cast(display, 'string');\r\n} \"translation\";\r\n}\r\ngroup CSCodeableConcept(source src : CS, target tgt : CodeableConcept) extends CECodeableConcept <<types>> {\r\n}\r\ngroup CDCodeableConcept(source src : CD, target tgt : CodeableConcept) extends CECodeableConcept <<types>> {\r\n}

input

name: src

type: Address

mode: source

input

name: tgt

type: AD

mode: target

rule

name: streetAddress

Sources

-ContextElementVariable
*srclinev

target

context: tgt

contextType: variable

element: streetAddressLine

variable: line

target

context: line

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: postalCode

Sources

-ContextElementVariable
*srcpostalCodev

target

context: tgt

contextType: variable

element: postalCode

variable: postalCode

target

context: postalCode

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: nullFlavor

Sources

-ContextCondition
*src$this.postalCode.exists() = false

target

context: tgt

contextType: variable

element: postalCode

variable: postalCode

target

context: postalCode

contextType: variable

element: nullFlavor

transform: copy

Parameters

-Value[x]
*NI

rule

name: city

Sources

-ContextElementVariable
*srccityv

target

context: tgt

contextType: variable

element: city

variable: city

target

context: city

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: nullFlavor

Sources

-ContextCondition
*src$this.city.exists() = false

target

context: tgt

contextType: variable

element: city

variable: city

target

context: city

contextType: variable

element: nullFlavor

transform: copy

Parameters

-Value[x]
*NI

rule

name: state

Sources

-ContextElementVariable
*srcstatev

target

context: tgt

contextType: variable

element: state

variable: state

target

context: state

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: district

Sources

-ContextElementVariable
*srcdistrictv

target

context: tgt

contextType: variable

element: county

variable: county

target

context: county

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: country

Sources

-ContextElementVariable
*srccountryv

target

context: tgt

contextType: variable

element: country

variable: country

target

context: country

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: nullFlavor

Sources

-ContextCondition
*src$this.country.exists() = false

target

context: tgt

contextType: variable

element: country

variable: country

target

context: country

contextType: variable

element: nullFlavor

transform: copy

Parameters

-Value[x]
*NI

rule

name: addressUse

Sources

-ContextElementVariable
*srcusec

target

context: tgt

contextType: variable

element: use

transform: translate

parameter

value: c

parameter

value: #addressUse

parameter

value: code

group

name: ContactPointTEL

extends: Any

typeMode: types

input

name: src

type: ContactPoint

mode: source

input

name: tgt

type: TEL

mode: target

rule

name: value

Sources

-ContextElementVariable
*srcvaluevalue

target

context: tgt

contextType: variable

element: value

transform: evaluate

Parameters

-Value[x]
*iif(%src.system = 'phone', 'tel:', '') + iif(%src.system = 'fax', 'fax:', '') + iif(%src.system = 'email', 'mailto:', '') + iif(%src.system = 'url', 'http:', '') + value

rule

name: use

Sources

-ContextElementVariableCondition
*srcuseuse$this = 'home'

target

context: tgt

contextType: variable

element: use

transform: copy

Parameters

-Value[x]
*HP

rule

name: use

Sources

-ContextElementVariableCondition
*srcuseuse$this = 'work'

target

context: tgt

contextType: variable

element: use

transform: copy

Parameters

-Value[x]
*WP

rule

name: use

Sources

-ContextElementVariableCondition
*srcuseuse$this = 'old'

target

context: tgt

contextType: variable

element: use

transform: copy

Parameters

-Value[x]
*BAD

rule

name: use

Sources

-ContextElementVariableCondition
*srcuseuse$this = 'temp'

target

context: tgt

contextType: variable

element: use

transform: copy

Parameters

-Value[x]
*TMP

rule

name: use

Sources

-ContextElementVariableCondition
*srcuseuse$this = 'mobile'

target

context: tgt

contextType: variable

element: use

transform: copy

Parameters

-Value[x]
*MC

group

name: HumanNameEN

extends: Any

typeMode: types

input

name: src

type: HumanName

mode: source

input

name: tgt

type: EN

mode: target

rule

name: family

Sources

-ContextElementVariable
*srcfamilyv

target

context: tgt

contextType: variable

element: family

variable: family

target

context: family

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: given

Sources

-ContextElementVariable
*srcgivenv

target

context: tgt

contextType: variable

element: given

variable: given

target

context: given

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: prefix

Sources

-ContextElementVariable
*srcprefixv

target

context: tgt

contextType: variable

element: prefix

variable: prefix

target

context: prefix

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

rule

name: suffix

Sources

-ContextElementVariable
*srcsuffixv

target

context: tgt

contextType: variable

element: suffix

variable: suffix

target

context: suffix

contextType: variable

element: data

transform: copy

Parameters

-Value[x]
*v

group

name: QuantityPQ

extends: Any

typeMode: types

input

name: src

type: Quantity

mode: source

input

name: tgt

type: PQ

mode: target

rule

name: code

Sources

-ContextElementVariable
*srccodecode

target

context: tgt

contextType: variable

element: unit

transform: copy

Parameters

-Value[x]
*code

rule

name: value

Sources

-ContextElementVariable
*srcvaluevalue

target

context: tgt

contextType: variable

element: value

transform: copy

Parameters

-Value[x]
*value

group

name: RatioRTOPQPQ

extends: Any

typeMode: types

input

name: src

type: Ratio

mode: source

input

name: tgt

type: RTO_PQ_PQ

mode: target

rule

name: numerator

Sources

-ContextElementVariable
*srcnumeratornumerator

Targets

-ContextContextTypeElementVariable
*tgtvariablenumeratortargetNumerator

Dependents

-NameVariable
*QuantityPQnumerator, targetNumerator

rule

name: denominator

Sources

-ContextElementVariable
*srcdenominatordenominator

Targets

-ContextContextTypeElementVariable
*tgtvariabledenominatortargetDenominator

Dependents

-NameVariable
*QuantityPQdenominator, targetDenominator
" ]; fhir:DomainResource.contained [ a fhir:ConceptMap; fhir:index 0; fhir:Resource.id [ fhir:value "uri2oid" ]; fhir:ConceptMap.status [ fhir:value "draft" ]; fhir:ConceptMap.group [ fhir:index 0; fhir:ConceptMap.group.source [ fhir:value "http://hl7.org/fhir" ]; fhir:ConceptMap.group.target [ fhir:value "http://hl7.org/cda" ]; fhir:ConceptMap.group.element [ fhir:index 0; fhir:ConceptMap.group.element.code [ fhir:value "http://snomed.info/sct" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "2.16.840.1.113883.6.96" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ], [ fhir:index 1; fhir:ConceptMap.group.element.code [ fhir:value "http://loinc.org" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "2.16.840.1.113883.6.1" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ], [ fhir:index 2; fhir:ConceptMap.group.element.code [ fhir:value "http://hl7.org/fhir/sid/atc" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "2.16.840.1.113883.6.73" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]; fhir:ConceptMap.group.element.target.comment [ fhir:value "see issue #4" ] ] ], [ fhir:index 3; fhir:ConceptMap.group.element.code [ fhir:value "http://www.whocc.no/atc" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "2.16.840.1.113883.6.73" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ], [ fhir:index 4; fhir:ConceptMap.group.element.code [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "2.16.840.1.113883.5.1070" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ] ] ], [ a fhir:ConceptMap; fhir:index 1; fhir:Resource.id [ fhir:value "uri2system" ]; fhir:ConceptMap.status [ fhir:value "draft" ]; fhir:ConceptMap.group [ fhir:index 0; fhir:ConceptMap.group.source [ fhir:value "http://hl7.org/fhir" ]; fhir:ConceptMap.group.target [ fhir:value "http://hl7.org/cda" ]; fhir:ConceptMap.group.element [ fhir:index 0; fhir:ConceptMap.group.element.code [ fhir:value "http://snomed.info/sct" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "SNOMED CT" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ], [ fhir:index 1; fhir:ConceptMap.group.element.code [ fhir:value "http://loinc.org" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "LOINC" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ], [ fhir:index 2; fhir:ConceptMap.group.element.code [ fhir:value "http://hl7.org/fhir/sid/atc" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "ATC WHO" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]; fhir:ConceptMap.group.element.target.comment [ fhir:value "see issue #4" ] ] ], [ fhir:index 3; fhir:ConceptMap.group.element.code [ fhir:value "http://www.whocc.no/atc" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "ATC WHO" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ], [ fhir:index 4; fhir:ConceptMap.group.element.code [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "HL7 Substance Admin Substitution" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ] ] ], [ a fhir:ConceptMap; fhir:index 2; fhir:Resource.id [ fhir:value "oid2system" ]; fhir:ConceptMap.status [ fhir:value "draft" ]; fhir:ConceptMap.group [ fhir:index 0; fhir:ConceptMap.group.source [ fhir:value "http://hl7.org/fhir" ]; fhir:ConceptMap.group.target [ fhir:value "http://hl7.org/cda" ]; fhir:ConceptMap.group.element [ fhir:index 0; fhir:ConceptMap.group.element.code [ fhir:value "urn:oid:2.51.1.1" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "GTIN" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ], [ fhir:index 1; fhir:ConceptMap.group.element.code [ fhir:value "urn:oid:1.3.6.1.4.1.19376.1.9.2.1" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "IHE Pharmaceutical Advice Status List" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ] ] ] ] ], [ a fhir:ConceptMap; fhir:index 3; fhir:Resource.id [ fhir:value "addressUse" ]; fhir:ConceptMap.status [ fhir:value "draft" ]; fhir:ConceptMap.group [ fhir:index 0; fhir:ConceptMap.group.source [ fhir:value "http://hl7.org/fhir/valueset-address-use.html" ]; fhir:ConceptMap.group.target [ fhir:value "http://terminology.hl7.org/ValueSet/v3-AddressUse" ]; fhir:ConceptMap.group.element [ fhir:index 0; fhir:ConceptMap.group.element.code [ fhir:value "home" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "H" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]; fhir:ConceptMap.group.element.target.comment [ fhir:value "home -> home address" ] ] ], [ fhir:index 1; fhir:ConceptMap.group.element.code [ fhir:value "work" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "WP" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]; fhir:ConceptMap.group.element.target.comment [ fhir:value "work -> work place" ] ] ], [ fhir:index 2; fhir:ConceptMap.group.element.code [ fhir:value "temp" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "TMP" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]; fhir:ConceptMap.group.element.target.comment [ fhir:value "Temporary -> temporary address" ] ] ], [ fhir:index 3; fhir:ConceptMap.group.element.code [ fhir:value "old" ]; fhir:ConceptMap.group.element.target [ fhir:index 0; fhir:ConceptMap.group.element.target.code [ fhir:value "OLD" ]; fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]; fhir:ConceptMap.group.element.target.comment [ fhir:value "Old / Incorrect -> no longer in use, could be also t:\"BAD\" for bad address" ] ] ] ] ]; fhir:DomainResource.extension [ fhir:index 0; fhir:Extension.url [ fhir:value "http://fhir.ch/reference" ]; fhir:Extension.valueReference [ fhir:Reference.reference [ fhir:value "#uri2oid" ] ] ], [ fhir:index 1; fhir:Extension.url [ fhir:value "http://fhir.ch/reference" ]; fhir:Extension.valueReference [ fhir:Reference.reference [ fhir:value "#uri2system" ] ] ], [ fhir:index 2; fhir:Extension.url [ fhir:value "http://fhir.ch/reference" ]; fhir:Extension.valueReference [ fhir:Reference.reference [ fhir:value "#oid2system" ] ] ], [ fhir:index 3; fhir:Extension.url [ fhir:value "http://fhir.ch/reference" ]; fhir:Extension.valueReference [ fhir:Reference.reference [ fhir:value "#addressUse" ] ] ]; fhir:StructureMap.url [ fhir:value "http://fhir.ch/ig/cda-fhir-maps/StructureMap/FhirToCdaTypes"]; fhir:StructureMap.version [ fhir:value "0.3.0"]; fhir:StructureMap.name [ fhir:value "FhirToCdaTypes"]; fhir:StructureMap.status [ fhir:value "draft"]; fhir:StructureMap.date [ fhir:value "2022-02-11T11:14:39+01:00"^^xsd:dateTime]; fhir:StructureMap.publisher [ fhir:value "ahdis"]; fhir:StructureMap.contact [ fhir:index 0; fhir:ContactDetail.name [ fhir:value "ahdis" ]; fhir:ContactDetail.telecom [ fhir:index 0; fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://www.ahdis.ch/" ] ] ]; fhir:StructureMap.description [ fhir:value "Adapted from https://github.com/HL7/ccda-to-fhir/tree/master/mappings\r\nCDA: http://build.fhir.org/ig/ahdis/cda-core-2.0/branches/master/index.html\r\nFHIR: http://hl7.org/fhir/r4/"]; fhir:StructureMap.copyright [ fhir:value "CC-BY-SA-4.0"]; fhir:StructureMap.structure [ fhir:index 0; fhir:StructureMap.structure.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/Identifier"; fhir:link ]; fhir:StructureMap.structure.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.structure.url [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/II"; fhir:link ]; fhir:StructureMap.structure.mode [ fhir:value "target" ] ]; fhir:StructureMap.group [ fhir:index 0; fhir:StructureMap.group.name [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "none" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "extension" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "extension" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "extension" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.url = 'http://hl7.org/fhir/StructureDefinition/iso21090-nullFlavor'" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "nullFlavor" ] ]; fhir:StructureMap.group.rule.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "extension" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "valueCode" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "valueCode" ] ]; fhir:StructureMap.group.rule.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "value" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "valueCode" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "cast" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "string" ] ] ] ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.name [ fhir:value "IdentifierII" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "Identifier" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "II" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "idAsUuid" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "src.system.empty() and src.value.startsWith('urn:uuid:')" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "root" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "value.substring(9).upper()" ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "idAsUuid" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "src.system = 'urn:ietf:rfc:3986'" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "root" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "value.substring(9).upper()" ] ] ] ], [ fhir:index 2; fhir:StructureMap.group.rule.name [ fhir:value "system" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "src.system.startsWith('urn:oid:')" ] ]; fhir:StructureMap.group.rule.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "oidident" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "system" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "root" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "system.substring(8)" ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "extension" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "value" ] ] ] ] ] ], [ fhir:index 2; fhir:StructureMap.group.name [ fhir:value "IntegerINT" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "integer" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "INT" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "integer" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ] ], [ fhir:index 3; fhir:StructureMap.group.name [ fhir:value "InstantTS" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.documentation [ fhir:value "group Identifier(source src : Identifier, target tgt : II) extends Any <> {\r\nsrc.system as system then {\r\nsrc.value as value then {\r\nvalue.value as v where system.value = 'urn:ietf:rfc:3986' -> tgt.root = cast(v, 'string') \"noExtension\";\r\nsystem.value as v where system.value != 'urn:ietf:rfc:3986' -> tgt.root = v then {\r\nvalue.value as val -> tgt.extension = cast(val, 'string') \"extension\";\r\n} \"withExtension\";\r\n} \"rootValue\";\r\n} \"root\";\r\nsrc.value as value -> tgt.root = '123' \"test\";\r\nsrc -> tgt.root = '123' \"test\";\r\nsrc.assigner as a then {\r\na.display as display then {\r\ndisplay.value as val -> tgt.assigningAuthorityName = cast(val, 'string');\r\n} \"display\";\r\n} \"assigner\";\r\nsrc.extension as ext where ext.url = 'http://hl7.org/fhir/cdaStructureDefinition/extension-displayable' -> tgt.displayable as displayable then {\r\next.value as v -> displayable.value = cast(v, 'string');\r\n} \"displayable\";\r\n}" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "instant" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "TS" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "copy" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ] ], [ fhir:index 4; fhir:StructureMap.group.name [ fhir:value "DateTimeTS" ]; fhir:StructureMap.group.extends [ fhir:value "InstantTS" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "dateTime" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "TS" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ] ], [ fhir:index 5; fhir:StructureMap.group.name [ fhir:value "DateTS" ]; fhir:StructureMap.group.extends [ fhir:value "InstantTS" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "date" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "TS" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ] ], [ fhir:index 6; fhir:StructureMap.group.name [ fhir:value "CodeCS" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "code" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "CS" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "code" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "code" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "c" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "cast" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "c" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "string" ] ] ] ] ], [ fhir:index 7; fhir:StructureMap.group.name [ fhir:value "CodeCE" ]; fhir:StructureMap.group.extends [ fhir:value "CodeCS" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "code" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "CE" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ] ], [ fhir:index 8; fhir:StructureMap.group.name [ fhir:value "CodeCD" ]; fhir:StructureMap.group.extends [ fhir:value "CodeCS" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "code" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "CD" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ] ], [ fhir:index 9; fhir:StructureMap.group.name [ fhir:value "CodingCE" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "Coding" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "CE" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "code" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "code" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "code" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "code" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "code" ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "system" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.startsWith('http:')" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "codeSystem" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "translate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "system" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "#uri2oid" ] ], [ fhir:index 2; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "code" ] ] ] ], [ fhir:index 2; fhir:StructureMap.group.rule.name [ fhir:value "system" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.startsWith('urn:oid:')" ] ]; fhir:StructureMap.group.rule.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "oidident" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "system" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "codeSystem" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "system.substring(8)" ] ] ] ] ], [ fhir:index 3; fhir:StructureMap.group.rule.name [ fhir:value "systemName1" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.startsWith('http:')" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "codeSystemName" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "translate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "system" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "#uri2system" ] ], [ fhir:index 2; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "code" ] ] ] ], [ fhir:index 4; fhir:StructureMap.group.rule.name [ fhir:value "systemName2" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "system" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.startsWith('urn:oid:')" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "codeSystemName" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "translate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "system" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "#oid2system" ] ], [ fhir:index 2; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "code" ] ] ] ], [ fhir:index 5; fhir:StructureMap.group.rule.name [ fhir:value "display" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "display" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "display" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "displayName" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "display" ] ] ] ] ], [ fhir:index 10; fhir:StructureMap.group.name [ fhir:value "CodeableConceptCE" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "CodeableConcept" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "CE" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "text" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "text" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "text" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "orginialText" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "originalText" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "originalText" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "text" ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "first" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "coding" ]; fhir:StructureMap.group.rule.source.listMode [ fhir:value "first" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "coding" ] ]; fhir:StructureMap.group.rule.dependent [ fhir:index 0; fhir:StructureMap.group.rule.dependent.name [ fhir:value "CodingCE" ]; fhir:StructureMap.group.rule.dependent.variable [ fhir:value "coding"; fhir:index 0 ], [ fhir:value "tgt"; fhir:index 1 ] ] ], [ fhir:index 2; fhir:StructureMap.group.rule.name [ fhir:value "translation" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "coding" ]; fhir:StructureMap.group.rule.source.listMode [ fhir:value "not_first" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "coding" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "translation" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "translation" ] ]; fhir:StructureMap.group.rule.dependent [ fhir:index 0; fhir:StructureMap.group.rule.dependent.name [ fhir:value "CodingCE" ]; fhir:StructureMap.group.rule.dependent.variable [ fhir:value "coding"; fhir:index 0 ], [ fhir:value "translation"; fhir:index 1 ] ] ] ], [ fhir:index 11; fhir:StructureMap.group.name [ fhir:value "AddressAD" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.documentation [ fhir:value "group CECodeableConcept(source src : CE, target tgt : CodeableConcept) extends Any <> {\r\nsrc.originalText -> tgt.text;\r\nsrc -> tgt.coding as coding then {\r\nsrc.code as code -> coding.code = cast(code, 'string');\r\nsrc.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\r\nsrc.displayName as display -> coding.display = cast(display, 'string');\r\n} \"code\";\r\nsrc.translation as translation -> tgt.coding as coding then {\r\ntranslation.code as code -> coding.code = cast(code, 'string');\r\ntranslation.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\r\ntranslation.displayName as display -> coding.display = cast(display, 'string');\r\n} \"translation\";\r\n}\r\ngroup CSCodeableConcept(source src : CS, target tgt : CodeableConcept) extends CECodeableConcept <> {\r\n}\r\ngroup CDCodeableConcept(source src : CD, target tgt : CodeableConcept) extends CECodeableConcept <> {\r\n}" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "Address" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "AD" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "streetAddress" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "line" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "streetAddressLine" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "line" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "line" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "postalCode" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "postalCode" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "postalCode" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "postalCode" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "postalCode" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 2; fhir:StructureMap.group.rule.name [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.postalCode.exists() = false" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "postalCode" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "postalCode" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "postalCode" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "NI" ] ] ] ], [ fhir:index 3; fhir:StructureMap.group.rule.name [ fhir:value "city" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "city" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "city" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "city" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "city" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 4; fhir:StructureMap.group.rule.name [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.city.exists() = false" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "city" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "city" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "city" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "NI" ] ] ] ], [ fhir:index 5; fhir:StructureMap.group.rule.name [ fhir:value "state" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "state" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "state" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "state" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "state" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 6; fhir:StructureMap.group.rule.name [ fhir:value "district" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "district" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "county" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "county" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "county" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 7; fhir:StructureMap.group.rule.name [ fhir:value "country" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "country" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "country" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "country" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "country" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 8; fhir:StructureMap.group.rule.name [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.country.exists() = false" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "country" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "country" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "country" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "nullFlavor" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "NI" ] ] ] ], [ fhir:index 9; fhir:StructureMap.group.rule.name [ fhir:value "addressUse" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "c" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "translate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "c" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "#addressUse" ] ], [ fhir:index 2; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "code" ] ] ] ] ], [ fhir:index 12; fhir:StructureMap.group.name [ fhir:value "ContactPointTEL" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "ContactPoint" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "TEL" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "value" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "value" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "iif(%src.system = 'phone', 'tel:', '') + iif(%src.system = 'fax', 'fax:', '') + iif(%src.system = 'email', 'mailto:', '') + iif(%src.system = 'url', 'http:', '') + value" ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "use" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this = 'home'" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "HP" ] ] ] ], [ fhir:index 2; fhir:StructureMap.group.rule.name [ fhir:value "use" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this = 'work'" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "WP" ] ] ] ], [ fhir:index 3; fhir:StructureMap.group.rule.name [ fhir:value "use" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this = 'old'" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "BAD" ] ] ] ], [ fhir:index 4; fhir:StructureMap.group.rule.name [ fhir:value "use" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this = 'temp'" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "TMP" ] ] ] ], [ fhir:index 5; fhir:StructureMap.group.rule.name [ fhir:value "use" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "use" ]; fhir:StructureMap.group.rule.source.condition [ fhir:value "$this = 'mobile'" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "use" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "MC" ] ] ] ] ], [ fhir:index 13; fhir:StructureMap.group.name [ fhir:value "HumanNameEN" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "HumanName" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "EN" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "family" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "family" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "family" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "family" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "family" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "given" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "given" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "given" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "given" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "given" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 2; fhir:StructureMap.group.rule.name [ fhir:value "prefix" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "prefix" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "prefix" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "prefix" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "prefix" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ], [ fhir:index 3; fhir:StructureMap.group.rule.name [ fhir:value "suffix" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "suffix" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "suffix" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "suffix" ] ], [ fhir:index 1; fhir:StructureMap.group.rule.target.context [ fhir:value "suffix" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "data" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ] ] ] ] ], [ fhir:index 14; fhir:StructureMap.group.name [ fhir:value "QuantityPQ" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "Quantity" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "PQ" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "code" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "code" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "code" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "unit" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "code" ] ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "value" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "value" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "value" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0; fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "value" ] ] ] ] ], [ fhir:index 15; fhir:StructureMap.group.name [ fhir:value "RatioRTOPQPQ" ]; fhir:StructureMap.group.extends [ fhir:value "Any" ]; fhir:StructureMap.group.typeMode [ fhir:value "types" ]; fhir:StructureMap.group.input [ fhir:index 0; fhir:StructureMap.group.input.name [ fhir:value "src" ]; fhir:StructureMap.group.input.type [ fhir:value "Ratio" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1; fhir:StructureMap.group.input.name [ fhir:value "tgt" ]; fhir:StructureMap.group.input.type [ fhir:value "RTO_PQ_PQ" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ]; fhir:StructureMap.group.rule [ fhir:index 0; fhir:StructureMap.group.rule.name [ fhir:value "numerator" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "numerator" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "numerator" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "numerator" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "targetNumerator" ] ]; fhir:StructureMap.group.rule.dependent [ fhir:index 0; fhir:StructureMap.group.rule.dependent.name [ fhir:value "QuantityPQ" ]; fhir:StructureMap.group.rule.dependent.variable [ fhir:value "numerator"; fhir:index 0 ], [ fhir:value "targetNumerator"; fhir:index 1 ] ] ], [ fhir:index 1; fhir:StructureMap.group.rule.name [ fhir:value "denominator" ]; fhir:StructureMap.group.rule.source [ fhir:index 0; fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "denominator" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "denominator" ] ]; fhir:StructureMap.group.rule.target [ fhir:index 0; fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ]; fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "denominator" ]; fhir:StructureMap.group.rule.target.variable [ fhir:value "targetDenominator" ] ]; fhir:StructureMap.group.rule.dependent [ fhir:index 0; fhir:StructureMap.group.rule.dependent.name [ fhir:value "QuantityPQ" ]; fhir:StructureMap.group.rule.dependent.variable [ fhir:value "denominator"; fhir:index 0 ], [ fhir:value "targetDenominator"; fhir:index 1 ] ] ] ] . # - ontology header ------------------------------------------------------------ a owl:Ontology; owl:imports fhir:fhir.ttl . # -------------------------------------------------------------------------------------