I’ve published a new profile (which was based on Observation and added extensions) to Simplifier.net and validated this profile successfully. What should I do? Is any example of resource proper to refer to?
Thanks !
Hi Jeff,
Good work on creating your first profile and extension!
I’m not sure if I completely understand your question, since you have created a beautiful FHIR resource, which you can download as a JSON file (or XML) via the download button: https://simplifier.net/jeff-mypattient/myobservation-duplicate-2/$download?format=json.
Would you mean how to create a FHIR instance/example that conforms to the profile you have created? There’s a few ways to do that.
- Simplifier has example generation, but currently only for FHIR STU3: https://twitter.com/WardWeistra/status/1207295952777699335
- And then I’ve seen other suggestions out there, like http://docs.smarthealthit.org/fred/, https://fhirblog.com/2016/02/20/opening-up-clinfhir-an-example-generator/ and answers on https://stackoverflow.com/questions/46831237/is-there-an-easy-way-to-generate-sample-fhir-resources. But I have no idea if they (still) work.
- Finally you could just start creating it yourself in XML or JSON, make sure it links to the canonical of the profile you have defined in the meta.profile, upload it to your project and validate. And then iteratively resolve the issues you get. You could learn from other example patients, like: https://simplifier.net/nictizstu3-zib2017/~resources?category=Example&exampletype=Patient&sortBy=RankScore_desc
Let me know if that answers your question!
Hi @wardweistra
First, thanks for your answer, it helped ! I’ll try it !
And, I want to know how to validate the resource with my profile link.
Because it said “Unable to resolve reference to profile”.
https://vonk.fire.ly/r4/Observation/$validate?profile=http://example.org/fhir/StructureDefinition/MyObservation
{
"resourceType": "OperationOutcome",
"id": "17126d6e-9daa-46ec-852e-b359c375b314",
"meta": {
"versionId": "51db28ce-a16a-4789-bbc9-edeb90e570b6",
"lastUpdated": "2020-02-12T03:48:33.708+00:00"
},
"issue": [
{
"severity": "error",
"code": "incomplete",
"details": {
"coding": [
{
"system": "http://hl7.org/fhir/dotnet-api-operation-outcome",
"code": "4000"
}
],
"text": "Unable to resolve reference to profile 'http://example.org/fhir/StructureDefinition/MyObservation'"
},
"location": [
"Observation"
]
}
]
}
Thanks !
Jeff,
Good to hear, Jeff!
To make sure that Vonk is able to resolve the reference to the profile your instance refers to, you first need to load the profile to Vonk via the administration API: http://docs.simplifier.net/vonk/features/conformanceresources.html#manage-conformance-resources-with-the-administration-api
Currently that profile is not loaded, see: https://vonk.fire.ly/administration/R4/StructureDefinition?url=https://fake-acme.org/fhir/StructureDefinition/ACME-base-patient
To post the profile, send a POST request to https://vonk.fire.ly/administration/R4/StructureDefinition with the profile in the body.
Then retry the validation call!
Best,
Ward
Jeff, I made a Postman collection with some example Vonk FHIR API calls available at this link: https://www.getpostman.com/collections/4c19e5389cbc7d4fec77.
Make sure to define an environment with url
as https://vonk.fire.ly or https://labs.vonk.fire.ly and version
as R3, R4 or R5 (only on labs).
Best,
Ward
Updated
I just successfully published new resource with my defined profile