This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "Person5to4",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/Person5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Person5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for Person: R5 to R4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> "</span>AdministrativeGender<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-administrative-gender.html\" title=\"AdministrativeGender\">http://hl7.org/fhir/administrative-gender</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4/codesystem-administrative-gender.html\" title=\"AdministrativeGender\">http://hl7.org/fhir/4.0/administrative-gender</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>male <b>-</b> t<span style=\"color: navy\">:</span>male\r\n s<span style=\"color: navy\">:</span>female <b>-</b> t<span style=\"color: navy\">:</span>female\r\n s<span style=\"color: navy\">:</span>other <b>-</b> t<span style=\"color: navy\">:</span>other\r\n s<span style=\"color: navy\">:</span>unknown <b>-</b> t<span style=\"color: navy\">:</span>unknown\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> "</span>IdentityAssuranceLevel<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-identity-assuranceLevel.html\" title=\"Identity Assurance Level\">http://hl7.org/fhir/identity-assuranceLevel</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4/codesystem-identity-assuranceLevel.html\" title=\"IdentityAssuranceLevel\">http://hl7.org/fhir/4.0/identity-assuranceLevel</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>level1 <b>-</b> t<span style=\"color: navy\">:</span>level1\r\n s<span style=\"color: navy\">:</span>level2 <b>-</b> t<span style=\"color: navy\">:</span>level2\r\n s<span style=\"color: navy\">:</span>level3 <b>-</b> t<span style=\"color: navy\">:</span>level3\r\n s<span style=\"color: navy\">:</span>level4 <b>-</b> t<span style=\"color: navy\">:</span>level4\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/person.html\" title=\"Person\">http://hl7.org/fhir/StructureDefinition/Person</a><span style=\"color: navy\">" </span><b>alias </b>PersonR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/person.html\" title=\"Person\">http://hl7.org/fhir/4.0/StructureDefinition/Person</a><span style=\"color: navy\">" </span><b>alias </b>PersonR4 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*5to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>Person<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>PersonR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>PersonR4<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n src.active<span style=\"color: navy\"><b> -> </b></span>tgt.active<span style=\"color: navy\">;</span>\r\n src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name<span style=\"color: navy\">;</span>\r\n src.telecom<span style=\"color: navy\"><b> -> </b></span>tgt.telecom<span style=\"color: navy\">;</span>\r\n src.gender<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.gender = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#AdministrativeGender'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.birthDate<span style=\"color: navy\"><b> -> </b></span>tgt.birthDate<span style=\"color: navy\">;</span>\r\n src.address<span style=\"color: navy\"><b> -> </b></span>tgt.address<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.deceased : boolean -> tgt.deceased;</span>\r\n src.photo<span style=\"color: navy\"><b> -> </b></span>tgt.photo<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.maritalStatus -> tgt.maritalStatus;</span>\r\n src.managingOrganization<span style=\"color: navy\"><b> -> </b></span>tgt.managingOrganization<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.communication as s -> tgt.communication as t then PersonCommunication(s,t);</span>\r\n src.link<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.link<b> as </b><span style=\"color: maroon\">t</span><b> then </b>PersonLink<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">group PersonCommunication(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.language -> tgt.language;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.preferred -> tgt.preferred;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<b>group </b>PersonLink<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.target<span style=\"color: navy\"><b> -> </b></span>tgt.target<span style=\"color: navy\">;</span>\r\n src.assurance<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.assurance = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#IdentityAssuranceLevel'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"contained" : [
{
"resourceType" : "ConceptMap",
"id" : "AdministrativeGender",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/administrative-gender",
"target" : "http://hl7.org/fhir/4.0/administrative-gender",
"element" : [
{
"code" : "male",
"target" : [
{
"code" : "male",
"relationship" : "related-to"
}
]
},
{
"code" : "female",
"target" : [
{
"code" : "female",
"relationship" : "related-to"
}
]
},
{
"code" : "other",
"target" : [
{
"code" : "other",
"relationship" : "related-to"
}
]
},
{
"code" : "unknown",
"target" : [
{
"code" : "unknown",
"relationship" : "related-to"
}
]
}
]
}
]
},
{
"resourceType" : "ConceptMap",
"id" : "IdentityAssuranceLevel",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/identity-assuranceLevel",
"target" : "http://hl7.org/fhir/4.0/identity-assuranceLevel",
"element" : [
{
"code" : "level1",
"target" : [
{
"code" : "level1",
"relationship" : "related-to"
}
]
},
{
"code" : "level2",
"target" : [
{
"code" : "level2",
"relationship" : "related-to"
}
]
},
{
"code" : "level3",
"target" : [
{
"code" : "level3",
"relationship" : "related-to"
}
]
},
{
"code" : "level4",
"target" : [
{
"code" : "level4",
"relationship" : "related-to"
}
]
}
]
}
]
}
],
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "trial-use",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/Person5to4",
"version" : "5.1.0-ballot1",
"name" : "Person5to4",
"title" : "FML Conversion for Person: R5 to R4",
"status" : "active",
"date" : "2023-12-19T08:40:03+11:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "FMLConversionforPersonR5toR4",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/Person",
"mode" : "source",
"alias" : "PersonR5"
},
{
"url" : "http://hl7.org/fhir/4.0/StructureDefinition/Person",
"mode" : "target",
"alias" : "PersonR4"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*5to4"
],
"group" : [
{
"name" : "Person",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "PersonR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "PersonR4",
"mode" : "target"
}
],
"rule" : [
{
"name" : "identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "active",
"source" : [
{
"context" : "src",
"element" : "active",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "active",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "name",
"source" : [
{
"context" : "src",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "telecom",
"source" : [
{
"context" : "src",
"element" : "telecom",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "telecom",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "gender",
"source" : [
{
"context" : "src",
"element" : "gender",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "gender",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#AdministrativeGender"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "birthDate",
"source" : [
{
"context" : "src",
"element" : "birthDate",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "birthDate",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "address",
"source" : [
{
"context" : "src",
"element" : "address",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "address",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.deceased : boolean -> tgt.deceased;"
},
{
"name" : "photo",
"source" : [
{
"context" : "src",
"element" : "photo",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "photo",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.maritalStatus -> tgt.maritalStatus;"
},
{
"name" : "managingOrganization",
"source" : [
{
"context" : "src",
"element" : "managingOrganization",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "managingOrganization",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.communication as s -> tgt.communication as t then PersonCommunication(s,t);"
},
{
"name" : "link",
"source" : [
{
"context" : "src",
"element" : "link",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "link",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "PersonLink",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
}
]
},
{
"name" : "PersonLink",
"extends" : "BackboneElement",
"documentation" : "group PersonCommunication(source src, target tgt) extends BackboneElement {\r\nsrc.language -> tgt.language;\r\nsrc.preferred -> tgt.preferred;\r\n}",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "target",
"source" : [
{
"context" : "src",
"element" : "target",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "target",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "assurance",
"source" : [
{
"context" : "src",
"element" : "assurance",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "assurance",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#IdentityAssuranceLevel"
},
{
"valueString" : "code"
}
]
}
]
}
]
}
]
}
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.extensions#5.1.0-ballot1 based on FHIR 5.0.0. Generated 2023-12-19
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change