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

FHIR IG Statistics: StructureMap/SupplyDelivery2to3

Packagehl7.fhir.uv.xver
TypeStructureMap
IdSupplyDelivery2to3
FHIR VersionR5
Sourcehttp://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-SupplyDelivery2to3.html
URLhttp://hl7.org/fhir/StructureMap/SupplyDelivery2to3
Version0.1.0
Statusactive
Date2024-02-22T03:16:50+00:00
NameSupplyDelivery2to3
TitleSupplyDelivery Transforms: R2 to R3
Realmuv
Authorityhl7
DescriptionSupplyDeliveryTransformsR2toR3

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/SupplyDelivery2to3'
/// name = 'SupplyDelivery2to3'
/// title = 'SupplyDelivery Transforms: R2 to R3'
/// status = 'active'

uses "http://hl7.org/fhir/1.0/SupplyDelivery" alias SupplyDeliveryR2 as source
uses "http://hl7.org/fhir/3.0/SupplyDelivery" alias SupplyDelivery as target

imports "http://hl7.org/fhir/StructureMap/*2to3"

group SupplyDelivery(source src : SupplyDeliveryR2, target tgt : SupplyDelivery) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "SupplyDelivery-identifier";
  src.status -> tgt.status "SupplyDelivery-status";
  src.patient -> tgt.patient "SupplyDelivery-patient";
  src.type -> tgt.type "SupplyDelivery-type";
  src.quantity as v ->  tgt.suppliedItem as si,  si.quantity = v "SupplyDelivery-quantity";
  src.suppliedItem as v ->  tgt.suppliedItem as si,  si.item = v "SupplyDelivery-suppliedItem";
  src.supplier -> tgt.supplier "SupplyDelivery-supplier";
  src.whenPrepared as v ->  tgt.extension as t,  t.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared',  t.value = v "SupplyDelivery-whenPrepared";
  src.time -> tgt.occurrence "SupplyDelivery-time";
  src.destination -> tgt.destination "SupplyDelivery-destination";
  src.receiver -> tgt.receiver "SupplyDelivery-receiver";
}


Source

{
  "resourceType": "StructureMap",
  "id": "SupplyDelivery2to3",
  "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/SupplyDelivery2to3",
  "version": "0.1.0",
  "name": "SupplyDelivery2to3",
  "title": "SupplyDelivery Transforms: R2 to R3",
  "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": "SupplyDeliveryTransformsR2toR3",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/1.0/SupplyDelivery",
      "mode": "source",
      "alias": "SupplyDeliveryR2"
    },
    {
      "url": "http://hl7.org/fhir/3.0/SupplyDelivery",
      "mode": "target",
      "alias": "SupplyDelivery"
    }
  ],
  "import": [
    "http://hl7.org/fhir/StructureMap/*2to3"
  ],
  "group": [
    {
      "name": "SupplyDelivery",
      "extends": "DomainResource",
      "typeMode": "type-and-types",
      "input": [
        {
          "name": "src",
          "type": "SupplyDeliveryR2",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "SupplyDelivery",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "SupplyDelivery-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": "SupplyDelivery-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": "SupplyDelivery-patient",
          "source": [
            {
              "context": "src",
              "element": "patient",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "patient",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-type",
          "source": [
            {
              "context": "src",
              "element": "type",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "type",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-quantity",
          "source": [
            {
              "context": "src",
              "element": "quantity",
              "variable": "v"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "suppliedItem",
              "variable": "si"
            },
            {
              "context": "si",
              "element": "quantity",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "v"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-suppliedItem",
          "source": [
            {
              "context": "src",
              "element": "suppliedItem",
              "variable": "v"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "suppliedItem",
              "variable": "si"
            },
            {
              "context": "si",
              "element": "item",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "v"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-supplier",
          "source": [
            {
              "context": "src",
              "element": "supplier",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "supplier",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-whenPrepared",
          "source": [
            {
              "context": "src",
              "element": "whenPrepared",
              "variable": "v"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "extension",
              "variable": "t"
            },
            {
              "context": "t",
              "element": "url",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared"
                }
              ]
            },
            {
              "context": "t",
              "element": "value",
              "transform": "copy",
              "parameter": [
                {
                  "valueId": "v"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-time",
          "source": [
            {
              "context": "src",
              "element": "time",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "occurrence",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-destination",
          "source": [
            {
              "context": "src",
              "element": "destination",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "destination",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "SupplyDelivery-receiver",
          "source": [
            {
              "context": "src",
              "element": "receiver",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "receiver",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}