Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hl7.Fhir.ElementModel.StructuralTypeException: 'Type checking the data: Since type Encounter is not a primitive, it cannot have a value (at start)' #2468

Closed
huang-tzu opened this issue May 23, 2023 · 3 comments

Comments

@huang-tzu
Copy link

Having an issue with the following:

LABM_13=>2019-03-29

mapping at Encounter.period.start

But it's shows wrong text
Hl7.Fhir.ElementModel.StructuralTypeException: 'Type checking the data: Since type Encounter is not a primitive, it cannot have a value (at start)'

In FHIR R4, example of Encounter is Encounter.period.start
image

so I can't understand why has this wrong text

@marcovisserFurore
Copy link
Member

Hi @huang-tzu, I am trying to figure out what you are doing here. Do you have a json file and you trying to parse it? Or are you performing a FhirPath expression to a Poco?

@huang-tzu
Copy link
Author

huang-tzu commented May 24, 2023

thanks for your reply.
yes, I'm in performing a FhirPath expression to a Poco.
Procedre of resource doesn't have this type of problem.
for example,
Procedure.performedPeriod.end
using 2019-03-29T01:05

by the way
Encounter.period.end doesn't have any error text,too

@ewoutkramer
Copy link
Member

I think you should provide us with a full snippet, including the json you are parsing otherwise we will not have enough context to help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants