hl7ch / cda-fhir-maps

Maps (FHIR Mapping Language) to transform documents from CDA to FHIR and back
Apache License 2.0
19 stars 8 forks source link

list CDA -> FHIR: Composition section missing #54

Closed ziegm closed 2 years ago

ziegm commented 2 years ago

CDA: https://ehealthsuisse.ihe-europe.net/gazelle/testInstanceData/ti/50560/PML_01_valid.xml

transformed FHIR:

{
  "resourceType": "Bundle",
  "identifier": {
    "system": "urn:ietf:rfc:3986",
    "value": "urn:uuid:db2a8efe-199a-450e-8608-1724c519c9e2"
  },
  "type": "document",
  "timestamp": "2022-09-14T15:10:31+02:00",
  "entry": [
    {
      "fullUrl": "urn:uuid:475a0618-6975-4a7e-b653-6af31102ce1c",
      "resource": {
        "resourceType": "Composition",
        "language": "fr-CH",
        "extension": [
          {
            "url": "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient",
            "valueReference": {
              "reference": "urn:uuid:211b9ebc-24fc-4a7a-8e87-8b9b7d8d2bde"
            }
          }
        ],
        "identifier": {
          "system": "urn:ietf:rfc:3986",
          "value": "urn:uuid:db2a8efe-199a-450e-8608-1724c519c9e2"
        },
        "status": "final",
        "type": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "56445-0",
              "display": "Medication summary"
            },
            {
              "system": "http://snomed.info/sct",
              "code": "721912009",
              "display": "Medication summary document (record artifact)"
            }
          ]
        },
        "subject": {
          "reference": "urn:uuid:c7c9ac2d-e635-4f9c-8e60-b097828c4350"
        },
        "date": "2022-09-14T15:10:31+02:00",
        "author": [
          {
            "extension": [
              {
                "url": "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time",
                "valueDateTime": "2022-09-14T15:10:31+02:00"
              }
            ],
            "reference": "urn:uuid:59b163f5-1d3d-4074-9f7a-354a75e5b425"
          }
        ],
        "title": "Liste de médication",
        "confidentiality": "N",
        "_confidentiality": {
          "extension": [
            {
              "url": "http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "17621005",
                    "display": "Normal (qualifier value)"
                  }
                ]
              }
            }
          ]
        },
        "custodian": {
          "reference": "urn:uuid:edcf2679-219f-4cc1-abf2-758a7f83efb5"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:c7c9ac2d-e635-4f9c-8e60-b097828c4350",
      "resource": {
        "resourceType": "Patient",
        "identifier": [
          {
            "type": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code": "MR"
                }
              ]
            },
            "system": "urn:oid:2.16.756.5.30.1.191.1.0.2.1",
            "value": "7a4ec59f-a024-4cfb-bc04-3339c53cb9ac"
          }
        ],
        "name": [
          {
            "family": "Behluli-Qazimi",
            "given": [
              "Leandra Corina"
            ]
          }
        ],
        "gender": "female",
        "birthDate": "2002-12-21"
      }
    },
    {
      "fullUrl": "urn:uuid:59b163f5-1d3d-4074-9f7a-354a75e5b425",
      "resource": {
        "resourceType": "Device",
        "identifier": [
          {
            "system": "urn:oid:2.51.1.3",
            "value": "7601001407428"
          }
        ],
        "deviceName": [
          {
            "name": "unkown",
            "type": "manufacturer-name"
          }
        ],
        "modelNumber": "PMP CARA v0.1"
      }
    },
    {
      "fullUrl": "urn:uuid:edcf2679-219f-4cc1-abf2-758a7f83efb5",
      "resource": {
        "resourceType": "Organization",
        "identifier": [
          {
            "system": "urn:oid:2.51.1.3",
            "value": "7601001407428"
          }
        ],
        "name": "Association CARA"
      }
    },
    {
      "fullUrl": "urn:uuid:211b9ebc-24fc-4a7a-8e87-8b9b7d8d2bde",
      "resource": {
        "resourceType": "Organization",
        "identifier": [
          {
            "system": "urn:oid:2.51.1.3",
            "value": "7601001407428"
          }
        ],
        "name": "Association CARA"
      }
    }
  ]
}
ziegm commented 2 years ago

https://ehealthsuisse.ihe-europe.net/gazelle/testing/test/test/TestInstance.seam?id=39974&cid=134866

oliveregger commented 2 years ago

should work, @ziegm can you check?

ziegm commented 2 years ago

yes, it works, thanks