You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a situation (consider it an ASP.NET Core MVC API controller return) where FHIR and non-FHIR information need to be returned in the same result. For example, think of a user account that's in your own database + that user's Person record from FHIR.
If I make that two separate calls, each returning the pure (UserAccount or Person), it works perfectly. But if I try to create an encapsulation object that -- say -- has these two as member properties and try to send that, I get only the native UserAccount and not the Person (it comes through as default).
Example object to send:
public class Example
{
[JsonPropertyName("userAccount")]
public UserAccount UserAccount { get; set; }
[JsonPropertyName("person")]
public Hl7.Fhir.Model.Person Person { get; set; } = new();
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a situation (consider it an ASP.NET Core MVC API controller return) where FHIR and non-FHIR information need to be returned in the same result. For example, think of a user account that's in your own database + that user's
Person
record from FHIR.If I make that two separate calls, each returning the pure (
UserAccount
orPerson
), it works perfectly. But if I try to create an encapsulation object that -- say -- has these two as member properties and try to send that, I get only the nativeUserAccount
and not thePerson
(it comes through asdefault
).Example object to send:
Beta Was this translation helpful? Give feedback.
All reactions