How to make resource (.json) with new profile

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.

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

Hi @wardweistra
Thank you so much !

Best,
Jeff

Updated

I just successfully published new resource with my defined profile :slight_smile:

2 Likes