Stream: dotnet
Topic: StructureDefinition
PS (Feb 11 2020 at 05:46):
How can we pass our own structure definition(In JSON or XML) to Hl7.Fhir.Specification (.net package provided by fire.ly) so that it can validate against the object?
I am able to provide one strucutre definition but the problem is that structure definition depends upon other structure definition.
How should I pass them.
Thanks
Kenneth Myhra (Feb 11 2020 at 07:56):
Take a look at the tests in ProfileAssertionTests.cs
If you pass a DirectorySource to your resolver the validator will pick up your profiles/structure definitions from that directory source
PS (Feb 11 2020 at 08:57):
Thank you
PS (Feb 11 2020 at 12:14):
If slicing has been done on extensions, does this validator validates the extensions ?
Kenneth Myhra (Feb 11 2020 at 13:53):
Slicing on resources works, I have not personally tested slicing on extensions so I cannot confirm that
PS (Feb 14 2020 at 11:43):
I tried with a structure definition but validation was not working on extensions. Is there any way to validate that with this library?
PS (Feb 24 2020 at 11:57):
@Mirjam Baltus Can you answer above question?
Ward Weistra (Feb 24 2020 at 12:51):
@LM Can you define:
was not working on extensions
Can you share what you did, what the outcome was and what you expected instead?
PS (Feb 25 2020 at 04:55):
@Ward Weistra I have one structure definition which has slicing done on extensions.
The sliced elements are of type Codeable Concept and valueReference.
In the FHIR JSON Message when I put URL of the element having Codeable Concept and instead of codeableConcept I gave valueString.
The above scenario should give error as in the Structure Definition for that URL, CodeableConcept is expected. But I didn't get any error.
Ward Weistra (Feb 25 2020 at 07:28):
Thanks @LM. Can you share the profile and the instance here? And check whether the profile and example are correct, for example by uploading the profile to Simplifier.net or vonk.fire.ly and validating the example against it?
PS (Feb 25 2020 at 10:51):
@Ward Weistra It was working as expected in vonk.fire.ly.
I cannot share structure definitions here but will try to create one and post it.
Last updated: Apr 12 2022 at 19:14 UTC