hughsimpson / RakuFHIR

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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;

About

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


Languages

Language:Raku 99.0%Language:Shell 1.0%Language:Makefile 0.0%