FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/Communication3to2

Packagehl7.fhir.uv.xver
Resource TypeStructureMap
IdCommunication3to2
FHIR VersionR5
Sourcehttp://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-Communication3to2.html
URLhttp://hl7.org/fhir/StructureMap/Communication3to2
Version0.1.0
Statusactive
Date2024-02-22T03:16:50+00:00
NameCommunication3to2
TitleCommunication Transforms: R3 to R2
Realmuv
Authorityhl7
DescriptionCommunicationTransformsR3toR2

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/Communication3to2'
/// name = 'Communication3to2'
/// title = 'Communication Transforms: R3 to R2'
/// status = 'active'

uses "http://hl7.org/fhir/3.0/Communication" alias Communication as source
uses "http://hl7.org/fhir/1.0/Communication" alias CommunicationR2 as target

imports "http://hl7.org/fhir/StructureMap/primitives3to2"
imports "http://hl7.org/fhir/StructureMap/DomainResource3to2"
imports "http://hl7.org/fhir/StructureMap/Attachment3to2"
imports "http://hl7.org/fhir/StructureMap/Identifier3to2"
imports "http://hl7.org/fhir/StructureMap/Reference3to2"
imports "http://hl7.org/fhir/StructureMap/CodeableConcept3to2"

group Communication(source src : Communication, target tgt : CommunicationR2) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "Communication-identifier";
  src.category -> tgt.category "Communication-category";
  src.sender -> tgt.sender "Communication-sender";
  src.recipient -> tgt.recipient "Communication-recipient";
  src.payload as vs0 -> tgt.payload as vt0 then cmmPayload(vs0, vt0) "Communication-payload";
  src.medium -> tgt.medium "Communication-medium";
  src.status -> tgt.status "Communication-status";
  src.context -> tgt.encounter "Communication-encounter";
  src.sent -> tgt.sent "Communication-sent";
  src.received -> tgt.received "Communication-received";
  src.reasonCode -> tgt.reason "Communication-reason";
  src.subject -> tgt.subject "Communication-subject";
  src.basedOn -> tgt.requestDetail "Communication-requestDetail";
}

group cmmPayload(source src, target tgt) {
  src.content -> tgt.content "payload-content";
}


Source

{
  "resourceType": "StructureMap",
  "id": "Communication3to2",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "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.xver"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "draft",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/StructureMap/Communication3to2",
  "version": "0.1.0",
  "name": "Communication3to2",
  "title": "Communication Transforms: R3 to R2",
  "status": "active",
  "date": "2024-02-22T03:16:50+00:00",
  "publisher": "HL7 International / FHIR Infrastructure",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "CommunicationTransformsR3toR2",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/3.0/Communication",
      "mode": "source",
      "alias": "Communication"
    },
    {
      "url": "http://hl7.org/fhir/1.0/Communication",
      "mode": "target",
      "alias": "CommunicationR2"
    }
  ],
  "import": [
    "http://hl7.org/fhir/StructureMap/primitives3to2",
    "http://hl7.org/fhir/StructureMap/DomainResource3to2",
    "http://hl7.org/fhir/StructureMap/Attachment3to2",
    "http://hl7.org/fhir/StructureMap/Identifier3to2",
    "http://hl7.org/fhir/StructureMap/Reference3to2",
    "http://hl7.org/fhir/StructureMap/CodeableConcept3to2"
  ],
  "group": [
    {
      "name": "Communication",
      "extends": "DomainResource",
      "typeMode": "type-and-types",
      "input": [
        {
          "name": "src",
          "type": "Communication",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "CommunicationR2",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "Communication-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": "Communication-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": "Communication-sender",
          "source": [
            {
              "context": "src",
              "element": "sender",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "sender",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-recipient",
          "source": [
            {
              "context": "src",
              "element": "recipient",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "recipient",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-payload",
          "source": [
            {
              "context": "src",
              "element": "payload",
              "variable": "vs0"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "payload",
              "variable": "vt0"
            }
          ],
          "dependent": [
            {
              "name": "cmmPayload",
              "parameter": [
                {
                  "valueId": "vs0"
                },
                {
                  "valueId": "vt0"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-medium",
          "source": [
            {
              "context": "src",
              "element": "medium",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "medium",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-status",
          "source": [
            {
              "context": "src",
              "element": "status",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "status",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-encounter",
          "source": [
            {
              "context": "src",
              "element": "context",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "encounter",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-sent",
          "source": [
            {
              "context": "src",
              "element": "sent",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "sent",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-received",
          "source": [
            {
              "context": "src",
              "element": "received",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "received",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-reason",
          "source": [
            {
              "context": "src",
              "element": "reasonCode",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "reason",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-subject",
          "source": [
            {
              "context": "src",
              "element": "subject",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "subject",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "Communication-requestDetail",
          "source": [
            {
              "context": "src",
              "element": "basedOn",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "requestDetail",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "cmmPayload",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "payload-content",
          "source": [
            {
              "context": "src",
              "element": "content",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "content",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}