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

FHIR IG Statistics: StructureMap/BiologicallyDerivedProduct5to4B

Packagehl7.fhir.uv.xver
Resource TypeStructureMap
IdBiologicallyDerivedProduct5to4B
FHIR VersionR5
Sourcehttp://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-BiologicallyDerivedProduct5to4B.html
URLhttp://hl7.org/fhir/StructureMap/BiologicallyDerivedProduct5to4B
Version0.1.0
Statusactive
Date2024-02-22T03:16:50+00:00
NameBiologicallyDerivedProduct5to4B
TitleBiologicallyDerivedProduct Transforms: R5 to R4B
Realmuv
Authorityhl7
DescriptionBiologicallyDerivedProductTransformsR5toR4B

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/BiologicallyDerivedProduct5to4B'
/// name = 'BiologicallyDerivedProduct5to4B'
/// title = 'BiologicallyDerivedProduct Transforms: R5 to R4B'
/// status = 'active'

uses "http://hl7.org/fhir/5.0/BiologicallyDerivedProduct" alias BiologicallyDerivedProductR5 as source
uses "http://hl7.org/fhir/4.0/BiologicallyDerivedProduct" alias BiologicallyDerivedProductR4B as target

imports "http://hl7.org/fhir/StructureMap/*5to4B"

group BiologicallyDerivedProduct(source src : BiologicallyDerivedProductR5, target tgt : BiologicallyDerivedProductR4B) extends DomainResource <<type+>> {
  src.productCategory as s -> tgt.productCategory as t then BiologicallyDerivedProductCategory(s, t);
  src.productCode -> tgt.productCode;
  src.parent -> tgt.parent;
  src.request -> tgt.request;
  src.identifier -> tgt.identifier;
  src.collection as s -> tgt.collection as t then BiologicallyDerivedProductCollection(s, t);
}

group BiologicallyDerivedProductCategory(source src, target tgt) extends BackboneElement {
  src.code as s where code = 'organ' -> tgt = 'organ';
  src.code as s where code = 'tissue' -> tgt = 'tissue';
  src.code as s where code = 'fluid' -> tgt = 'fluid';
  src.code as s where code = 'cells' -> tgt = 'cells';
  src.code as s where code = 'biologicalAgent' -> tgt = 'biologicalAgent';
}

group BiologicallyDerivedProductCollection(source src, target tgt) extends BackboneElement {
  src.collector -> tgt.collector;
  src.source -> tgt.source;
  src.collected : dateTime -> tgt.collected;
  src.collected : Period -> tgt.collected;
}


Source

{
  "resourceType": "StructureMap",
  "id": "BiologicallyDerivedProduct5to4B",
  "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/BiologicallyDerivedProduct5to4B",
  "version": "0.1.0",
  "name": "BiologicallyDerivedProduct5to4B",
  "title": "BiologicallyDerivedProduct Transforms: R5 to R4B",
  "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": "BiologicallyDerivedProductTransformsR5toR4B",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/5.0/BiologicallyDerivedProduct",
      "mode": "source",
      "alias": "BiologicallyDerivedProductR5"
    },
    {
      "url": "http://hl7.org/fhir/4.0/BiologicallyDerivedProduct",
      "mode": "target",
      "alias": "BiologicallyDerivedProductR4B"
    }
  ],
  "import": [
    "http://hl7.org/fhir/StructureMap/*5to4B"
  ],
  "group": [
    {
      "name": "BiologicallyDerivedProduct",
      "extends": "DomainResource",
      "typeMode": "type-and-types",
      "input": [
        {
          "name": "src",
          "type": "BiologicallyDerivedProductR5",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "BiologicallyDerivedProductR4B",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "productCategory",
          "source": [
            {
              "context": "src",
              "element": "productCategory",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "productCategory",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "BiologicallyDerivedProductCategory",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        },
        {
          "name": "productCode",
          "source": [
            {
              "context": "src",
              "element": "productCode",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "productCode",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "parent",
          "source": [
            {
              "context": "src",
              "element": "parent",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "parent",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "request",
          "source": [
            {
              "context": "src",
              "element": "request",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "request",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "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": "collection",
          "source": [
            {
              "context": "src",
              "element": "collection",
              "variable": "s"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "collection",
              "variable": "t"
            }
          ],
          "dependent": [
            {
              "name": "BiologicallyDerivedProductCollection",
              "parameter": [
                {
                  "valueId": "s"
                },
                {
                  "valueId": "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "BiologicallyDerivedProductCategory",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "code",
          "source": [
            {
              "context": "src",
              "element": "code",
              "variable": "s",
              "condition": "code = 'organ'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "organ"
                }
              ]
            }
          ]
        },
        {
          "name": "code",
          "source": [
            {
              "context": "src",
              "element": "code",
              "variable": "s",
              "condition": "code = 'tissue'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "tissue"
                }
              ]
            }
          ]
        },
        {
          "name": "code",
          "source": [
            {
              "context": "src",
              "element": "code",
              "variable": "s",
              "condition": "code = 'fluid'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "fluid"
                }
              ]
            }
          ]
        },
        {
          "name": "code",
          "source": [
            {
              "context": "src",
              "element": "code",
              "variable": "s",
              "condition": "code = 'cells'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "cells"
                }
              ]
            }
          ]
        },
        {
          "name": "code",
          "source": [
            {
              "context": "src",
              "element": "code",
              "variable": "s",
              "condition": "code = 'biologicalAgent'"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "transform": "copy",
              "parameter": [
                {
                  "valueString": "biologicalAgent"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "BiologicallyDerivedProductCollection",
      "extends": "BackboneElement",
      "input": [
        {
          "name": "src",
          "mode": "source"
        },
        {
          "name": "tgt",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "collector",
          "source": [
            {
              "context": "src",
              "element": "collector",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "collector",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "source",
          "source": [
            {
              "context": "src",
              "element": "source",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "source",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "collectedDateTime",
          "source": [
            {
              "context": "src",
              "type": "dateTime",
              "element": "collected",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "collected",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        },
        {
          "name": "collectedPeriod",
          "source": [
            {
              "context": "src",
              "type": "Period",
              "element": "collected",
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "collected",
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "dependent": [
            {
              "name": "DefaultMappingGroupAnonymousAlias",
              "parameter": [
                {
                  "valueId": "vvv"
                },
                {
                  "valueId": "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}