Resources

Resources is a set of TypeScript objects representing FHIR resources. They are 100% compatible with the FHIR types from this library. If a resource object does not exist in Resources, you can use the FHIR types in the linked library instead.

The Resources in this package provide:

  • Constructor methods to help when constructing new instances of a resource

  • Static methods that are useful when working with a resource (string formatting, filtering, etc.)

import { Resources } from "plasma-fhir-app-utils";

Patient

// Get the patient's "official" name...
const officialName = Resources.Patient.getOfficialName(patient);
// Get the patient's "home" address...
const addrHome = Resources.Patient.getHomeAddress(patient);

Identifier

// Get identifier by system...
const id = Resources.Identifier.getIdentifierBySystem(patient.identifier, "urn:...");
// Get a displayable string...
const display = Resources.Identifier.toString(patient.identifier[0]);

HumanName

// Gets all names based on the given "use"...
const names = Resources.HumanName.getNamesByUse(patient.name, "maiden");

ContactPoint

Reference

CodeableConcept

Coding

Quantity

Age

Range

Period

Ratio

Address

Encounter

AdministrativeGender

Set of values for use as "Administrative Gender"

FamilyMemberHistory_Relationship

Set of values to be used for the relationship property in a FamilyMemberHistory

FamilyMemberHistoryCondition

DeviceDeviceName

Flag

DocumentReference

Extension

Last updated