Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.06 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.06 KB

FHIR

Build and run tests

A FHIR (v4.0.1) domain model and client implementation for Raku (née Perl6), with json serdes

Immature, unperformant and and experimental.

Serialization (outside of the context of the client module) is currently intended to be done via the coercion API, though this might revert

To use, zef install FHIR should work

A usage might be something like:

# Import
use FHIR::Base;
use FHIR::DomainModel;
use FHIR::JsonSerdes;
use FHIR::Client;

# Create a client
my SyncFHIRClient $cli .= new: :fhir-server<http://localhost:8082>;

# Create an observation resource
my Observation $obs .= new: :status<final>, :code(CodeableConcept.new: :coding([Coding.new: :code<abc>, :system<http://foo.bar/baz>]));

# Write observation to remote fhir server
my Str $loc = $cli.create($obs);

# Retrieve observation
my Observation $r = $cli.read: Observation, $loc;