This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) 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" : "Consent5to4B",
"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/Consent5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Consent5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for Consent: R5 to R4B'</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>ConsentDataMeaning<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-consent-data-meaning.html\" title=\"Consent Data Meaning\">http://hl7.org/fhir/consent-data-meaning</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4B/codesystem-consent-data-meaning.html\" title=\"ConsentDataMeaning\">http://hl7.org/fhir/4.3/consent-data-meaning</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>instance <b>-</b> t<span style=\"color: navy\">:</span>instance\r\n s<span style=\"color: navy\">:</span>related <b>-</b> t<span style=\"color: navy\">:</span>related\r\n s<span style=\"color: navy\">:</span>dependents <b>-</b> t<span style=\"color: navy\">:</span>dependents\r\n s<span style=\"color: navy\">:</span>authoredby <b>-</b> t<span style=\"color: navy\">:</span>authoredby\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> "</span>ConsentProvisionType<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-consent-provision-type.html\" title=\"Consent Provision Type\">http://hl7.org/fhir/consent-provision-type</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4B/codesystem-consent-provision-type.html\" title=\"ConsentProvisionType\">http://hl7.org/fhir/4.3/consent-provision-type</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>deny <b>-</b> t<span style=\"color: navy\">:</span>deny\r\n s<span style=\"color: navy\">:</span>permit <b>-</b> t<span style=\"color: navy\">:</span>permit\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> "</span>ConsentState<span style=\"color: navy\">" {\r\n</span><b> prefix </b>s<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R5/codesystem-consent-state-codes.html\" title=\"Consent State\">http://hl7.org/fhir/consent-state-codes</a><span style=\"color: navy\">"\r\n</span><b> prefix </b>t<span style=\"color: navy\"> = "</span><a href=\"http://hl7.org/fhir/R4B/codesystem-consent-state-codes.html\" title=\"ConsentState\">http://hl7.org/fhir/4.3/consent-state-codes</a><span style=\"color: navy\">"\r\n</span>\r\n s<span style=\"color: navy\">:</span>draft <b>-</b> t<span style=\"color: navy\">:</span>draft\r\n s<span style=\"color: navy\">:</span>active <b>-</b> t<span style=\"color: navy\">:</span>active\r\n s<span style=\"color: navy\">:</span>inactive <b>-</b> t<span style=\"color: navy\">:</span>inactive\r\n s<span style=\"color: navy\">:</span>"not-done" <b>-</b> t<span style=\"color: navy\">:</span>rejected\r\n s<span style=\"color: navy\">:</span>"entered-in-error" <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">"</span>entered-in-error<span style=\"color: navy\">"</span>\r\n s<span style=\"color: navy\">:</span>unknown <b>-</b> t<span style=\"color: navy\">:</span>proposed\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/consent.html\" title=\"Consent\">http://hl7.org/fhir/StructureDefinition/Consent</a><span style=\"color: navy\">" </span><b>alias </b>ConsentR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/consent.html\" title=\"Consent\">http://hl7.org/fhir/4.3/StructureDefinition/Consent</a><span style=\"color: navy\">" </span><b>alias </b>ConsentR4B <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*5to4B<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>Consent<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ConsentR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ConsentR4B<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.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.status = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#ConsentState'</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.category<span style=\"color: navy\"><b> -> </b></span>tgt.category<span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.patient<span style=\"color: navy\">;</span>\r\n src.date<span style=\"color: navy\"><b> -> </b></span>tgt.dateTime<span style=\"color: navy\">;</span>\r\n src.grantee<span style=\"color: navy\"><b> -> </b></span>tgt.performer<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.period -> tgt.period;</span>\r\n src.sourceAttachment<span style=\"color: navy\"><b> -> </b></span>tgt.source<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.manager -> tgt.manager;</span>\r\n src.sourceReference<span style=\"color: navy\"><b> -> </b></span>tgt.source<span style=\"color: navy\">;</span>\r\n src.regulatoryBasis<span style=\"color: navy\"><b> -> </b></span>tgt.policyRule<span style=\"color: navy\">;</span>\r\n src.policyBasis<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span> tgt.policy<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.uri = <span style=\"color: maroon\">s.url</span><span style=\"color: navy\">;</span>\r\n src.verification<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.verification<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentVerification<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> <span style=\"color: navy\">// </span><span style=\"color: green\">src.policyText -> tgt.policyText;</span>\r\n src.provision<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.provision<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentProvision<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> <span style=\"color: navy\">// </span><span style=\"color: green\">src.decision as v -> tgt.decision = translate(v, '#ConsentProvisionType', 'code');</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">group ConsentPolicyBasis(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.reference -> tgt.reference;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.url -> tgt.url;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<b>group </b>ConsentVerification<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.verified<span style=\"color: navy\"><b> -> </b></span>tgt.verified<span style=\"color: navy\">;</span>\r\n src.verifiedWith<span style=\"color: navy\"><b> -> </b></span>tgt.verifiedWith<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.verificationType -> tgt.verificationType;</span>\r\n src.verificationDate<span style=\"color: navy\"><b> -> </b></span>tgt.verificationDate<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>ConsentProvision<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.period<span style=\"color: navy\"><b> -> </b></span>tgt.period<span style=\"color: navy\">;</span>\r\n src.actor<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.actor<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentProvisionActor<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 src.action<span style=\"color: navy\"><b> -> </b></span>tgt.action<span style=\"color: navy\">;</span>\r\n src.securityLabel<span style=\"color: navy\"><b> -> </b></span>tgt.securityLabel<span style=\"color: navy\">;</span>\r\n src.purpose<span style=\"color: navy\"><b> -> </b></span>tgt.purpose<span style=\"color: navy\">;</span>\r\n src.documentType<span style=\"color: navy\"><b> -> </b></span>tgt.class<span style=\"color: navy\">;</span>\r\n src.code<span style=\"color: navy\"><b> -> </b></span>tgt.code<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.resourceType -> tgt.resourceType;</span>\r\n src.dataPeriod<span style=\"color: navy\"><b> -> </b></span>tgt.dataPeriod<span style=\"color: navy\">;</span>\r\n src.data<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.data<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentProvisionData<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><b>group </b>ConsentProvisionActor<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.role<span style=\"color: navy\"><b> -> </b></span>tgt.role<span style=\"color: navy\">;</span>\r\n src.reference<span style=\"color: navy\"><b> -> </b></span>tgt.reference<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>ConsentProvisionData<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.meaning<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.meaning = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#ConsentDataMeaning'</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.reference<span style=\"color: navy\"><b> -> </b></span>tgt.reference<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"contained" : [
{
"resourceType" : "ConceptMap",
"id" : "ConsentDataMeaning",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/consent-data-meaning",
"target" : "http://hl7.org/fhir/4.3/consent-data-meaning",
"element" : [
{
"code" : "instance",
"target" : [
{
"code" : "instance",
"relationship" : "related-to"
}
]
},
{
"code" : "related",
"target" : [
{
"code" : "related",
"relationship" : "related-to"
}
]
},
{
"code" : "dependents",
"target" : [
{
"code" : "dependents",
"relationship" : "related-to"
}
]
},
{
"code" : "authoredby",
"target" : [
{
"code" : "authoredby",
"relationship" : "related-to"
}
]
}
]
}
]
},
{
"resourceType" : "ConceptMap",
"id" : "ConsentProvisionType",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/consent-provision-type",
"target" : "http://hl7.org/fhir/4.3/consent-provision-type",
"element" : [
{
"code" : "deny",
"target" : [
{
"code" : "deny",
"relationship" : "related-to"
}
]
},
{
"code" : "permit",
"target" : [
{
"code" : "permit",
"relationship" : "related-to"
}
]
}
]
}
]
},
{
"resourceType" : "ConceptMap",
"id" : "ConsentState",
"status" : "active",
"group" : [
{
"source" : "http://hl7.org/fhir/consent-state-codes",
"target" : "http://hl7.org/fhir/4.3/consent-state-codes",
"element" : [
{
"code" : "draft",
"target" : [
{
"code" : "draft",
"relationship" : "related-to"
}
]
},
{
"code" : "active",
"target" : [
{
"code" : "active",
"relationship" : "related-to"
}
]
},
{
"code" : "inactive",
"target" : [
{
"code" : "inactive",
"relationship" : "related-to"
}
]
},
{
"code" : "not-done",
"target" : [
{
"code" : "rejected",
"relationship" : "related-to"
}
]
},
{
"code" : "entered-in-error",
"target" : [
{
"code" : "entered-in-error",
"relationship" : "related-to"
}
]
},
{
"code" : "unknown",
"target" : [
{
"code" : "proposed",
"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/Consent5to4B",
"version" : "5.1.0-snapshot1",
"name" : "Consent5to4B",
"title" : "FML Conversion for Consent: R5 to R4B",
"status" : "active",
"date" : "2024-03-12T13:30:10+11:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "FMLConversionforConsentR5toR4B",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/Consent",
"mode" : "source",
"alias" : "ConsentR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/Consent",
"mode" : "target",
"alias" : "ConsentR4B"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*5to4B"
],
"group" : [
{
"name" : "Consent",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "ConsentR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "ConsentR4B",
"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" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#ConsentState"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "category",
"source" : [
{
"context" : "src",
"element" : "category",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "category",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "subject",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "date",
"source" : [
{
"context" : "src",
"element" : "date",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dateTime",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "grantee",
"source" : [
{
"context" : "src",
"element" : "grantee",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "performer",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.period -> tgt.period;"
},
{
"name" : "sourceAttachment",
"source" : [
{
"context" : "src",
"element" : "sourceAttachment",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "source",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.manager -> tgt.manager;"
},
{
"name" : "sourceReference",
"source" : [
{
"context" : "src",
"element" : "sourceReference",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "source",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "regulatoryBasis",
"source" : [
{
"context" : "src",
"element" : "regulatoryBasis",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "policyRule",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "policyBasis",
"source" : [
{
"context" : "src",
"element" : "policyBasis",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "policy",
"variable" : "t"
},
{
"context" : "t",
"element" : "uri",
"transform" : "copy",
"parameter" : [
{
"valueId" : "s.url"
}
]
}
]
},
{
"name" : "verification",
"source" : [
{
"context" : "src",
"element" : "verification",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "verification",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "ConsentVerification",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
],
"documentation" : "src.policyText -> tgt.policyText;"
},
{
"name" : "provision",
"source" : [
{
"context" : "src",
"element" : "provision",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "provision",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "ConsentProvision",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
],
"documentation" : "src.decision as v -> tgt.decision = translate(v, '#ConsentProvisionType', 'code');"
}
]
},
{
"name" : "ConsentVerification",
"extends" : "BackboneElement",
"documentation" : "group ConsentPolicyBasis(source src, target tgt) extends BackboneElement {\r\nsrc.reference -> tgt.reference;\r\nsrc.url -> tgt.url;\r\n}",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "verified",
"source" : [
{
"context" : "src",
"element" : "verified",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "verified",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "verifiedWith",
"source" : [
{
"context" : "src",
"element" : "verifiedWith",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "verifiedWith",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.verificationType -> tgt.verificationType;"
},
{
"name" : "verificationDate",
"source" : [
{
"context" : "src",
"element" : "verificationDate",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "verificationDate",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "ConsentProvision",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "period",
"source" : [
{
"context" : "src",
"element" : "period",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "period",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "actor",
"source" : [
{
"context" : "src",
"element" : "actor",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "actor",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "ConsentProvisionActor",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
},
{
"name" : "action",
"source" : [
{
"context" : "src",
"element" : "action",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "action",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "securityLabel",
"source" : [
{
"context" : "src",
"element" : "securityLabel",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "securityLabel",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "purpose",
"source" : [
{
"context" : "src",
"element" : "purpose",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "purpose",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "documentType",
"source" : [
{
"context" : "src",
"element" : "documentType",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "class",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "code",
"source" : [
{
"context" : "src",
"element" : "code",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "code",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
],
"documentation" : "src.resourceType -> tgt.resourceType;"
},
{
"name" : "dataPeriod",
"source" : [
{
"context" : "src",
"element" : "dataPeriod",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dataPeriod",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "data",
"source" : [
{
"context" : "src",
"element" : "data",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "data",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "ConsentProvisionData",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
}
]
},
{
"name" : "ConsentProvisionActor",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "role",
"source" : [
{
"context" : "src",
"element" : "role",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "role",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "reference",
"source" : [
{
"context" : "src",
"element" : "reference",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reference",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "ConsentProvisionData",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "meaning",
"source" : [
{
"context" : "src",
"element" : "meaning",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "meaning",
"transform" : "translate",
"parameter" : [
{
"valueId" : "v"
},
{
"valueString" : "#ConsentDataMeaning"
},
{
"valueString" : "code"
}
]
}
]
},
{
"name" : "reference",
"source" : [
{
"context" : "src",
"element" : "reference",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reference",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}