Stream: implementers
Topic: Problem retrieving profiles from STU3 endpoints in Simplfier
Chris Munro (May 31 2017 at 09:02):
According to this blogpost https://thefhirplace.com/2017/05/04/simplifier-on-stu3/
The STU3 endpoint for Simplifier is https://stu3.simplifier.net/open/StructureDefinition
and the endpoint of the Patient profile is https://stu3.simplifier.net/CoreResources-STU3/StructureDefinition/b0e282d6-2487-4b3f-9e9a-ed21ade3d121
However I get an error message of 'not implemented' if I try and pull the patient profile using the C# STU3 API, e.g. by the following
var endpoint1 = new Uri("https://stu3.simplifier.net/open/StructureDefinition");
var client = new FhirClient(endpoint1);
var location = new Uri("https://stu3.simplifier.net/CoreResources-STU3/StructureDefinition/b0e282d6-2487-4b3f-9e9a-ed21ade3d121");
StructureDefinition stdef = client.Read<StructureDefinition>(location);
I have been able to retrieve profiles using another test server e.g. fhirtest.uhn.ca/baseDstu3/
Michel Rutten (May 31 2017 at 09:51):
Hi @Chris Munro, try to initialize the FhirClient with the (project-specific) base uri of your resource id, i.e. "https://stu3.simplifier.net/CoreResources/". Also see the implementation of the WebResolver.ResolveByUri method in the FHIR .NET API:
https://github.com/ewoutkramer/fhir-net-api/blob/develop-stu3/src/Hl7.Fhir.Specification/Specification/Source/WebResolver.cs
Mirjam Baltus (May 31 2017 at 10:08):
If you set the endpoint to just
var endpoint1 = new Uri("https://stu3.simplifier.net/open");
it should work.
Chris Munro (May 31 2017 at 10:34):
Thank you @Mirjam Baltus and @Michel Rutten setting the endpoint as Mirjam suggests does work. Or the method Michel suggests gives the endpoint as https://stu3.simplifier.net/CoreResources-STU3/ which also works.
Michel Rutten (May 31 2017 at 12:00):
Hi @Chris Munro, happy to see that you got it working. Note that the open endpoint only serves profiles with status set to public. Simplifier guarantees that each public profile has a unique canonical url (no duplicates). The project-specific endpoint also provide (secured) access to private profiles with draft status. Simplifier guarantees that each draft profile as a unique canonical url within that project. So you can always resolve your own draft profiles from your own project using the project-specific endpoint. Hope that explains the need for multiple endpoints.
Last updated: Apr 12 2022 at 19:14 UTC