Questions tagged [fhir-net-api]

13 questions
1
vote
1 answer

Error in binding Given Property of Patient(FHIR .net model as request model) in Core 3.1 App

I have .net core 3.1 web app, Use HL7.Fhir.R4(1.7.0). I use Patient model as request model, [HttpPost] public Hl7.Fhir.Model.Patient Create([FromBody] Hl7.Fhir.Model.Patient patient) { //Use the client to create…
Darshana
  • 601
  • 2
  • 9
  • 20
1
vote
2 answers

FHIR's General-Purpose Data Type Object Parsing From JSON in .NET Core

I am using Hl7.Fhir.R4 library in my project which is an API Wrapper (in ASP.NET Core 2.2) around Azure API for FHIR. In a View Model, I declared a FHIR Element (FHIR's General-Purpose Data Type) as a property. Example: public class MyPatient { …
0
votes
2 answers

Hl7.Fhir.ElementModel.StructuralTypeException: Type checking the data: Encountered unknown element 'timestamp' at location 'Bundle.timestamp[0]

I am quite new in FHIR development. f I try to do the same thing with the other public test server (https://server.fire.ly) This is my code getting below exception. Hl7.Fhir.ElementModel.StructuralTypeException: Type checking the data: Encountered…
Anil patil
  • 31
  • 7
0
votes
0 answers

Post XML(fhir+xml) or JSON(fhir+json) to Web Api post Method (FHIR server hl7.fhir.stu3)

I am working on a medical application based on HL7 FHIR. I am trying to add new record using XML and JSON both. But all while posting XML I get is the '400 Bad Request'. The XML I am trying to POST is:
0
votes
3 answers

Obtain list of dependencies for a given validation resource like a StructureDefinition, ValueSet etc.?

Profile packages list their dependencies in the form of packages and their versions, but the dependency graph derived from that information is not always sufficient for configuring a validation context. Better analysis could be done if the…
DarthGizka
  • 4,347
  • 1
  • 24
  • 36
0
votes
1 answer

Get selected extensions or no extension returned from bundle search FHIR using c#

I'm totally new to this so pardon my use of terminologies. I want to know how can i use SearchParams so i can select not all but a few selected extensions or dont include any extention in the bundle when i search for a bundle. Suppose my bundle has…
0
votes
1 answer

How to keep Firely.Terminal from trashing the FHIR package cache?

One of the brilliant aspects of Firely.Terminal is its ability to interoperate with the local FHIR package cache (~/.fhir) in a way that is fully compatible with HAPI tools using the cache. Sadly, that no longer seems to be the case. Today I updated…
DarthGizka
  • 4,347
  • 1
  • 24
  • 36
0
votes
2 answers

C# parse FHIR bundle - read resources

I'm new to working with FHIR and need help with parsing a FHIR-Bundle (xml) in C#. I'm able to get the URL of the patient- or organization-resource from the composition-resource in the bundle, but need to store the values of the resources (e.g. name…
AB1989
  • 3
  • 3
0
votes
1 answer

How to make a fake ValueSet resource (with e.g. currency symbols) for when terminology servers are not available?

Resolving codings like currency symbols (e.g. urn:iso:std:iso:4217) requires that HAPI have access to the Internet (in order to contact tx.fhir.org), which means that these codings cannot be validated when working completely offline, as is often…
DarthGizka
  • 4,347
  • 1
  • 24
  • 36
0
votes
2 answers

Convert fhir between XML and Json

Is there a way to convert a fhir bundle from json to xml by means that is independent of the FHIR version used? I think the .net fhir api by firely can do it, but any given version of the api seems to be specific to a certain release of FHIR.
Jeremy
  • 44,950
  • 68
  • 206
  • 332
0
votes
1 answer

Resolving references to contained resources - does versioning apply?

When resolving absolute or relative reference, we must take into account the version of the resource as specified in meta.versionId of the resource being referenced, if the reference contains a versionId. Does the same logic apply to references to…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
0
votes
1 answer

Finding a resource in a bundle by reference using FHIR nuget package

I'm consuming a FHIR bundle, and trying to resolve references to resources within the bundle, usin the .net FHIR R4 nuget package. I'm using this information as a reference. How to resolve a reference in a Bundle: If the reference is not an…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
0
votes
1 answer

fhir-net-api (STU3) - Validating

I have been using the Hl7.org tool org.hl7.fhir.validator.jar file to validate my messages but I would like to add this function it to my .Net project. Once I parse the message is there a class I can call to validate the Structure. Is there a…
user5843610