Samples

Introduction


This section includes different examples of Logica sample code that you can use or learn from when building and publishing Logica applications.

Authorization using OAuth2

This sample will demonstrate how to request authorization for an app, using the SMART on FHIR JavaScript Client.

How to finding the latest Encounter

This sample will demonstrate how to issue a a FHIR query for encounter that finds the latest encounter based on date.

How to Get the Current User

This sample will demonstrate how to retrieve the current user within an app, using the SMART on FHIR JavaScript client.

How to query for Observations

This sample will demonstrate how to issue a FHIR Query for Observations using the FHIR RESTful API and the SMART on FHIR JavaScript Client.

How to query with Pagination

This sample will demonstrate how to issue a FHIR query for observations with a page size and request the next page using the FHIR RESTful API and the SMART on FHIR JavaScript client.

How to sorting a query result

This sample will demonstrate how to issue a FHIR query for observations including a sort parameter using the FHIR RESTful API and the SMART on FHIR JavaScript Client.

How to Update a Patient Record

This sample will demonstrate how to update a FHIR Patient Resource using the FHIR RESTful API and the SMART on FHIR JavaScript Client.

Use the fhir-client.js in a Multi-page Architecture

This sample will show using a FHIR Client in a multi-state architecture.