Coder Social home page Coder Social logo

Comments (2)

imkacarlson avatar imkacarlson commented on June 16, 2024

This is not limited to just an Encounter

I did the same thing as above but used this Observation-example.xml as the input xml and I got a similar error:

org.hl7.fhir.exceptions.FHIRException: Exception executing transform tgt.encounter = create() as vvv on Rule "context": Attempt to get types for an invalid property 'encounter' on type Observation at org.hl7.fhir.r5.utils.StructureMapUtilities.runTransform(StructureMapUtilities.java:1969) at org.hl7.fhir.r5.utils.StructureMapUtilities.processTarget(StructureMapUtilities.java:1840) at org.hl7.fhir.r5.utils.StructureMapUtilities.executeRule(StructureMapUtilities.java:1427) at org.hl7.fhir.r5.utils.StructureMapUtilities.executeGroup(StructureMapUtilities.java:1414) at org.hl7.fhir.r5.utils.StructureMapUtilities.transform(StructureMapUtilities.java:1376) at org.hl7.fhir.validation.ValidationEngine.transformVersion(ValidationEngine.java:1822) at org.hl7.fhir.validation.cli.services.ValidationService.transformVersion(ValidationService.java:169) at org.hl7.fhir.validation.Validator.main(Validator.java:179) Caused by: org.hl7.fhir.exceptions.FHIRException: Attempt to get types for an invalid property 'encounter' on type Observation at org.hl7.fhir.r5.model.Base.getTypesForProperty(Base.java:312) at org.hl7.fhir.r5.elementmodel.Element.getTypesForProperty(Element.java:717) at org.hl7.fhir.r5.utils.StructureMapUtilities.runTransform(StructureMapUtilities.java:1865) ... 7 more

If you look at the Observation R3 to R4 conversions you see that src.context -> tgt.encounter showing that the names change between the versions. The same is true when we look at the Encounter R3 to R4 conversions and see that src.reason -> tgt.reasonCode. There seems to be an issue converting any element within a resource that has a name change from R3 to R4

from org.hl7.fhir.core.

stale avatar stale commented on June 16, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

from org.hl7.fhir.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.