Skip to content

Context Validation not working as expected #402

@NilsFa1

Description

@NilsFa1

I am currently encountering errors related to the context of an extension.

The extension is located within the Human.family element, and error indicates that the extension is expected to be inside the Human.family element. Am I understanding this correctly, or could there be a misunderstanding?

[ERROR] Extension used outside of appropriate contexts. Expected context to be one of: {ELEMENT,HumanName.family} (at Bundle.entry[1].resource[0].name[0].family[0].extension[0]

The Element:

            <name>
               <use value="official"/>
               <family value="LastnameExample">
                  <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name">
                     <valueString value="LastnameExample"/>
                  </extension>
               </family>
               <given value="FirstNameExample"/>
            </name>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions