Stream: social
Topic: custom profile
Sanjay Karmakar (Apr 26 2018 at 08:29):
I created a custom profile using Forge and published in my locally running HAPI FHIR server on postgreSQL. It passed the server conformance and capability statement via Forge and I can see the resource if using Forge to "import from FHIR Server" but can't see the resource through Postman client, GET http://[base]/StructureDefinition/MyPatient. Am I doing something wrong here?
Grahame Grieve (Apr 26 2018 at 08:29):
what's base? your server? did you put it http://[base]/StructureDefinition/MyPatient.? or post it to the server?
Sanjay Karmakar (Apr 26 2018 at 08:30):
base is my server. It's GET http://[base]/StructureDefinition/MyPatient
Grahame Grieve (Apr 26 2018 at 08:31):
you 'published' - PUT or POST?
Sanjay Karmakar (Apr 26 2018 at 08:32):
published via Forge
Grahame Grieve (Apr 26 2018 at 08:32):
don't know which that is. but you'll find it by doing
Grahame Grieve (Apr 26 2018 at 08:33):
GET http://[base]/StructureDefinition/_history
Sanjay Karmakar (Apr 26 2018 at 08:33):
In Forge there is an option, publish to FHIR server. I gave my FHIR server URL. It passed the server conformance and capability and then saved to my server
Michel Rutten (Apr 26 2018 at 09:05):
Forge uses the standard FHIR API for publication to a FHIR server. On initial creation (if resource id is still empty), the API will perform a POST. Subsequent updates are performed via PUT.
Anyway, if you can see the published profile in Forge, then it is definitely on the server.
Sanjay Karmakar (Apr 26 2018 at 09:07):
Agree. But the point here is why am I not getting using Postman via GET?
Michel Rutten (Apr 26 2018 at 09:29):
Hi @Sanjay Karmakar try to retrieve a list of all profiles:
GET http://[base]/StructureDefinition/
The Forge Import dialog also performs such a request.
The result should include the url of the uploaded profile.
Grahame Grieve (Apr 26 2018 at 09:55):
because Forge does a post, the server assigns the id, and it has not used MyPatient
Michel Rutten (Apr 26 2018 at 10:01):
Actually, if the user specifies a resource id, then Forge will perform a PUT. However the server decides if the specified id is actually assigned, or ignored.
Sanjay Karmakar (Apr 26 2018 at 10:12):
@Michel Rutten @Grahame Grieve Thanks to both of you. I can see the profile created in server as http://[base]/StructureDefinition/51030/_history/1 where 51030 is the resource id. Now the next challenge I'm facing is to insert record to this resource
Michel Rutten (Apr 26 2018 at 12:03):
Hi @Sanjay Karmakar, as a next step, you could create a Patient example resource. Unfortunately, I'm not aware of any generic user friendly FHIR resource editor, so you have to create the example manually (e.g. via text/xml editor). Next, you can add a profile claim tag to your example Patient resource, referring to the canonical url of your patient profile. For example:
https://simplifier.net/NictizSTU3/Patient-example
Assuming your FHIR server supports profile validation, if you now upload the Patient example to your server, then the server will verify the profile claim and report any validation errors (via OperationOutcome).
Grahame Grieve (Apr 26 2018 at 13:27):
Notepad++ add in for FHIR. see http://healthintersections.com.au/FhirServer/
Eric Haas (Apr 26 2018 at 16:40):
Please move this chat to the implementers stream.
Last updated: Apr 12 2022 at 19:14 UTC