Skip to content

Instantly share code, notes, and snippets.

@cknaap
Last active November 20, 2019 14:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cknaap/85bdd00e34fcadbbe039ccea1feed7b5 to your computer and use it in GitHub Desktop.
Save cknaap/85bdd00e34fcadbbe039ccea1feed7b5 to your computer and use it in GitHub Desktop.
Links for Vonk sessions FHIR DevDays 2019 Amsterdam

Links

These are the links accompanying the session "Let's Build - Vonk Plugins" and "Let's Build - Vonk FHIR Facade" at FHIR DevDays 2019 Amsterdam.

More background on Vonk

Plugin exercise

  • Setup the prerequisits for building a Plugin:

    • Visual Studio
    • .NET Core 2.2
    • Vonk FHIR Server + evaluation license
    • Clone Vonk.Plugins.ExampleOperation
  • Make the example plugin run in your own Vonk instance.

  • Create a service that counts the number of individual resources returned by Vonk, by any operation.

    • Bundles should be counted for the number of resources in them - except on GET /Bundle[/id]
    • Note that you should count resources inside transaction responses as well.
  • Implement a custom operation $counters on the system level (so on 'GET /$counters').

    • It should return a Parameters resource with 1 out parameter named 'count' having the number of resources from the service above.

Facade exercise

  • Setup the prerequisits for building a Facade:

    • Visual Studio
    • .NET Core 2.2
    • Vonk FHIR Server + evaluation license
    • SQL Server database (can be the local db that comes with Visual Studio)
    • Clone Vonk.Facade.Starter
  • Implement search Patient by name.

    • Add it to the PatientQueryFactory
    • Add it to the SupportedModel
    • Search in both first and last name
  • Now try a search on Observation by Patient.name: GET <base>/Observation?patient.name=Davis

  • Implement search Observation by component-value-quantity.

Questions, interested? Email vonk@fire.ly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment