ewoutkramer / fhir-net-fhirpath

[Obsolete - see below] .NET Implementation of the HL7 FhirPath Query language
Other
8 stars 5 forks source link

Could not load type 'Hl7.FhirPath.PartialDateTime #13

Closed brillox closed 7 years ago

brillox commented 7 years ago

Hi, I am using Hl7.Fhir.STU3 . I have adapted my code as I was using STU2 before but now I get this exception when serialzing a bundle object eitehr using Json.net string output = JsonConvert.SerializeObject(myEntryComp); or RetJson = FhirSerializer.SerializeResourceToJson(myBundle);

The error is Could not load type 'Hl7.FhirPath.PartialDateTime' from assembly 'Hl7.FhirPath, Version=0.4.2.0

ewoutkramer commented 7 years ago

The cause of this is that Hl7.FhirPath 0.4.2.0 has a breaking change, and the STU3 library is built against 0.4.1. If you downgrade your hl7.fhirpath library to 0.4.1, it should work again!

brillox commented 7 years ago

Wow!! thank you for the very fast answer!!!

I am using Hl7.Fhir.STU3 v0.93.1 alpha1 , I guess I have to downgrade taht too?

brillox commented 7 years ago

no reason to downgrade Hl7.Fhir.STU3; as you suggested downgrade your hl7.fhirpath library to 0.4.1 it worked fine