Skip to main content

fhir-4@0.5.0

addToBundle(resources, [name])
create(resource)
createBundle([props])
delete(reference)
read(reference)
search(resourceType, options)
update(reference, resource)
uploadBundle(bundle)

This adaptor exports the following namespaced functions:

builders.account(props)
builders.activityDefinition(props)
builders.administrableProductDefinition(props)
builders.adverseEvent(props)
builders.allergyIntolerance(props)
builders.appointment(props)
builders.appointmentResponse(props)
builders.biologicallyDerivedProduct(props)
builders.bodyStructure(props)
builders.carePlan(props)
builders.careTeam(props)
builders.chargeItem(props)
builders.chargeItemDefinition(props)
builders.citation(props)
builders.claim(props)
builders.claimResponse(props)
builders.clinicalImpression(props)
builders.clinicalUseDefinition(props)
builders.communication(props)
builders.communicationRequest(props)
builders.contract(props)
builders.coverage(props)
builders.coverageEligibilityRequest(props)
builders.coverageEligibilityResponse(props)
builders.detectedIssue(props)
builders.device(props)
builders.deviceDefinition(props)
builders.deviceMetric(props)
builders.deviceRequest(props)
builders.deviceUseStatement(props)
builders.diagnosticReport(props)
builders.domainResource(props)
builders.encounter(props)
builders.enrollmentRequest(props)
builders.enrollmentResponse(props)
builders.episodeOfCare(props)
builders.eventDefinition(props)
builders.evidence(props)
builders.evidenceReport(props)
builders.evidenceVariable(props)
builders.explanationOfBenefit(props)
builders.familyMemberHistory(props)
builders.flag(props)
builders.goal(props)
builders.group(props)
builders.guidanceResponse(props)
builders.healthcareService(props)
builders.imagingStudy(props)
builders.immunization(props)
builders.immunizationEvaluation(props)
builders.immunizationRecommendation(props)
builders.ingredient(props)
builders.insurancePlan(props)
builders.invoice(props)
builders.library(props)
builders.list(props)
builders.location(props)
builders.manufacturedItemDefinition(props)
builders.measure(props)
builders.measureReport(props)
builders.media(props)
builders.medication(props)
builders.medicationAdministration(props)
builders.medicationDispense(props)
builders.medicationKnowledge(props)
builders.medicationRequest(props)
builders.medicationStatement(props)
builders.medicinalProductDefinition(props)
builders.molecularSequence(props)
builders.nutritionOrder(props)
builders.nutritionProduct(props)
builders.observation(props)
builders.observationDefinition(props)
builders.organization(props)
builders.organizationAffiliation(props)
builders.packagedProductDefinition(props)
builders.patient(props)
builders.paymentNotice(props)
builders.paymentReconciliation(props)
builders.person(props)
builders.planDefinition(props)
builders.practitioner(props)
builders.practitionerRole(props)
builders.procedure(props)
builders.questionnaire(props)
builders.questionnaireResponse(props)
builders.regulatedAuthorization(props)
builders.relatedPerson(props)
builders.requestGroup(props)
builders.researchDefinition(props)
builders.researchElementDefinition(props)
builders.researchStudy(props)
builders.researchSubject(props)
builders.riskAssessment(props)
builders.schedule(props)
builders.serviceRequest(props)
builders.slot(props)
builders.specimen(props)
builders.specimenDefinition(props)
builders.substance(props)
builders.substanceDefinition(props)
builders.supplyDelivery(props)
builders.supplyRequest(props)
builders.task(props)
builders.testReport(props)
builders.verificationResult(props)
builders.visionPrescription(props)
datatypes.addExtension(resource, url, value)
datatypes.cc()
datatypes.coding(code, system)
datatypes.composite(object, key, value)
datatypes.concept(value, extra)
datatypes.ext()
datatypes.extension(url, value, props)
datatypes.findExtension(obj, targetUrl, [path])
datatypes.id()
datatypes.identifier(id, ext)
datatypes.ref()
datatypes.reference(ref)
datatypes.setSystemMap()

Functions

addToBundle

addToBundle(resources, [name]) ⇒

Add a resource to a bundle on state, using the name as the key (or bundle by default). The resource will be upserted (via PUT). A new bundle will be generated if one does not already exist.

Returns: Operation

ParamTypeDescription
resourcesobject/arrayA resource or array of resources to add to the bundle
[name]stringA name (key) for this bundle on state (defaults to bundle)

This operation writes the following keys to state:

State KeyDescription
bundlethe updated bundle

Example: Add a new patient resource to the default bundle

addToBundle(b.patient($.patientDetails))

create

create(resource) ⇒

Create a new resource. The resource does not need to include an id. The created resource will be returned to state.data.

Returns: Operation

ParamTypeDescription
resourceobjectThe resource to create.

This operation writes the following keys to state:

State KeyDescription
datathe newly created resource.
responsethe HTTP response returned by the server.

Example: Create a Patient with a builder function

create(b.patient({
name: { family: "Messi", given: "Lionel", use: "official" },
}))

createBundle

createBundle([props]) ⇒

Generate a new bundle on state. Any existing bundle with the same name will be overwritten.

Returns: Operation

ParamTypeDescription
[options.name]stringA name (key) for this bundle on state (defaults to bundle)
[options.type]stringThe type of this bundle. Accepts document
[props]objectAssign any arbitrary properties to the bundle object

This operation writes the following keys to state:

State KeyDescription
(name)the updated bundle

Example: Create a default bundle and add an item

createBundle()
addToBundle($.patient)

Example: Create a batch-type bundle called 'upload'

createBundle({ name: 'upload', type: 'batch' })

Example: Create a bundle with custom properties

createBundle({}, { timestamp: new Date().toISOString() }})
* @example <caption>Create a named bundle and add an item</caption>
createBundle({ name: 'upload')
addToBundle($.patient, 'upload')

delete

delete(reference) ⇒

Delete a single FHIR resource.

Returns: Operation

ParamTypeDescription
referencestringThe type and ID of the resource to delete, eg, Patient/123

This operation writes the following keys to state:

State KeyDescription
responsethe HTTP response returned by the server.

Example: Delete a single Patient resource

delete('Patient/12345')

read

read(reference) ⇒

Fetch a single FHIR resource.

Returns: Operation

ParamTypeDescription
referencestringThe type and ID of the resource to read, eg, Patient/123

This operation writes the following keys to state:

State KeyDescription
datathe newly updated resource, as returned by the server
responsethe HTTP response returned by the server.

Example: Read a single Patient resource

read('Patient/12345')

search(resourceType, options) ⇒

Search for matching FHIR resources. Exclude _ from search parameters, and pass query terms on options.query.

Returns: Operation

ParamTypeDescription
resourceTypestringThe type of the resource to search for.
optionsobjectParameters, query and filter.
[options.*]objectPass supported query parameters without underscore. See FHIR Search Summary.
[options.query]objectquery terms to search for. These are appended to the query URL veratim..

This operation writes the following keys to state:

State KeyDescription
datathe newly updated resource, as returned by the server
responsethe HTTP response returned by the server.

Example: Search with parameter and query term

search('Patient', {
lastUpdated: $.cursor,
count: 10,
query: { given: 'messi' },
})

Example: Search for patients with a given name containing "eve"

search('Patient', {
query: { 'given:contains': 'eve' },
})

update

update(reference, resource) ⇒

Update a resource. If the resource does not already exist, it will be created and state.response.statusCode will be 201. Otherwise, the existing resource will be replaced. To partially update a resource, use patch().

Returns: Operation

ParamTypeDescription
referencestringThe type and ID of the resource to update, eg, Patient/123
resourceobjectThe new version of this resource.

This operation writes the following keys to state:

State KeyDescription
datathe newly updated resource, as returned by the server
responsethe HTTP response returned by the server.

Example: Update a Patient with a builder function

update('Patient/123', b.patient({
id: 'Patient/123',
name: { family: "Messi", given: "Lionel", use: "official" },
}))

uploadBundle

uploadBundle(bundle) ⇒

Upload a bundle from state (created by addToBundle) as a transaction.

Returns: Operation

ParamTypeDescription
bundlestring/objectA bundle object or name of a bundle on state

Example: Upload the default bundle

uploadBundle()

Example: Create and a bundle with a custom name

addToBundle($.patients, 'patientsBundle')
uploadBundle('patientsBundle')

Example: Upload a bundle from state

uploadBundle($.patientsBundle)

builders

These functions belong to the builders namespace.

builders.account

account(props)

Create a Account resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.coverage]BackboneElementThe party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account
[props.description]stringExplanation of purpose/use
[props.guarantor]BackboneElementThe parties ultimately responsible for balancing the Account
[props.identifier]IdentifierAccount number
[props.name]stringHuman-readable label
[props.owner]ReferenceEntity managing the Account
[props.partOf]ReferenceReference to a parent Account
[props.servicePeriod]PeriodTransaction window
[props.status]stringactive
[props.subject]ReferenceThe entity that caused the expenses
[props.type]stringE.g. patient, expense, depreciation. Accepts all values from http://hl7.org/fhir/ValueSet/account-type

builders.activityDefinition

activityDefinition(props)

Create a ActivityDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the activity definition was approved by publisher
[props.author]ContactDetailWho authored the content
[props.bodySite]stringWhat part of body to perform on. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.code]stringDetail type of activity. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-code
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the activity definition
[props.doNotPerform]booleanTrue if the activity should not be performed
[props.dosage]DosageDetailed dosage instructions
[props.dynamicValue]BackboneElementDynamic aspects of the definition
[props.editor]ContactDetailWho edited the content
[props.effectivePeriod]PeriodWhen the activity definition is expected to be used
[props.endorser]ContactDetailWho endorsed the content
[props.experimental]booleanFor testing purposes, not real usage
[props.identifier]IdentifierAdditional identifier for the activity definition
[props.intent]stringproposal
[props.jurisdiction]stringIntended jurisdiction for activity definition (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.kind]stringKind of resource. Accepts all values from http://hl7.org/fhir/ValueSet/request-resource-types
[props.lastReviewDate]dateWhen the activity definition was last reviewed
[props.library]canonicalLogic used by the activity definition
[props.location]ReferenceWhere it should happen
[props.name]stringName for this activity definition (computer friendly)
[props.observationRequirement]ReferenceWhat observations are required to perform this action
[props.observationResultRequirement]ReferenceWhat observations must be produced by this action
[props.participant]BackboneElementWho should participate in the action
[props.priority]stringroutine
[props.product]stringWhat's administered/supplied. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.profile]canonicalWhat profile the resource needs to conform to
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this activity definition is defined
[props.quantity]QuantityHow much is administered/consumed/supplied
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations, etc.
[props.reviewer]ContactDetailWho reviewed the content
[props.specimenRequirement]ReferenceWhat specimens are required to perform this action
[props.status]stringdraft
[props.subject]stringType of individual the activity definition is intended for. Accepts all values from http://hl7.org/fhir/ValueSet/subject-type
[props.subtitle]stringSubordinate title of the activity definition
[props.timing]Timing | dateTime | Age | Period | Range | DurationWhen activity is to occur
[props.title]stringName for this activity definition (human friendly)
[props.topic]stringE.g. Education, Treatment, Assessment, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/definition-topic
[props.transform]canonicalTransform to apply the template
[props.url]stringCanonical identifier for this activity definition, represented as a URI (globally unique)
[props.usage]stringDescribes the clinical usage of the activity definition
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the activity definition

builders.administrableProductDefinition

administrableProductDefinition(props)

Create a AdministrableProductDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.administrableDoseForm]stringThe dose form of the final product after necessary reconstitution or processing. Accepts all values from http://hl7.org/fhir/ValueSet/administrable-dose-form
[props.device]ReferenceA device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product
[props.formOf]ReferenceReferences a product from which one or more of the constituent parts of that product can be prepared and used as described by this administrable product
[props.identifier]IdentifierAn identifier for the administrable product
[props.ingredient]stringThe ingredients of this administrable medicinal product. This is only needed if the ingredients are not specified either using ManufacturedItemDefiniton, or using by incoming references from the Ingredient resource. Accepts all values from http://hl7.org/fhir/ValueSet/substance-codes
[props.producedFrom]ReferenceIndicates the specific manufactured items that are part of the 'formOf' product that are used in the preparation of this specific administrable form
[props.property]BackboneElementCharacteristics e.g. a product's onset of action
[props.routeOfAdministration]BackboneElementThe path by which the product is taken into or makes contact with the body
[props.status]stringdraft
[props.unitOfPresentation]stringThe presentation type in which this item is given to a patient. e.g. for a spray - 'puff'. Accepts all values from http://hl7.org/fhir/ValueSet/unit-of-presentation

builders.adverseEvent

adverseEvent(props)

Create a AdverseEvent resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.actuality]stringactual
[props.category]stringproduct-problem
[props.contributor]ReferenceWho was involved in the adverse event or the potential adverse event
[props.date]dateTimeWhen the event occurred
[props.detected]dateTimeWhen the event was detected
[props.encounter]ReferenceEncounter created as part of
[props.event]stringType of the event itself in relation to the subject. Accepts all values from http://hl7.org/fhir/ValueSet/adverse-event-type
[props.identifier]IdentifierBusiness identifier for the event
[props.location]ReferenceLocation where adverse event occurred
[props.outcome]stringresolved
[props.recordedDate]dateTimeWhen the event was recorded
[props.recorder]ReferenceWho recorded the adverse event
[props.referenceDocument]ReferenceAdverseEvent.referenceDocument
[props.resultingCondition]ReferenceEffect on the subject due to this event
[props.seriousness]stringSeriousness of the event. Accepts all values from http://hl7.org/fhir/ValueSet/adverse-event-seriousness
[props.severity]stringmild
[props.study]ReferenceAdverseEvent.study
[props.subject]ReferenceSubject impacted by event
[props.subjectMedicalHistory]ReferenceAdverseEvent.subjectMedicalHistory
[props.suspectEntity]BackboneElementThe suspected agent causing the adverse event

builders.allergyIntolerance

allergyIntolerance(props)

Create a AllergyIntolerance resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.asserter]ReferenceSource of the information about the allergy
[props.category]stringfood
[props.clinicalStatus]stringactive
[props.code]stringCode that identifies the allergy or intolerance. Accepts all values from http://hl7.org/fhir/ValueSet/allergyintolerance-code
[props.criticality]stringlow
[props.encounter]ReferenceEncounter when the allergy or intolerance was asserted
[props.identifier]IdentifierExternal ids for this item
[props.lastOccurrence]dateTimeDate(/time) of last known occurrence of a reaction
[props.note]AnnotationAdditional text not captured in other fields
[props.onset]dateTime | Age | Period | Range | stringWhen allergy or intolerance was identified
[props.patient]ReferenceWho the sensitivity is for
[props.reaction]BackboneElementAdverse Reaction Events linked to exposure to substance
[props.recordedDate]dateTimeDate first version of the resource instance was recorded
[props.recorder]ReferenceWho recorded the sensitivity
[props.type]stringallergy
[props.verificationStatus]stringunconfirmed

builders.appointment

appointment(props)

Create a Appointment resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.appointmentType]stringThe style of appointment or patient that has been booked in the slot (not service type). Accepts all values from http://terminology.hl7.org/ValueSet/v2-0276
[props.basedOn]ReferenceThe service request this appointment is allocated to assess
[props.cancelationReason]stringThe coded reason for the appointment being cancelled. Accepts all values from http://hl7.org/fhir/ValueSet/appointment-cancellation-reason
[props.comment]stringAdditional comments
[props.created]dateTimeThe date that this appointment was initially created
[props.description]stringShown on a subject line in a meeting request, or appointment list
[props.end]instantWhen appointment is to conclude
[props.identifier]IdentifierExternal Ids for this item
[props.minutesDuration]numberCan be less than start/end (e.g. estimate)
[props.participant]BackboneElementParticipants involved in appointment
[props.patientInstruction]stringDetailed information and instructions for the patient
[props.priority]unsignedIntUsed to make informed decisions if needing to re-prioritize
[props.reasonCode]stringCoded reason this appointment is scheduled. Accepts all values from http://hl7.org/fhir/ValueSet/encounter-reason
[props.reasonReference]ReferenceReason the appointment is to take place (resource)
[props.requestedPeriod]PeriodPotential date/time interval(s) requested to allocate the appointment within
[props.serviceCategory]stringA broad categorization of the service that is to be performed during this appointment. Accepts all values from http://hl7.org/fhir/ValueSet/service-category
[props.serviceType]stringThe specific service that is to be performed during this appointment. Accepts all values from http://hl7.org/fhir/ValueSet/service-type
[props.slot]ReferenceThe slots that this appointment is filling
[props.specialty]stringThe specialty of a practitioner that would be required to perform the service requested in this appointment. Accepts all values from http://hl7.org/fhir/ValueSet/c80-practice-codes
[props.start]instantWhen appointment is to take place
[props.status]stringproposed
[props.supportingInformation]ReferenceAdditional information to support the appointment

builders.appointmentResponse

appointmentResponse(props)

Create a AppointmentResponse resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.actor]ReferencePerson, Location, HealthcareService, or Device
[props.appointment]ReferenceAppointment this response relates to
[props.comment]stringAdditional comments
[props.end]instantTime from appointment, or requested new end time
[props.identifier]IdentifierExternal Ids for this item
[props.participantStatus]stringaccepted
[props.participantType]stringRole of participant in the appointment. Accepts all values from http://hl7.org/fhir/ValueSet/encounter-participant-type
[props.start]instantTime from appointment, or requested new start time

builders.biologicallyDerivedProduct

biologicallyDerivedProduct(props)

Create a BiologicallyDerivedProduct resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.collection]BackboneElementHow this product was collected
[props.identifier]IdentifierExternal ids for this item
[props.manipulation]BackboneElementAny manipulation of product post-collection
[props.parent]ReferenceBiologicallyDerivedProduct parent
[props.processing]BackboneElementAny processing of the product during collection
[props.productCategory]stringorgan
[props.productCode]CodeableConceptWhat this biologically derived product is
[props.quantity]integerThe amount of this biologically derived product
[props.request]ReferenceProcedure request
[props.status]stringavailable
[props.storage]BackboneElementProduct storage

builders.bodyStructure

bodyStructure(props)

Create a BodyStructure resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this record is in active use
[props.description]stringText description
[props.identifier]IdentifierBodystructure identifier
[props.image]AttachmentAttached images
[props.location]stringBody site. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.locationQualifier]stringBody site modifier. Accepts all values from http://hl7.org/fhir/ValueSet/bodystructure-relative-location
[props.morphology]stringKind of Structure. Accepts all values from http://hl7.org/fhir/ValueSet/bodystructure-code
[props.patient]ReferenceWho this is about

builders.carePlan

carePlan(props)

Create a CarePlan resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.activity]BackboneElementAction to occur as part of plan
[props.addresses]ReferenceHealth issues this plan addresses
[props.author]ReferenceWho is the designated responsible party
[props.basedOn]ReferenceFulfills CarePlan
[props.careTeam]ReferenceWho's involved in plan?
[props.category]stringType of plan. Accepts all values from http://hl7.org/fhir/ValueSet/care-plan-category
[props.contributor]ReferenceWho provided the content of the care plan
[props.created]dateTimeDate record was first recorded
[props.description]stringSummary of nature of plan
[props.encounter]ReferenceEncounter created as part of
[props.goal]ReferenceDesired outcome of plan
[props.identifier]IdentifierExternal Ids for this plan
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.intent]stringproposal
[props.note]AnnotationComments about the plan
[props.partOf]ReferencePart of referenced CarePlan
[props.period]PeriodTime period plan covers
[props.replaces]ReferenceCarePlan replaced by this CarePlan
[props.status]stringdraft
[props.subject]ReferenceWho the care plan is for
[props.supportingInfo]ReferenceInformation considered as part of plan
[props.title]stringHuman-friendly name for the care plan

builders.careTeam

careTeam(props)

Create a CareTeam resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.category]stringType of team. Accepts all values from http://hl7.org/fhir/ValueSet/care-team-category
[props.encounter]ReferenceEncounter created as part of
[props.identifier]IdentifierExternal Ids for this team
[props.managingOrganization]ReferenceOrganization responsible for the care team
[props.name]stringName of the team, such as crisis assessment team
[props.note]AnnotationComments made about the CareTeam
[props.participant]BackboneElementMembers of the team
[props.period]PeriodTime period team covers
[props.reasonCode]stringWhy the care team exists. Accepts all values from http://hl7.org/fhir/ValueSet/clinical-findings
[props.reasonReference]ReferenceWhy the care team exists
[props.status]stringproposed
[props.subject]ReferenceWho care team is for
[props.telecom]ContactPointA contact detail for the care team (that applies to all members)

builders.chargeItem

chargeItem(props)

Create a ChargeItem resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.account]ReferenceAccount to place this charge
[props.bodysite]stringAnatomical location, if relevant. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.code]stringA code that identifies the charge, like a billing code. Accepts all values from http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
[props.context]ReferenceEncounter / Episode associated with event
[props.costCenter]ReferenceOrganization that has ownership of the (potential, future) revenue
[props.definitionCanonical]canonicalResource defining the code of this ChargeItem
[props.definitionUri]stringDefining information about the code of this charge item
[props.enteredDate]dateTimeDate the charge item was entered
[props.enterer]ReferenceIndividual who was entering
[props.factorOverride]decimalFactor overriding the associated rules
[props.identifier]IdentifierBusiness Identifier for item
[props.note]AnnotationComments made about the ChargeItem
[props.occurrence]dateTime | Period | TimingWhen the charged service was applied
[props.overrideReason]stringReason for overriding the list price/factor
[props.partOf]ReferencePart of referenced ChargeItem
[props.performer]BackboneElementWho performed charged service
[props.performingOrganization]ReferenceOrganization providing the charged service
[props.priceOverride]MoneyPrice overriding the associated rules
[props.product]stringProduct charged. Accepts all values from http://hl7.org/fhir/ValueSet/device-kind
[props.quantity]QuantityQuantity of which the charge item has been serviced
[props.reason]stringWhy was the charged service rendered?. Accepts all values from http://hl7.org/fhir/ValueSet/icd-10
[props.requestingOrganization]ReferenceOrganization requesting the charged service
[props.service]ReferenceWhich rendered service is being charged?
[props.status]stringplanned
[props.subject]ReferenceIndividual service was done for/to
[props.supportingInformation]ReferenceFurther information supporting this charge

builders.chargeItemDefinition

chargeItemDefinition(props)

Create a ChargeItemDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.applicability]BackboneElementWhether or not the billing code is applicable
[props.approvalDate]dateWhen the charge item definition was approved by publisher
[props.code]stringBilling codes or product types this definition applies to. Accepts all values from http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.derivedFromUri]stringUnderlying externally-defined charge item definition
[props.description]markdownNatural language description of the charge item definition
[props.effectivePeriod]PeriodWhen the charge item definition is expected to be used
[props.experimental]booleanFor testing purposes, not real usage
[props.identifier]IdentifierAdditional identifier for the charge item definition
[props.instance]ReferenceInstances this definition applies to
[props.jurisdiction]stringIntended jurisdiction for charge item definition (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the charge item definition was last reviewed
[props.partOf]canonicalA larger definition of which this particular definition is a component or step
[props.propertyGroup]BackboneElementGroup of properties which are applicable under the same conditions
[props.publisher]stringName of the publisher (organization or individual)
[props.replaces]canonicalCompleted or terminated request(s) whose function is taken by this new request
[props.status]stringdraft
[props.title]stringName for this charge item definition (human friendly)
[props.url]stringCanonical identifier for this charge item definition, represented as a URI (globally unique)
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the charge item definition

builders.citation

citation(props)

Create a Citation resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the citation was approved by publisher
[props.author]ContactDetailWho authored the Citation
[props.citedArtifact]BackboneElementThe article or artifact being described
[props.classification]BackboneElementThe assignment to an organizing scheme
[props.contact]ContactDetailContact details for the publisher of the Citation Resource
[props.copyright]markdownUse and/or publishing restrictions for the Citation, not for the cited artifact
[props.currentState]stringThe status of the citation. Accepts all values from http://hl7.org/fhir/ValueSet/citation-status-type
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the citation
[props.editor]ContactDetailWho edited the Citation
[props.effectivePeriod]PeriodWhen the citation is expected to be used
[props.endorser]ContactDetailWho endorsed the Citation
[props.experimental]booleanFor testing purposes, not real usage
[props.identifier]IdentifierIdentifier for the Citation resource itself
[props.jurisdiction]stringIntended jurisdiction for citation (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the citation was last reviewed
[props.name]stringName for this citation (computer friendly)
[props.note]AnnotationUsed for general notes and annotations not coded elsewhere
[props.publisher]stringThe publisher of the Citation, not the publisher of the article or artifact being cited
[props.purpose]markdownWhy this citation is defined
[props.relatesTo]BackboneElementArtifact related to the Citation Resource
[props.reviewer]ContactDetailWho reviewed the Citation
[props.status]stringdraft
[props.statusDate]BackboneElementAn effective date or period for a status of the citation
[props.summary]BackboneElementA human-readable display of the citation
[props.title]stringName for this citation (human friendly)
[props.url]stringCanonical identifier for this citation, represented as a globally unique URI
[props.useContext]UsageContextThe context that the Citation Resource content is intended to support
[props.version]stringBusiness version of the citation

builders.claim

claim(props)

Create a Claim resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.accident]BackboneElementDetails of the event
[props.billablePeriod]PeriodRelevant time frame for the claim
[props.careTeam]BackboneElementMembers of the care team
[props.created]dateTimeResource creation date
[props.diagnosis]BackboneElementPertinent diagnosis information
[props.enterer]ReferenceAuthor of the claim
[props.facility]ReferenceServicing facility
[props.fundsReserve]stringFor whom to reserve funds. Accepts all values from http://hl7.org/fhir/ValueSet/fundsreserve
[props.identifier]IdentifierBusiness Identifier for claim
[props.insurance]BackboneElementPatient insurance information
[props.insurer]ReferenceTarget
[props.item]BackboneElementProduct or service provided
[props.originalPrescription]ReferenceOriginal prescription if superseded by fulfiller
[props.patient]ReferenceThe recipient of the products and services
[props.payee]BackboneElementRecipient of benefits payable
[props.prescription]ReferencePrescription authorizing services and products
[props.priority]stringDesired processing ugency. Accepts all values from http://hl7.org/fhir/ValueSet/process-priority
[props.procedure]BackboneElementClinical procedures performed
[props.provider]ReferenceParty responsible for the claim
[props.referral]ReferenceTreatment referral
[props.related]BackboneElementPrior or corollary claims
[props.status]stringactive
[props.subType]stringMore granular claim type. Accepts all values from http://hl7.org/fhir/ValueSet/claim-subtype
[props.supportingInfo]BackboneElementSupporting information
[props.total]MoneyTotal claim cost
[props.type]stringCategory or discipline. Accepts all values from http://hl7.org/fhir/ValueSet/claim-type
[props.use]stringclaim

builders.claimResponse

claimResponse(props)

Create a ClaimResponse resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.addItem]BackboneElementInsurer added line items
[props.adjudication]anyHeader-level adjudication
[props.communicationRequest]ReferenceRequest for additional information
[props.created]dateTimeResponse creation date
[props.disposition]stringDisposition Message
[props.error]BackboneElementProcessing errors
[props.form]AttachmentPrinted reference or actual form
[props.formCode]stringPrinted form identifier. Accepts all values from http://hl7.org/fhir/ValueSet/forms
[props.fundsReserve]stringFunds reserved status. Accepts all values from http://hl7.org/fhir/ValueSet/fundsreserve
[props.identifier]IdentifierBusiness Identifier for a claim response
[props.insurance]BackboneElementPatient insurance information
[props.insurer]ReferenceParty responsible for reimbursement
[props.item]BackboneElementAdjudication for claim line items
[props.outcome]stringqueued
[props.patient]ReferenceThe recipient of the products and services
[props.payeeType]stringParty to be paid any benefits payable. Accepts all values from http://hl7.org/fhir/ValueSet/payeetype
[props.payment]BackboneElementPayment Details
[props.preAuthPeriod]PeriodPreauthorization reference effective period
[props.preAuthRef]stringPreauthorization reference
[props.processNote]BackboneElementNote concerning adjudication
[props.request]ReferenceId of resource triggering adjudication
[props.requestor]ReferenceParty responsible for the claim
[props.status]stringactive
[props.subType]stringMore granular claim type. Accepts all values from http://hl7.org/fhir/ValueSet/claim-subtype
[props.total]BackboneElementAdjudication totals
[props.type]stringMore granular claim type. Accepts all values from http://hl7.org/fhir/ValueSet/claim-type
[props.use]stringclaim

builders.clinicalImpression

clinicalImpression(props)

Create a ClinicalImpression resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.assessor]ReferenceThe clinician performing the assessment
[props.code]CodeableConceptKind of assessment performed
[props.date]dateTimeWhen the assessment was documented
[props.description]stringWhy/how the assessment was performed
[props.effective]dateTime | PeriodTime of assessment
[props.encounter]ReferenceEncounter created as part of
[props.finding]BackboneElementPossible or likely findings and diagnoses
[props.identifier]IdentifierBusiness identifier
[props.investigation]BackboneElementOne or more sets of investigations (signs, symptoms, etc.)
[props.note]AnnotationComments made about the ClinicalImpression
[props.previous]ReferenceReference to last assessment
[props.problem]ReferenceRelevant impressions of patient state
[props.prognosisCodeableConcept]stringEstimate of likely outcome. Accepts all values from http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis
[props.prognosisReference]ReferenceRiskAssessment expressing likely outcome
[props.protocol]stringClinical Protocol followed
[props.status]stringin-progress
[props.statusReason]CodeableConceptReason for current status
[props.subject]ReferencePatient or group assessed
[props.summary]stringSummary of the assessment
[props.supportingInfo]ReferenceInformation supporting the clinical impression

builders.clinicalUseDefinition

clinicalUseDefinition(props)

Create a ClinicalUseDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.category]stringA categorisation of the issue, primarily for dividing warnings into subject heading areas such as "Pregnancy", "Overdose". Accepts all values from http://hl7.org/fhir/ValueSet/clinical-use-definition-category
[props.contraindication]BackboneElementSpecifics for when this is a contraindication
[props.identifier]IdentifierBusiness identifier for this issue
[props.indication]BackboneElementSpecifics for when this is an indication
[props.interaction]BackboneElementSpecifics for when this is an interaction
[props.population]ReferenceThe population group to which this applies
[props.status]stringWhether this is a current issue or one that has been retired etc. Accepts all values from http://hl7.org/fhir/ValueSet/publication-status
[props.subject]ReferenceThe medication or procedure for which this is an indication
[props.type]stringindication
[props.undesirableEffect]BackboneElementA possible negative outcome from the use of this treatment
[props.warning]BackboneElementCritical environmental, health or physical risks or hazards. For example 'Do not operate heavy machinery', 'May cause drowsiness'

builders.communication

communication(props)

Create a Communication resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.about]ReferenceResources that pertain to this communication
[props.basedOn]ReferenceRequest fulfilled by this communication
[props.category]stringMessage category. Accepts all values from http://hl7.org/fhir/ValueSet/communication-category
[props.encounter]ReferenceEncounter created as part of
[props.identifier]IdentifierUnique identifier
[props.inResponseTo]ReferenceReply to
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.medium]stringA channel of communication. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ParticipationMode
[props.note]AnnotationComments made about the communication
[props.partOf]ReferencePart of this action
[props.payload]BackboneElementMessage payload
[props.priority]stringroutine
[props.reasonCode]stringIndication for message. Accepts all values from http://hl7.org/fhir/ValueSet/clinical-findings
[props.reasonReference]ReferenceWhy was communication done?
[props.received]dateTimeWhen received
[props.recipient]ReferenceMessage recipient
[props.sender]ReferenceMessage sender
[props.sent]dateTimeWhen sent
[props.status]stringpreparation
[props.statusReason]stringReason for current status. Accepts all values from http://hl7.org/fhir/ValueSet/communication-not-done-reason
[props.subject]ReferenceFocus of message
[props.topic]stringDescription of the purpose/content. Accepts all values from http://hl7.org/fhir/ValueSet/communication-topic

builders.communicationRequest

communicationRequest(props)

Create a CommunicationRequest resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.about]ReferenceResources that pertain to this communication request
[props.authoredOn]dateTimeWhen request transitioned to being actionable
[props.basedOn]ReferenceFulfills plan or proposal
[props.category]stringMessage category. Accepts all values from http://hl7.org/fhir/ValueSet/communication-category
[props.doNotPerform]booleanTrue if request is prohibiting action
[props.encounter]ReferenceEncounter created as part of
[props.groupIdentifier]IdentifierComposite request this is part of
[props.identifier]IdentifierUnique identifier
[props.medium]stringA channel of communication. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ParticipationMode
[props.note]AnnotationComments made about communication request
[props.occurrence]dateTime | PeriodWhen scheduled
[props.payload]BackboneElementMessage payload
[props.priority]stringroutine
[props.reasonCode]stringWhy is communication needed?. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ActReason
[props.reasonReference]ReferenceWhy is communication needed?
[props.recipient]ReferenceMessage recipient
[props.replaces]ReferenceRequest(s) replaced by this request
[props.requester]ReferenceWho/what is requesting service
[props.sender]ReferenceMessage sender
[props.status]stringdraft
[props.statusReason]CodeableConceptReason for current status
[props.subject]ReferenceFocus of message

builders.contract

contract(props)

Create a Contract resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.alias]stringAcronym or short name
[props.applies]PeriodEffective time
[props.author]ReferenceSource of Contract
[props.authority]ReferenceAuthority under which this Contract has standing
[props.contentDefinition]BackboneElementContract precursor content
[props.contentDerivative]stringContent derived from the basal information. Accepts all values from http://hl7.org/fhir/ValueSet/contract-content-derivative
[props.domain]ReferenceA sphere of control governed by an authoritative jurisdiction, organization, or person
[props.expirationType]stringContract cessation cause. Accepts all values from http://hl7.org/fhir/ValueSet/contract-expiration-type
[props.friendly]BackboneElementContract Friendly Language
[props.identifier]IdentifierContract number
[props.instantiatesCanonical]ReferenceSource Contract Definition
[props.instantiatesUri]stringExternal Contract Definition
[props.issued]dateTimeWhen this Contract was issued
[props.legal]BackboneElementContract Legal Language
[props.legalState]stringNegotiation status. Accepts all values from http://hl7.org/fhir/ValueSet/contract-legalstate
[props.legallyBinding]Attachment | ReferenceBinding Contract
[props.name]stringComputer friendly designation
[props.relevantHistory]ReferenceKey event in Contract History
[props.rule]BackboneElementComputable Contract Language
[props.scope]stringRange of Legal Concerns. Accepts all values from http://hl7.org/fhir/ValueSet/contract-scope
[props.signer]BackboneElementContract Signatory
[props.site]ReferenceSpecific Location
[props.status]stringamended
[props.subType]stringSubtype within the context of type. Accepts all values from http://hl7.org/fhir/ValueSet/contract-subtype
[props.subject]ReferenceContract Target Entity
[props.subtitle]stringSubordinate Friendly name
[props.supportingInfo]ReferenceExtra Information
[props.term]BackboneElementContract Term List
[props.title]stringHuman Friendly name
[props.topic]CodeableConcept | ReferenceFocus of contract interest
[props.type]stringLegal instrument category. Accepts all values from http://hl7.org/fhir/ValueSet/contract-type
[props.url]stringBasal definition
[props.version]stringBusiness edition

builders.coverage

coverage(props)

Create a Coverage resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.beneficiary]ReferencePlan beneficiary
[props.class]BackboneElementAdditional coverage classifications
[props.contract]ReferenceContract details
[props.costToBeneficiary]BackboneElementPatient payments for services/products
[props.dependent]stringDependent number
[props.identifier]IdentifierBusiness Identifier for the coverage
[props.network]stringInsurer network
[props.order]numberRelative order of the coverage
[props.payor]ReferenceIssuer of the policy
[props.period]PeriodCoverage start and end dates
[props.policyHolder]ReferenceOwner of the policy
[props.relationship]stringBeneficiary relationship to the subscriber. Accepts all values from http://hl7.org/fhir/ValueSet/subscriber-relationship
[props.status]stringactive
[props.subrogation]booleanReimbursement to insurer
[props.subscriber]ReferenceSubscriber to the policy
[props.subscriberId]stringID assigned to the subscriber
[props.type]stringCoverage category such as medical or accident. Accepts all values from http://hl7.org/fhir/ValueSet/coverage-type

builders.coverageEligibilityRequest

coverageEligibilityRequest(props)

Create a CoverageEligibilityRequest resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.created]dateTimeCreation date
[props.enterer]ReferenceAuthor
[props.facility]ReferenceServicing facility
[props.identifier]IdentifierBusiness Identifier for coverage eligiblity request
[props.insurance]BackboneElementPatient insurance information
[props.insurer]ReferenceCoverage issuer
[props.item]BackboneElementItem to be evaluated for eligibiity
[props.patient]ReferenceIntended recipient of products and services
[props.priority]stringDesired processing priority. Accepts all values from http://hl7.org/fhir/ValueSet/process-priority
[props.provider]ReferenceParty responsible for the request
[props.purpose]stringauth-requirements
[props.serviced]date | PeriodEstimated date or dates of service
[props.status]stringactive
[props.supportingInfo]BackboneElementSupporting information

builders.coverageEligibilityResponse

coverageEligibilityResponse(props)

Create a CoverageEligibilityResponse resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.created]dateTimeResponse creation date
[props.disposition]stringDisposition Message
[props.error]BackboneElementProcessing errors
[props.form]stringPrinted form identifier. Accepts all values from http://hl7.org/fhir/ValueSet/forms
[props.identifier]IdentifierBusiness Identifier for coverage eligiblity request
[props.insurance]BackboneElementPatient insurance information
[props.insurer]ReferenceCoverage issuer
[props.outcome]stringqueued
[props.patient]ReferenceIntended recipient of products and services
[props.preAuthRef]stringPreauthorization reference
[props.purpose]stringauth-requirements
[props.request]ReferenceEligibility request reference
[props.requestor]ReferenceParty responsible for the request
[props.serviced]date | PeriodEstimated date or dates of service
[props.status]stringactive

builders.detectedIssue

detectedIssue(props)

Create a DetectedIssue resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.author]ReferenceThe provider or device that identified the issue
[props.code]stringIssue Category, e.g. drug-drug, duplicate therapy, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/detectedissue-category
[props.detail]stringDescription and context
[props.evidence]BackboneElementSupporting evidence
[props.identified]dateTime | PeriodWhen identified
[props.identifier]IdentifierUnique id for the detected issue
[props.implicated]ReferenceProblem resource
[props.mitigation]BackboneElementStep taken to address
[props.patient]ReferenceAssociated patient
[props.reference]stringAuthority for issue
[props.severity]stringhigh
[props.status]stringregistered

builders.device

device(props)

Create a Device resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.contact]ContactPointDetails for human/organization for support
[props.definition]ReferenceThe reference to the definition for the device
[props.deviceName]BackboneElementThe name of the device as given by the manufacturer
[props.distinctIdentifier]stringThe distinct identification string
[props.expirationDate]dateTimeDate and time of expiry of this device (if applicable)
[props.identifier]IdentifierInstance identifier
[props.location]ReferenceWhere the device is found
[props.lotNumber]stringLot number of manufacture
[props.manufactureDate]dateTimeDate when the device was made
[props.manufacturer]stringName of device manufacturer
[props.modelNumber]stringThe manufacturer's model number for the device
[props.note]AnnotationDevice notes and comments
[props.owner]ReferenceOrganization responsible for device
[props.parent]ReferenceThe device that this device is attached to or is part of
[props.partNumber]stringThe part number or catalog number of the device
[props.patient]ReferencePatient to whom Device is affixed
[props.property]BackboneElementThe actual configuration settings of a device as it actually operates, e.g., regulation status, time properties
[props.safety]CodeableConceptSafety Characteristics of Device
[props.serialNumber]stringSerial number assigned by the manufacturer
[props.specialization]BackboneElementThe capabilities supported on a device, the standards to which the device conforms for a particular purpose, and used for the communication
[props.status]stringactive
[props.statusReason]stringonline
[props.type]stringThe kind or type of device. Accepts all values from http://hl7.org/fhir/ValueSet/device-type
[props.udiCarrier]BackboneElementUnique Device Identifier (UDI) Barcode string
[props.url]stringNetwork address to contact device
[props.version]BackboneElementThe actual design of the device or software version running on the device

builders.deviceDefinition

deviceDefinition(props)

Create a DeviceDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.capability]BackboneElementDevice capabilities
[props.contact]ContactPointDetails for human/organization for support
[props.deviceName]BackboneElementA name given to the device to identify it
[props.identifier]IdentifierInstance identifier
[props.languageCode]CodeableConceptLanguage code for the human-readable text strings produced by the device (all supported)
[props.manufacturer]string | ReferenceName of device manufacturer
[props.material]BackboneElementA substance used to create the material(s) of which the device is made
[props.modelNumber]stringThe model number for the device
[props.note]AnnotationDevice notes and comments
[props.onlineInformation]stringAccess to on-line information
[props.owner]ReferenceOrganization responsible for device
[props.parentDevice]ReferenceThe parent device it can be part of
[props.physicalCharacteristics]ProdCharacteristicDimensions, color etc.
[props.property]BackboneElementThe actual configuration settings of a device as it actually operates, e.g., regulation status, time properties
[props.quantity]QuantityThe quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product)
[props.safety]stringSafety characteristics of the device. Accepts all values from http://hl7.org/fhir/ValueSet/device-safety
[props.shelfLifeStorage]ProductShelfLifeShelf Life and storage information
[props.specialization]BackboneElementThe capabilities supported on a device, the standards to which the device conforms for a particular purpose, and used for the communication
[props.type]stringWhat kind of device or device system this is. Accepts all values from http://hl7.org/fhir/ValueSet/device-kind
[props.udiDeviceIdentifier]BackboneElementUnique Device Identifier (UDI) Barcode string
[props.url]stringNetwork address to contact device
[props.version]stringAvailable versions

builders.deviceMetric

deviceMetric(props)

Create a DeviceMetric resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.calibration]BackboneElementDescribes the calibrations that have been performed or that are required to be performed
[props.category]stringmeasurement
[props.color]stringblack
[props.identifier]IdentifierInstance identifier
[props.measurementPeriod]TimingDescribes the measurement repetition time
[props.operationalStatus]stringon
[props.parent]ReferenceDescribes the link to the parent Device
[props.source]ReferenceDescribes the link to the source Device
[props.type]stringIdentity of metric, for example Heart Rate or PEEP Setting. Accepts all values from http://hl7.org/fhir/ValueSet/devicemetric-type
[props.unit]stringUnit of Measure for the Metric. Accepts all values from http://hl7.org/fhir/ValueSet/devicemetric-type

builders.deviceRequest

deviceRequest(props)

Create a DeviceRequest resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.authoredOn]dateTimeWhen recorded
[props.basedOn]ReferenceWhat request fulfills
[props.code]stringDevice requested. Accepts all values from http://hl7.org/fhir/ValueSet/device-kind
[props.encounter]ReferenceEncounter motivating request
[props.groupIdentifier]IdentifierIdentifier of composite request
[props.identifier]IdentifierExternal Request identifier
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.insurance]ReferenceAssociated insurance coverage
[props.intent]stringproposal
[props.note]AnnotationNotes or comments
[props.occurrence]dateTime | Period | TimingDesired time or schedule for use
[props.parameter]BackboneElementDevice details
[props.performer]ReferenceRequested Filler
[props.performerType]stringFiller role. Accepts all values from http://hl7.org/fhir/ValueSet/participant-role
[props.priorRequest]ReferenceWhat request replaces
[props.priority]stringroutine
[props.reasonCode]stringCoded Reason for request. Accepts all values from http://hl7.org/fhir/ValueSet/condition-code
[props.reasonReference]ReferenceLinked Reason for request
[props.relevantHistory]ReferenceRequest provenance
[props.requester]ReferenceWho/what is requesting diagnostics
[props.status]stringdraft
[props.subject]ReferenceFocus of request
[props.supportingInfo]ReferenceAdditional clinical information

builders.deviceUseStatement

deviceUseStatement(props)

Create a DeviceUseStatement resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceFulfills plan, proposal or order
[props.bodySite]stringTarget body site. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.derivedFrom]ReferenceSupporting information
[props.device]ReferenceReference to device used
[props.identifier]IdentifierExternal identifier for this record
[props.note]AnnotationAddition details (comments, instructions)
[props.reasonCode]CodeableConceptWhy device was used
[props.reasonReference]ReferenceWhy was DeviceUseStatement performed?
[props.recordedOn]dateTimeWhen statement was recorded
[props.source]ReferenceWho made the statement
[props.status]stringactive
[props.subject]ReferencePatient using device
[props.timing]Timing | Period | dateTimeHow often the device was used

builders.diagnosticReport

diagnosticReport(props)

Create a DiagnosticReport resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceWhat was requested
[props.category]stringService category. Accepts all values from http://hl7.org/fhir/ValueSet/diagnostic-service-sections
[props.code]stringName/Code for this diagnostic report. Accepts all values from http://hl7.org/fhir/ValueSet/report-codes
[props.conclusion]stringClinical conclusion (interpretation) of test results
[props.conclusionCode]stringCodes for the clinical conclusion of test results. Accepts all values from http://hl7.org/fhir/ValueSet/clinical-findings
[props.effective]dateTime | PeriodClinically relevant time/time-period for report
[props.encounter]ReferenceHealth care event when test ordered
[props.identifier]IdentifierBusiness identifier for report
[props.imagingStudy]ReferenceReference to full details of imaging associated with the diagnostic report
[props.issued]instantDateTime this version was made
[props.media]BackboneElementKey images associated with this report
[props.performer]ReferenceResponsible Diagnostic Service
[props.presentedForm]AttachmentEntire report as issued
[props.result]ReferenceObservations
[props.resultsInterpreter]ReferencePrimary result interpreter
[props.specimen]ReferenceSpecimens this report is based on
[props.status]stringregistered
[props.subject]ReferenceThe subject of the report - usually, but not always, the patient

builders.domainResource

domainResource(props)

Create a DomainResource resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).

builders.encounter

encounter(props)

Create a Encounter resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.account]ReferenceThe set of accounts that may be used for billing for this Encounter
[props.appointment]ReferenceThe appointment that scheduled this encounter
[props.basedOn]ReferenceThe ServiceRequest that initiated this encounter
[props.class]stringClassification of patient encounter. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ActEncounterCode
[props.classHistory]BackboneElementList of past encounter classes
[props.diagnosis]BackboneElementThe list of diagnosis relevant to this encounter
[props.episodeOfCare]ReferenceEpisode(s) of care that this encounter should be recorded against
[props.hospitalization]BackboneElementDetails about the admission to a healthcare service
[props.identifier]IdentifierIdentifier(s) by which this encounter is known
[props.length]DurationQuantity of time the encounter lasted (less time absent)
[props.location]BackboneElementList of locations where the patient has been
[props.partOf]ReferenceAnother Encounter this encounter is part of
[props.participant]BackboneElementList of participants involved in the encounter
[props.period]PeriodThe start and end time of the encounter
[props.priority]stringIndicates the urgency of the encounter. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ActPriority
[props.reasonCode]stringCoded reason the encounter takes place. Accepts all values from http://hl7.org/fhir/ValueSet/encounter-reason
[props.reasonReference]ReferenceReason the encounter takes place (reference)
[props.serviceProvider]ReferenceThe organization (facility) responsible for this encounter
[props.serviceType]stringSpecific type of service. Accepts all values from http://hl7.org/fhir/ValueSet/service-type
[props.status]stringplanned
[props.statusHistory]BackboneElementList of past encounter statuses
[props.subject]ReferenceThe patient or group present at the encounter
[props.type]stringSpecific type of encounter. Accepts all values from http://hl7.org/fhir/ValueSet/encounter-type

builders.enrollmentRequest

enrollmentRequest(props)

Create a EnrollmentRequest resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.candidate]ReferenceThe subject to be enrolled
[props.coverage]ReferenceInsurance information
[props.created]dateTimeCreation date
[props.identifier]IdentifierBusiness Identifier
[props.insurer]ReferenceTarget
[props.provider]ReferenceResponsible practitioner
[props.status]stringactive

builders.enrollmentResponse

enrollmentResponse(props)

Create a EnrollmentResponse resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.created]dateTimeCreation date
[props.disposition]stringDisposition Message
[props.identifier]IdentifierBusiness Identifier
[props.organization]ReferenceInsurer
[props.outcome]stringqueued
[props.request]ReferenceClaim reference
[props.requestProvider]ReferenceResponsible practitioner
[props.status]stringactive

builders.episodeOfCare

episodeOfCare(props)

Create a EpisodeOfCare resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.account]ReferenceThe set of accounts that may be used for billing for this EpisodeOfCare
[props.careManager]ReferenceCare manager/care coordinator for the patient
[props.diagnosis]BackboneElementThe list of diagnosis relevant to this episode of care
[props.identifier]IdentifierBusiness Identifier(s) relevant for this EpisodeOfCare
[props.managingOrganization]ReferenceOrganization that assumes care
[props.patient]ReferenceThe patient who is the focus of this episode of care
[props.period]PeriodInterval during responsibility is assumed
[props.referralRequest]ReferenceOriginating Referral Request(s)
[props.status]stringplanned
[props.statusHistory]BackboneElementPast list of status codes (the current status may be included to cover the start date of the status)
[props.team]ReferenceOther practitioners facilitating this episode of care
[props.type]stringType/class - e.g. specialist referral, disease management. Accepts all values from http://hl7.org/fhir/ValueSet/episodeofcare-type

builders.eventDefinition

eventDefinition(props)

Create a EventDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the event definition was approved by publisher
[props.author]ContactDetailWho authored the content
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the event definition
[props.editor]ContactDetailWho edited the content
[props.effectivePeriod]PeriodWhen the event definition is expected to be used
[props.endorser]ContactDetailWho endorsed the content
[props.experimental]booleanFor testing purposes, not real usage
[props.identifier]IdentifierAdditional identifier for the event definition
[props.jurisdiction]stringIntended jurisdiction for event definition (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the event definition was last reviewed
[props.name]stringName for this event definition (computer friendly)
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this event definition is defined
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations, etc.
[props.reviewer]ContactDetailWho reviewed the content
[props.status]stringdraft
[props.subject]stringType of individual the event definition is focused on. Accepts all values from http://hl7.org/fhir/ValueSet/subject-type
[props.subtitle]stringSubordinate title of the event definition
[props.title]stringName for this event definition (human friendly)
[props.topic]stringE.g. Education, Treatment, Assessment, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/definition-topic
[props.trigger]TriggerDefinition"when" the event occurs (multiple = 'or')
[props.url]stringCanonical identifier for this event definition, represented as a URI (globally unique)
[props.usage]stringDescribes the clinical usage of the event definition
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the event definition

builders.evidence

evidence(props)

Create a Evidence resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the summary was approved by publisher
[props.assertion]markdownDeclarative description of the Evidence
[props.author]ContactDetailWho authored the content
[props.certainty]BackboneElementCertainty or quality of the evidence
[props.citeAs]Reference | markdownCitation for this evidence
[props.contact]ContactDetailContact details for the publisher
[props.date]dateTimeDate last changed
[props.description]markdownDescription of the particular summary
[props.editor]ContactDetailWho edited the content
[props.endorser]ContactDetailWho endorsed the content
[props.identifier]IdentifierAdditional identifier for the summary
[props.lastReviewDate]dateWhen the summary was last reviewed
[props.note]AnnotationFootnotes and/or explanatory notes
[props.publisher]stringName of the publisher (organization or individual)
[props.relatedArtifact]RelatedArtifactLink or citation to artifact associated with the summary
[props.reviewer]ContactDetailWho reviewed the content
[props.statistic]BackboneElementValues and parameters for a single statistic
[props.status]stringdraft
[props.studyType]stringThe type of study that produced this evidence. Accepts all values from http://hl7.org/fhir/ValueSet/study-type
[props.synthesisType]stringThe method to combine studies. Accepts all values from http://hl7.org/fhir/ValueSet/synthesis-type
[props.title]stringName for this summary (human friendly)
[props.url]stringCanonical identifier for this evidence, represented as a globally unique URI
[props.useContext]UsageContextThe context that the content is intended to support
[props.variableDefinition]BackboneElementEvidence variable such as population, exposure, or outcome
[props.version]stringBusiness version of this summary

builders.evidenceReport

evidenceReport(props)

Create a EvidenceReport resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.author]ContactDetailWho authored the content
[props.citeAs]Reference | markdownCitation for this report
[props.contact]ContactDetailContact details for the publisher
[props.editor]ContactDetailWho edited the content
[props.endorser]ContactDetailWho endorsed the content
[props.identifier]IdentifierUnique identifier for the evidence report
[props.note]AnnotationUsed for footnotes and annotations
[props.publisher]stringName of the publisher (organization or individual)
[props.relatedArtifact]RelatedArtifactLink, description or reference to artifact associated with the report
[props.relatedIdentifier]IdentifierIdentifiers for articles that may relate to more than one evidence report
[props.relatesTo]BackboneElementRelationships to other compositions/documents
[props.reviewer]ContactDetailWho reviewed the content
[props.section]BackboneElementComposition is broken into sections
[props.status]stringdraft
[props.subject]BackboneElementFocus of the report
[props.type]stringKind of report. Accepts all values from http://hl7.org/fhir/ValueSet/evidence-report-type
[props.url]stringCanonical identifier for this EvidenceReport, represented as a globally unique URI
[props.useContext]UsageContextThe context that the content is intended to support

builders.evidenceVariable

evidenceVariable(props)

Create a EvidenceVariable resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.actual]booleanActual or conceptual
[props.author]ContactDetailWho authored the content
[props.category]BackboneElementA grouping for ordinal or polychotomous variables
[props.characteristic]BackboneElementWhat defines the members of the evidence element
[props.characteristicCombination]stringintersection
[props.contact]ContactDetailContact details for the publisher
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the evidence variable
[props.editor]ContactDetailWho edited the content
[props.endorser]ContactDetailWho endorsed the content
[props.handling]stringcontinuous
[props.identifier]IdentifierAdditional identifier for the evidence variable
[props.name]stringName for this evidence variable (computer friendly)
[props.note]AnnotationUsed for footnotes or explanatory notes
[props.publisher]stringName of the publisher (organization or individual)
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations, etc.
[props.reviewer]ContactDetailWho reviewed the content
[props.shortTitle]stringTitle for use in informal contexts
[props.status]stringdraft
[props.subtitle]stringSubordinate title of the EvidenceVariable
[props.title]stringName for this evidence variable (human friendly)
[props.url]stringCanonical identifier for this evidence variable, represented as a URI (globally unique)
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the evidence variable

builders.explanationOfBenefit

explanationOfBenefit(props)

Create a ExplanationOfBenefit resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.accident]BackboneElementDetails of the event
[props.addItem]BackboneElementInsurer added line items
[props.adjudication]anyHeader-level adjudication
[props.benefitBalance]BackboneElementBalance by Benefit Category
[props.benefitPeriod]PeriodWhen the benefits are applicable
[props.billablePeriod]PeriodRelevant time frame for the claim
[props.careTeam]BackboneElementCare Team members
[props.claim]ReferenceClaim reference
[props.claimResponse]ReferenceClaim response reference
[props.created]dateTimeResponse creation date
[props.diagnosis]BackboneElementPertinent diagnosis information
[props.disposition]stringDisposition Message
[props.enterer]ReferenceAuthor of the claim
[props.facility]ReferenceServicing Facility
[props.form]AttachmentPrinted reference or actual form
[props.formCode]stringPrinted form identifier. Accepts all values from http://hl7.org/fhir/ValueSet/forms
[props.fundsReserve]stringFunds reserved status. Accepts all values from http://hl7.org/fhir/ValueSet/fundsreserve
[props.fundsReserveRequested]stringFor whom to reserve funds. Accepts all values from http://hl7.org/fhir/ValueSet/fundsreserve
[props.identifier]IdentifierBusiness Identifier for the resource
[props.insurance]BackboneElementPatient insurance information
[props.insurer]ReferenceParty responsible for reimbursement
[props.item]BackboneElementProduct or service provided
[props.originalPrescription]ReferenceOriginal prescription if superceded by fulfiller
[props.outcome]stringqueued
[props.patient]ReferenceThe recipient of the products and services
[props.payee]BackboneElementRecipient of benefits payable
[props.payment]BackboneElementPayment Details
[props.preAuthRef]stringPreauthorization reference
[props.preAuthRefPeriod]PeriodPreauthorization in-effect period
[props.precedence]numberPrecedence (primary, secondary, etc.)
[props.prescription]ReferencePrescription authorizing services or products
[props.priority]stringDesired processing urgency. Accepts all values from http://hl7.org/fhir/ValueSet/process-priority
[props.procedure]BackboneElementClinical procedures performed
[props.processNote]BackboneElementNote concerning adjudication
[props.provider]ReferenceParty responsible for the claim
[props.referral]ReferenceTreatment Referral
[props.related]BackboneElementPrior or corollary claims
[props.status]stringactive
[props.subType]stringMore granular claim type. Accepts all values from http://hl7.org/fhir/ValueSet/claim-subtype
[props.supportingInfo]BackboneElementSupporting information
[props.total]BackboneElementAdjudication totals
[props.type]stringCategory or discipline. Accepts all values from http://hl7.org/fhir/ValueSet/claim-type
[props.use]stringclaim

builders.familyMemberHistory

familyMemberHistory(props)

Create a FamilyMemberHistory resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.age]Age | Range | string(approximate) age
[props.born]Period | date | string(approximate) date of birth
[props.condition]BackboneElementCondition that the related person had
[props.dataAbsentReason]stringsubject-unknown
[props.date]dateTimeWhen history was recorded or last updated
[props.deceased]boolean | Age | Range | date | stringDead? How old/when?
[props.estimatedAge]booleanAge is estimated?
[props.identifier]IdentifierExternal Id(s) for this record
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.name]stringThe family member described
[props.note]AnnotationGeneral note about related person
[props.patient]ReferencePatient history is about
[props.reasonCode]stringWhy was family member history performed?. Accepts all values from http://hl7.org/fhir/ValueSet/clinical-findings
[props.reasonReference]ReferenceWhy was family member history performed?
[props.relationship]stringRelationship to the subject. Accepts all values from http://terminology.hl7.org/ValueSet/v3-FamilyMember
[props.sex]stringmale
[props.status]stringpartial

builders.flag

flag(props)

Create a Flag resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.author]ReferenceFlag creator
[props.category]stringClinical, administrative, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/flag-category
[props.code]stringCoded or textual message to display to user. Accepts all values from http://hl7.org/fhir/ValueSet/flag-code
[props.encounter]ReferenceAlert relevant during encounter
[props.identifier]IdentifierBusiness identifier
[props.period]PeriodTime period when flag is active
[props.status]stringactive
[props.subject]ReferenceWho/What is flag about?

builders.goal

goal(props)

Create a Goal resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.achievementStatus]stringin-progress
[props.addresses]ReferenceIssues addressed by this goal
[props.category]stringE.g. Treatment, dietary, behavioral, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/goal-category
[props.description]stringCode or text describing goal. Accepts all values from http://hl7.org/fhir/ValueSet/clinical-findings
[props.expressedBy]ReferenceWho's responsible for creating Goal?
[props.identifier]IdentifierExternal Ids for this goal
[props.lifecycleStatus]stringproposed
[props.note]AnnotationComments about the goal
[props.outcomeCode]stringWhat result was achieved regarding the goal?. Accepts all values from http://hl7.org/fhir/ValueSet/clinical-findings
[props.outcomeReference]ReferenceObservation that resulted from goal
[props.priority]stringhigh-priority
[props.start]stringWhen goal pursuit begins. Accepts all values from http://hl7.org/fhir/ValueSet/goal-start-event
[props.statusDate]dateWhen goal status took effect
[props.statusReason]stringReason for current status
[props.subject]ReferenceWho this goal is intended for
[props.target]BackboneElementTarget outcome for the goal

builders.group

group(props)

Create a Group resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this group's record is in active use
[props.actual]booleanDescriptive or actual
[props.characteristic]BackboneElementInclude / Exclude group members by Trait
[props.code]CodeableConceptKind of Group members
[props.identifier]IdentifierUnique id
[props.managingEntity]ReferenceEntity that is the custodian of the Group's definition
[props.member]BackboneElementWho or what is in group
[props.name]stringLabel for Group
[props.quantity]unsignedIntNumber of members
[props.type]stringperson

builders.guidanceResponse

guidanceResponse(props)

Create a GuidanceResponse resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.dataRequirement]DataRequirementAdditional required data
[props.encounter]ReferenceEncounter during which the response was returned
[props.evaluationMessage]ReferenceMessages resulting from the evaluation of the artifact or artifacts
[props.identifier]IdentifierBusiness identifier
[props.module]string | canonical | CodeableConceptWhat guidance was requested
[props.note]AnnotationAdditional notes about the response
[props.occurrenceDateTime]dateTimeWhen the guidance response was processed
[props.outputParameters]ReferenceThe output parameters of the evaluation, if any
[props.performer]ReferenceDevice returning the guidance
[props.reasonCode]CodeableConceptWhy guidance is needed
[props.reasonReference]ReferenceWhy guidance is needed
[props.requestIdentifier]IdentifierThe identifier of the request associated with this response, if any
[props.result]ReferenceProposed actions, if any
[props.status]stringsuccess
[props.subject]ReferencePatient the request was performed for

builders.healthcareService

healthcareService(props)

Create a HealthcareService resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this HealthcareService record is in active use
[props.appointmentRequired]booleanIf an appointment is required for access to this service
[props.availabilityExceptions]stringDescription of availability exceptions
[props.availableTime]BackboneElementTimes the Service Site is available
[props.category]stringBroad category of service being performed or delivered. Accepts all values from http://hl7.org/fhir/ValueSet/service-category
[props.characteristic]CodeableConceptCollection of characteristics (attributes)
[props.comment]stringAdditional description and/or any specific issues not covered elsewhere
[props.communication]stringThe language that this service is offered in. Accepts all values from http://hl7.org/fhir/ValueSet/languages
[props.coverageArea]ReferenceLocation(s) service is intended for/available to
[props.eligibility]BackboneElementSpecific eligibility requirements required to use the service
[props.endpoint]ReferenceTechnical endpoints providing access to electronic services operated for the healthcare service
[props.extraDetails]markdownExtra details about the service that can't be placed in the other fields
[props.identifier]IdentifierExternal identifiers for this item
[props.location]ReferenceLocation(s) where service may be provided
[props.name]stringDescription of service as presented to a consumer while searching
[props.notAvailable]BackboneElementNot available during this time due to provided reason
[props.photo]AttachmentFacilitates quick identification of the service
[props.program]stringPrograms that this service is applicable to. Accepts all values from http://hl7.org/fhir/ValueSet/program
[props.providedBy]ReferenceOrganization that provides this service
[props.referralMethod]stringWays that the service accepts referrals. Accepts all values from http://hl7.org/fhir/ValueSet/service-referral-method
[props.serviceProvisionCode]stringConditions under which service is available/offered. Accepts all values from http://hl7.org/fhir/ValueSet/service-provision-conditions
[props.specialty]stringSpecialties handled by the HealthcareService. Accepts all values from http://hl7.org/fhir/ValueSet/c80-practice-codes
[props.telecom]ContactPointContacts related to the healthcare service
[props.type]stringType of service that may be delivered or performed. Accepts all values from http://hl7.org/fhir/ValueSet/service-type

builders.imagingStudy

imagingStudy(props)

Create a ImagingStudy resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceRequest fulfilled
[props.description]stringInstitution-generated description
[props.encounter]ReferenceEncounter with which this imaging study is associated
[props.endpoint]ReferenceStudy access endpoint
[props.identifier]IdentifierIdentifiers for the whole study
[props.interpreter]ReferenceWho interpreted images
[props.location]ReferenceWhere ImagingStudy occurred
[props.modality]stringAll series modality if actual acquisition modalities. Accepts all values from http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_29.html
[props.note]AnnotationUser-defined comments
[props.numberOfInstances]unsignedIntNumber of Study Related Instances
[props.numberOfSeries]unsignedIntNumber of Study Related Series
[props.procedureCode]stringThe performed procedure code. Accepts all values from http://www.rsna.org/RadLex_Playbook.aspx
[props.procedureReference]ReferenceThe performed Procedure reference
[props.reasonCode]stringWhy the study was requested. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-reason
[props.reasonReference]ReferenceWhy was study performed
[props.referrer]ReferenceReferring physician
[props.series]BackboneElementEach study has one or more series of instances
[props.started]dateTimeWhen the study was started
[props.status]stringregistered
[props.subject]ReferenceWho or what is the subject of the study

builders.immunization

immunization(props)

Create a Immunization resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.doseQuantity]QuantityAmount of vaccine administered
[props.education]BackboneElementEducational material presented to patient
[props.encounter]ReferenceEncounter immunization was part of
[props.expirationDate]dateVaccine expiration date
[props.fundingSource]stringFunding source for the vaccine. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-funding-source
[props.identifier]IdentifierBusiness identifier
[props.isSubpotent]booleanDose potency
[props.location]ReferenceWhere immunization occurred
[props.lotNumber]stringVaccine lot number
[props.manufacturer]ReferenceVaccine manufacturer
[props.note]AnnotationAdditional immunization notes
[props.occurrence]dateTime | stringVaccine administration date
[props.patient]ReferenceWho was immunized
[props.performer]BackboneElementWho performed event
[props.primarySource]booleanIndicates context the data was recorded in
[props.programEligibility]stringPatient eligibility for a vaccination program. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-program-eligibility
[props.protocolApplied]BackboneElementProtocol followed by the provider
[props.reaction]BackboneElementDetails of a reaction that follows immunization
[props.reasonCode]stringWhy immunization occurred. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-reason
[props.reasonReference]ReferenceWhy immunization occurred
[props.recorded]dateTimeWhen the immunization was first captured in the subject's record
[props.reportOrigin]stringIndicates the source of a secondarily reported record. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-origin
[props.route]stringHow vaccine entered body. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-route
[props.site]stringBody site vaccine was administered. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-site
[props.status]stringcompleted
[props.statusReason]stringReason not done. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-status-reason
[props.subpotentReason]stringReason for being subpotent. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-subpotent-reason
[props.vaccineCode]stringVaccine product administered. Accepts all values from http://hl7.org/fhir/ValueSet/vaccine-code

builders.immunizationEvaluation

immunizationEvaluation(props)

Create a ImmunizationEvaluation resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.authority]ReferenceWho is responsible for publishing the recommendations
[props.date]dateTimeDate evaluation was performed
[props.description]stringEvaluation notes
[props.doseNumber]number | stringDose number within series
[props.doseStatus]stringStatus of the dose relative to published recommendations. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status
[props.doseStatusReason]stringReason for the dose status. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status-reason
[props.identifier]IdentifierBusiness identifier
[props.immunizationEvent]ReferenceImmunization being evaluated
[props.patient]ReferenceWho this evaluation is for
[props.series]stringName of vaccine series
[props.seriesDoses]number | stringRecommended number of doses for immunity
[props.status]stringcompleted
[props.targetDisease]stringEvaluation target disease. Accepts all values from http://hl7.org/fhir/ValueSet/immunization-evaluation-target-disease

builders.immunizationRecommendation

immunizationRecommendation(props)

Create a ImmunizationRecommendation resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.authority]ReferenceWho is responsible for protocol
[props.date]dateTimeDate recommendation(s) created
[props.identifier]IdentifierBusiness identifier
[props.patient]ReferenceWho this profile is for
[props.recommendation]BackboneElementVaccine administration recommendations

builders.ingredient

ingredient(props)

Create a Ingredient resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.allergenicIndicator]booleanIf the ingredient is a known or suspected allergen
[props.for]ReferenceThe product which this ingredient is a constituent part of
[props.function]stringPrecise action within the drug product, e.g. antioxidant, alkalizing agent. Accepts all values from http://hl7.org/fhir/ValueSet/ingredient-function
[props.identifier]IdentifierAn identifier or code by which the ingredient can be referenced
[props.manufacturer]BackboneElementAn organization that manufactures this ingredient
[props.role]stringPurpose of the ingredient within the product, e.g. active, inactive. Accepts all values from http://hl7.org/fhir/ValueSet/ingredient-role
[props.status]stringdraft
[props.substance]BackboneElementThe substance that comprises this ingredient

builders.insurancePlan

insurancePlan(props)

Create a InsurancePlan resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.administeredBy]ReferenceProduct administrator
[props.alias]stringAlternate names
[props.contact]BackboneElementContact for the product
[props.coverage]BackboneElementCoverage details
[props.coverageArea]ReferenceWhere product applies
[props.endpoint]ReferenceTechnical endpoint
[props.identifier]IdentifierBusiness Identifier for Product
[props.name]stringOfficial name
[props.network]ReferenceWhat networks are Included
[props.ownedBy]ReferencePlan issuer
[props.period]PeriodWhen the product is available
[props.plan]BackboneElementPlan details
[props.status]stringdraft
[props.type]stringKind of product. Accepts all values from http://hl7.org/fhir/ValueSet/insuranceplan-type

builders.invoice

invoice(props)

Create a Invoice resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.account]ReferenceAccount that is being balanced
[props.cancelledReason]stringReason for cancellation of this Invoice
[props.date]dateTimeInvoice date / posting date
[props.identifier]IdentifierBusiness Identifier for item
[props.issuer]ReferenceIssuing Organization of Invoice
[props.lineItem]BackboneElementLine items of this Invoice
[props.note]AnnotationComments made about the invoice
[props.participant]BackboneElementParticipant in creation of this Invoice
[props.paymentTerms]markdownPayment details
[props.recipient]ReferenceRecipient of this invoice
[props.status]stringdraft
[props.subject]ReferenceRecipient(s) of goods and services
[props.totalGross]MoneyGross total of this Invoice
[props.totalNet]MoneyNet total of this Invoice
[props.totalPriceComponent]anyComponents of Invoice total
[props.type]CodeableConceptType of Invoice

builders.library

library(props)

Create a Library resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the library was approved by publisher
[props.author]ContactDetailWho authored the content
[props.contact]ContactDetailContact details for the publisher
[props.content]AttachmentContents of the library, either embedded or referenced
[props.copyright]markdownUse and/or publishing restrictions
[props.dataRequirement]DataRequirementWhat data is referenced by this library
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the library
[props.editor]ContactDetailWho edited the content
[props.effectivePeriod]PeriodWhen the library is expected to be used
[props.endorser]ContactDetailWho endorsed the content
[props.experimental]booleanFor testing purposes, not real usage
[props.identifier]IdentifierAdditional identifier for the library
[props.jurisdiction]stringIntended jurisdiction for library (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the library was last reviewed
[props.name]stringName for this library (computer friendly)
[props.parameter]ParameterDefinitionParameters defined by the library
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this library is defined
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations, etc.
[props.reviewer]ContactDetailWho reviewed the content
[props.status]stringdraft
[props.subject]stringType of individual the library content is focused on. Accepts all values from http://hl7.org/fhir/ValueSet/subject-type
[props.subtitle]stringSubordinate title of the library
[props.title]stringName for this library (human friendly)
[props.topic]stringE.g. Education, Treatment, Assessment, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/definition-topic
[props.type]stringlogic-library
[props.url]stringCanonical identifier for this library, represented as a URI (globally unique)
[props.usage]stringDescribes the clinical usage of the library
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the library

builders.list

list(props)

Create a List resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.code]stringWhat the purpose of this list is. Accepts all values from http://hl7.org/fhir/ValueSet/list-example-codes
[props.date]dateTimeWhen the list was prepared
[props.emptyReason]stringWhy list is empty. Accepts all values from http://hl7.org/fhir/ValueSet/list-empty-reason
[props.encounter]ReferenceContext in which list created
[props.entry]BackboneElementEntries in the list
[props.identifier]IdentifierBusiness identifier
[props.mode]stringworking
[props.note]AnnotationComments about the list
[props.orderedBy]stringWhat order the list has. Accepts all values from http://hl7.org/fhir/ValueSet/list-order
[props.source]ReferenceWho and/or what defined the list contents (aka Author)
[props.status]stringcurrent
[props.subject]ReferenceIf all resources have the same subject
[props.title]stringDescriptive name for the list

builders.location

location(props)

Create a Location resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.address]AddressPhysical location
[props.alias]stringA list of alternate names that the location is known as, or was known as, in the past
[props.availabilityExceptions]stringDescription of availability exceptions
[props.description]stringAdditional details about the location that could be displayed as further information to identify the location beyond its name
[props.endpoint]ReferenceTechnical endpoints providing access to services operated for the location
[props.hoursOfOperation]BackboneElementWhat days/times during a week is this location usually open
[props.identifier]IdentifierUnique code or number identifying the location to its users
[props.managingOrganization]ReferenceOrganization responsible for provisioning and upkeep
[props.mode]stringinstance
[props.name]stringName of the location as used by humans
[props.operationalStatus]stringThe operational status of the location (typically only for a bed/room). Accepts all values from http://terminology.hl7.org/ValueSet/v2-0116
[props.partOf]ReferenceAnother Location this one is physically a part of
[props.physicalType]stringPhysical form of the location. Accepts all values from http://hl7.org/fhir/ValueSet/location-physical-type
[props.position]BackboneElementThe absolute geographic location
[props.status]stringactive
[props.telecom]ContactPointContact details of the location
[props.type]stringType of function performed. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType

builders.manufacturedItemDefinition

manufacturedItemDefinition(props)

Create a ManufacturedItemDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierUnique identifier
[props.ingredient]stringThe ingredients of this manufactured item. Only needed if these are not specified by incoming references from the Ingredient resource. Accepts all values from http://hl7.org/fhir/ValueSet/substance-codes
[props.manufacturedDoseForm]stringDose form as manufactured (before any necessary transformation). Accepts all values from http://hl7.org/fhir/ValueSet/manufactured-dose-form
[props.manufacturer]ReferenceManufacturer of the item (Note that this should be named "manufacturer" but it currently causes technical issues)
[props.property]BackboneElementGeneral characteristics of this item
[props.status]stringdraft
[props.unitOfPresentation]stringThe “real world” units in which the quantity of the item is described. Accepts all values from http://hl7.org/fhir/ValueSet/unit-of-presentation

builders.measure

measure(props)

Create a Measure resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the measure was approved by publisher
[props.author]ContactDetailWho authored the content
[props.clinicalRecommendationStatement]markdownSummary of clinical guidelines
[props.compositeScoring]stringopportunity
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.definition]markdownDefined terms used in the measure documentation
[props.description]markdownNatural language description of the measure
[props.disclaimer]markdownDisclaimer for use of the measure or its referenced content
[props.editor]ContactDetailWho edited the content
[props.effectivePeriod]PeriodWhen the measure is expected to be used
[props.endorser]ContactDetailWho endorsed the content
[props.experimental]booleanFor testing purposes, not real usage
[props.group]BackboneElementPopulation criteria group
[props.guidance]markdownAdditional guidance for implementers
[props.identifier]IdentifierAdditional identifier for the measure
[props.improvementNotation]stringincrease
[props.jurisdiction]stringIntended jurisdiction for measure (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the measure was last reviewed
[props.library]canonicalLogic used by the measure
[props.name]stringName for this measure (computer friendly)
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this measure is defined
[props.rateAggregation]stringHow is rate aggregation performed for this measure
[props.rationale]markdownDetailed description of why the measure exists
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations, etc.
[props.reviewer]ContactDetailWho reviewed the content
[props.riskAdjustment]stringHow risk adjustment is applied for this measure
[props.scoring]stringproportion
[props.status]stringdraft
[props.subject]stringE.g. Patient, Practitioner, RelatedPerson, Organization, Location, Device. Accepts all values from http://hl7.org/fhir/ValueSet/subject-type
[props.subtitle]stringSubordinate title of the measure
[props.supplementalData]BackboneElementWhat other data should be reported with the measure
[props.title]stringName for this measure (human friendly)
[props.topic]stringThe category of the measure, such as Education, Treatment, Assessment, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/definition-topic
[props.type]stringprocess
[props.url]stringCanonical identifier for this measure, represented as a URI (globally unique)
[props.usage]stringDescribes the clinical usage of the measure
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the measure

builders.measureReport

measureReport(props)

Create a MeasureReport resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.date]dateTimeWhen the report was generated
[props.evaluatedResource]ReferenceWhat data was used to calculate the measure score
[props.group]BackboneElementMeasure results for each group
[props.identifier]IdentifierAdditional identifier for the MeasureReport
[props.improvementNotation]stringincrease
[props.measure]canonicalWhat measure was calculated
[props.period]PeriodWhat period the report covers
[props.reporter]ReferenceWho is reporting the data
[props.status]stringcomplete
[props.subject]ReferenceWhat individual(s) the report is for
[props.type]stringindividual

builders.media

media(props)

Create a Media resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceProcedure that caused this media to be created
[props.bodySite]stringObserved body part. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.content]AttachmentActual Media - reference or data
[props.created]dateTime | PeriodWhen Media was collected
[props.device]ReferenceObserving Device
[props.deviceName]stringName of the device/manufacturer
[props.duration]decimalLength in seconds (audio / video)
[props.encounter]ReferenceEncounter associated with media
[props.frames]numberNumber of frames if > 1 (photo)
[props.height]numberHeight of the image in pixels (photo/video)
[props.identifier]IdentifierIdentifier(s) for the image
[props.issued]instantDate/Time this version was made available
[props.modality]stringThe type of acquisition equipment/process. Accepts all values from http://hl7.org/fhir/ValueSet/media-modality
[props.note]AnnotationComments made about the media
[props.operator]ReferenceThe person who generated the image
[props.partOf]ReferencePart of referenced event
[props.reasonCode]stringWhy was event performed?. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-reason
[props.status]stringpreparation
[props.subject]ReferenceWho/What this Media is a record of
[props.type]stringClassification of media as image, video, or audio. Accepts all values from http://hl7.org/fhir/ValueSet/media-type
[props.view]stringImaging view, e.g. Lateral or Antero-posterior. Accepts all values from http://hl7.org/fhir/ValueSet/media-view
[props.width]numberWidth of the image in pixels (photo/video)

builders.medication

medication(props)

Create a Medication resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.amount]RatioAmount of drug in package
[props.batch]BackboneElementDetails about packaged medications
[props.code]stringCodes that identify this medication. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.form]stringpowder
[props.identifier]IdentifierBusiness identifier for this medication
[props.ingredient]BackboneElementActive or inactive ingredient
[props.manufacturer]ReferenceManufacturer of the item
[props.status]stringactive

builders.medicationAdministration

medicationAdministration(props)

Create a MedicationAdministration resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.category]stringType of medication usage. Accepts all values from http://hl7.org/fhir/ValueSet/medication-admin-category
[props.context]ReferenceEncounter or Episode of Care administered as part of
[props.device]ReferenceDevice used to administer
[props.dosage]BackboneElementDetails of how medication was taken
[props.effective]dateTime | PeriodStart and end time of administration
[props.eventHistory]ReferenceA list of events of interest in the lifecycle
[props.identifier]IdentifierExternal identifier
[props.instantiates]stringInstantiates protocol or definition
[props.medication]stringWhat was administered. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.note]AnnotationInformation about the administration
[props.partOf]ReferencePart of referenced event
[props.performer]BackboneElementWho performed the medication administration and what they did
[props.reasonCode]stringReason administration performed. Accepts all values from http://hl7.org/fhir/ValueSet/reason-medication-given-codes
[props.reasonReference]ReferenceCondition or observation that supports why the medication was administered
[props.request]ReferenceRequest administration performed against
[props.status]stringin-progress
[props.statusReason]stringReason administration not performed. Accepts all values from http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes
[props.subject]ReferenceWho received medication
[props.supportingInformation]ReferenceAdditional information to support administration

builders.medicationDispense

medicationDispense(props)

Create a MedicationDispense resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.authorizingPrescription]ReferenceMedication order that authorizes the dispense
[props.category]stringType of medication dispense. Accepts all values from http://hl7.org/fhir/ValueSet/medicationdispense-category
[props.context]ReferenceEncounter / Episode associated with event
[props.daysSupply]QuantityAmount of medication expressed as a timing amount
[props.destination]ReferenceWhere the medication was sent
[props.detectedIssue]ReferenceClinical issue with action
[props.dosageInstruction]DosageHow the medication is to be used by the patient or administered by the caregiver
[props.eventHistory]ReferenceA list of relevant lifecycle events
[props.identifier]IdentifierExternal identifier
[props.location]ReferenceWhere the dispense occurred
[props.medication]stringWhat medication was supplied. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.note]AnnotationInformation about the dispense
[props.partOf]ReferenceEvent that dispense is part of
[props.performer]BackboneElementWho performed event
[props.quantity]QuantityAmount dispensed
[props.receiver]ReferenceWho collected the medication
[props.status]stringpreparation
[props.statusReason]stringWhy a dispense was not performed. Accepts all values from http://hl7.org/fhir/ValueSet/medicationdispense-status-reason
[props.subject]ReferenceWho the dispense is for
[props.substitution]BackboneElementWhether a substitution was performed on the dispense
[props.supportingInformation]ReferenceInformation that supports the dispensing of the medication
[props.type]stringTrial fill, partial fill, emergency fill, etc.. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType
[props.whenHandedOver]dateTimeWhen product was given out
[props.whenPrepared]dateTimeWhen product was packaged and reviewed

builders.medicationKnowledge

medicationKnowledge(props)

Create a MedicationKnowledge resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.administrationGuidelines]BackboneElementGuidelines for administration of the medication
[props.amount]QuantityAmount of drug in package
[props.associatedMedication]ReferenceA medication resource that is associated with this medication
[props.code]stringCode that identifies this medication. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.contraindication]ReferencePotential clinical issue with or between medication(s)
[props.cost]BackboneElementThe pricing of the medication
[props.doseForm]stringpowder
[props.drugCharacteristic]BackboneElementSpecifies descriptive properties of the medicine
[props.ingredient]BackboneElementActive or inactive ingredient
[props.intendedRoute]stringThe intended or approved route of administration. Accepts all values from http://hl7.org/fhir/ValueSet/route-codes
[props.kinetics]BackboneElementThe time course of drug absorption, distribution, metabolism and excretion of a medication from the body
[props.manufacturer]ReferenceManufacturer of the item
[props.medicineClassification]BackboneElementCategorization of the medication within a formulary or classification system
[props.monitoringProgram]BackboneElementProgram under which a medication is reviewed
[props.monograph]BackboneElementAssociated documentation about the medication
[props.packaging]BackboneElementDetails about packaged medications
[props.preparationInstruction]markdownThe instructions for preparing the medication
[props.productType]CodeableConceptCategory of the medication or product
[props.regulatory]BackboneElementRegulatory information about a medication
[props.relatedMedicationKnowledge]BackboneElementAssociated or related medication information
[props.status]stringactive
[props.synonym]stringAdditional names for a medication

builders.medicationRequest

medicationRequest(props)

Create a MedicationRequest resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.authoredOn]dateTimeWhen request was initially authored
[props.basedOn]ReferenceWhat request fulfills
[props.category]stringType of medication usage. Accepts all values from http://hl7.org/fhir/ValueSet/medicationrequest-category
[props.courseOfTherapyType]stringOverall pattern of medication administration. Accepts all values from http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
[props.detectedIssue]ReferenceClinical Issue with action
[props.dispenseRequest]BackboneElementMedication supply authorization
[props.doNotPerform]booleanTrue if request is prohibiting action
[props.dosageInstruction]DosageHow the medication should be taken
[props.encounter]ReferenceEncounter created as part of encounter/admission/stay
[props.eventHistory]ReferenceA list of events of interest in the lifecycle
[props.groupIdentifier]IdentifierComposite request this is part of
[props.identifier]IdentifierExternal ids for this request
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.insurance]ReferenceAssociated insurance coverage
[props.intent]stringproposal
[props.medication]stringMedication to be taken. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.note]AnnotationInformation about the prescription
[props.performer]ReferenceIntended performer of administration
[props.performerType]stringDesired kind of performer of the medication administration. Accepts all values from http://hl7.org/fhir/ValueSet/performer-role
[props.priorPrescription]ReferenceAn order/prescription that is being replaced
[props.priority]stringroutine
[props.reasonCode]stringReason or indication for ordering or not ordering the medication. Accepts all values from http://hl7.org/fhir/ValueSet/condition-code
[props.reasonReference]ReferenceCondition or observation that supports why the prescription is being written
[props.recorder]ReferencePerson who entered the request
[props.reported]boolean | ReferenceReported rather than primary record
[props.requester]ReferenceWho/What requested the Request
[props.status]stringactive
[props.statusReason]stringReason for current status. Accepts all values from http://hl7.org/fhir/ValueSet/medicationrequest-status-reason
[props.subject]ReferenceWho or group medication request is for
[props.substitution]BackboneElementAny restrictions on medication substitution
[props.supportingInformation]ReferenceInformation to support ordering of the medication

builders.medicationStatement

medicationStatement(props)

Create a MedicationStatement resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceFulfils plan, proposal or order
[props.category]stringType of medication usage. Accepts all values from http://hl7.org/fhir/ValueSet/medication-statement-category
[props.context]ReferenceEncounter / Episode associated with MedicationStatement
[props.dateAsserted]dateTimeWhen the statement was asserted?
[props.derivedFrom]ReferenceAdditional supporting information
[props.dosage]DosageDetails of how medication is/was taken or should be taken
[props.effective]dateTime | PeriodThe date/time or interval when the medication is/was/will be taken
[props.identifier]IdentifierExternal identifier
[props.informationSource]ReferencePerson or organization that provided the information about the taking of this medication
[props.medication]stringWhat medication was taken. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.note]AnnotationFurther information about the statement
[props.partOf]ReferencePart of referenced event
[props.reasonCode]stringReason for why the medication is being/was taken. Accepts all values from http://hl7.org/fhir/ValueSet/condition-code
[props.reasonReference]ReferenceCondition or observation that supports why the medication is being/was taken
[props.status]stringactive
[props.statusReason]stringReason for current status. Accepts all values from http://hl7.org/fhir/ValueSet/reason-medication-status-codes
[props.subject]ReferenceWho is/was taking the medication

builders.medicinalProductDefinition

medicinalProductDefinition(props)

Create a MedicinalProductDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.additionalMonitoringIndicator]stringWhether the Medicinal Product is subject to additional monitoring for regulatory reasons. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-additional-monitoring
[props.attachedDocument]ReferenceAdditional documentation about the medicinal product
[props.characteristic]BackboneElementKey product features such as "sugar free", "modified release"
[props.classification]stringAllows the product to be classified by various systems. Accepts all values from http://hl7.org/fhir/ValueSet/product-classification-codes
[props.clinicalTrial]ReferenceClinical trials or studies that this product is involved in
[props.code]stringA code that this product is known by, within some formal terminology. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.combinedPharmaceuticalDoseForm]stringThe dose form for a single part product, or combined form of a multiple part product. Accepts all values from http://hl7.org/fhir/ValueSet/combined-dose-form
[props.contact]BackboneElementA product specific contact, person (in a role), or an organization
[props.crossReference]BackboneElementReference to another product, e.g. for linking authorised to investigational product
[props.description]markdownGeneral description of this product
[props.domain]stringIf this medicine applies to human or veterinary uses. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-domain
[props.identifier]IdentifierBusiness identifier for this product. Could be an MPID
[props.impurity]stringAny component of the drug product which is not the chemical entity defined as the drug substance, or an excipient in the drug product. Accepts all values from http://hl7.org/fhir/ValueSet/substance-codes
[props.indication]markdownDescription of indication(s) for this product, used when structured indications are not required
[props.ingredient]stringThe ingredients of this medicinal product - when not detailed in other resources. Accepts all values from http://hl7.org/fhir/ValueSet/substance-codes
[props.legalStatusOfSupply]stringThe legal status of supply of the medicinal product as classified by the regulator. Accepts all values from http://hl7.org/fhir/ValueSet/legal-status-of-supply
[props.marketingStatus]MarketingStatusMarketing status of the medicinal product, in contrast to marketing authorization
[props.masterFile]ReferenceA master file for the medicinal product (e.g. Pharmacovigilance System Master File)
[props.name]BackboneElementThe product's name, including full name and possibly coded parts
[props.operation]BackboneElementA manufacturing or administrative process for the medicinal product
[props.packagedMedicinalProduct]stringPackage type for the product. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-package-type
[props.pediatricUseIndicator]stringIf authorised for use in children. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-pediatric-use
[props.route]stringThe path by which the product is taken into or makes contact with the body. Accepts all values from http://hl7.org/fhir/ValueSet/route-codes
[props.specialMeasures]stringWhether the Medicinal Product is subject to special measures for regulatory reasons. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-special-measures
[props.status]stringThe status within the lifecycle of this product record. Accepts all values from http://hl7.org/fhir/ValueSet/publication-status
[props.statusDate]dateTimeThe date at which the given status became applicable
[props.type]stringRegulatory type, e.g. Investigational or Authorized. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-type
[props.version]stringA business identifier relating to a specific version of the product

builders.molecularSequence

molecularSequence(props)

Create a MolecularSequence resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.coordinateSystem]integerBase number of coordinate system (0 for 0-based numbering or coordinates, inclusive start, exclusive end, 1 for 1-based numbering, inclusive start, inclusive end)
[props.device]ReferenceThe method for sequencing
[props.identifier]IdentifierUnique ID for this particular sequence. This is a FHIR-defined id
[props.observedSeq]stringSequence that was observed
[props.patient]ReferenceWho and/or what this is about
[props.performer]ReferenceWho should be responsible for test result
[props.pointer]ReferencePointer to next atomic sequence
[props.quality]BackboneElementAn set of value as quality of sequence
[props.quantity]QuantityThe number of copies of the sequence of interest. (RNASeq)
[props.readCoverage]integerAverage number of reads representing a given nucleotide in the reconstructed sequence
[props.referenceSeq]BackboneElementA sequence used as reference
[props.repository]BackboneElementExternal repository which contains detailed report related with observedSeq in this resource
[props.specimen]ReferenceSpecimen used for sequencing
[props.structureVariant]BackboneElementStructural variant
[props.type]stringaa
[props.variant]BackboneElementVariant in sequence

builders.nutritionOrder

nutritionOrder(props)

Create a NutritionOrder resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.allergyIntolerance]ReferenceList of the patient's food and nutrition-related allergies and intolerances
[props.dateTime]dateTimeDate and time the nutrition order was requested
[props.encounter]ReferenceThe encounter associated with this nutrition order
[props.enteralFormula]BackboneElementEnteral formula components
[props.excludeFoodModifier]stringOrder-specific modifier about the type of food that should not be given. Accepts all values from http://hl7.org/fhir/ValueSet/food-type
[props.foodPreferenceModifier]stringOrder-specific modifier about the type of food that should be given. Accepts all values from http://hl7.org/fhir/ValueSet/encounter-diet
[props.identifier]IdentifierIdentifiers assigned to this order
[props.instantiates]stringInstantiates protocol or definition
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.intent]stringproposal
[props.note]AnnotationComments
[props.oralDiet]BackboneElementOral diet components
[props.orderer]ReferenceWho ordered the diet, formula or nutritional supplement
[props.patient]ReferenceThe person who requires the diet, formula or nutritional supplement
[props.status]stringdraft
[props.supplement]BackboneElementSupplement components

builders.nutritionProduct

nutritionProduct(props)

Create a NutritionProduct resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.category]stringA category or class of the nutrition product (halal, kosher, gluten free, vegan, etc). Accepts all values from http://hl7.org/fhir/ValueSet/nutrition-product-category
[props.code]stringA code designating a specific type of nutritional product. Accepts all values from http://hl7.org/fhir/ValueSet/edible-substance-type
[props.ingredient]BackboneElementIngredients contained in this product
[props.instance]BackboneElementOne or several physical instances or occurrences of the nutrition product
[props.knownAllergen]stringKnown or suspected allergens that are a part of this product. Accepts all values from http://hl7.org/fhir/ValueSet/allergen-class
[props.manufacturer]ReferenceManufacturer, representative or officially responsible for the product
[props.note]AnnotationComments made about the product
[props.nutrient]BackboneElementThe product's nutritional information expressed by the nutrients
[props.productCharacteristic]BackboneElementSpecifies descriptive properties of the nutrition product
[props.status]stringactive

builders.observation

observation(props)

Create a Observation resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceFulfills plan, proposal or order
[props.bodySite]stringObserved body part. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.category]stringClassification of type of observation. Accepts all values from http://hl7.org/fhir/ValueSet/observation-category
[props.code]stringType of observation (code / type). Accepts all values from http://hl7.org/fhir/ValueSet/observation-codes
[props.component]BackboneElementComponent results
[props.dataAbsentReason]stringWhy the result is missing. Accepts all values from http://hl7.org/fhir/ValueSet/data-absent-reason
[props.derivedFrom]ReferenceRelated measurements the observation is made from
[props.device]Reference(Measurement) Device
[props.effective]dateTime | Period | Timing | instantClinically relevant time/time-period for observation
[props.encounter]ReferenceHealthcare event during which this observation is made
[props.focus]ReferenceWhat the observation is about, when it is not about the subject of record
[props.hasMember]ReferenceRelated resource that belongs to the Observation group
[props.identifier]IdentifierBusiness Identifier for observation
[props.interpretation]stringHigh, low, normal, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/observation-interpretation
[props.issued]instantDate/Time this version was made available
[props.method]stringHow it was done. Accepts all values from http://hl7.org/fhir/ValueSet/observation-methods
[props.note]AnnotationComments about the observation
[props.partOf]ReferencePart of referenced event
[props.performer]ReferenceWho is responsible for the observation
[props.referenceRange]BackboneElementProvides guide for interpretation
[props.specimen]ReferenceSpecimen used for this observation
[props.status]stringregistered
[props.subject]ReferenceWho and/or what the observation is about
[props.value]Quantity | CodeableConcept | string | boolean | integer | Range | Ratio | SampledData | time | dateTime | PeriodActual result

builders.observationDefinition

observationDefinition(props)

Create a ObservationDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.abnormalCodedValueSet]ReferenceValue set of abnormal coded values for the observations conforming to this ObservationDefinition
[props.category]stringCategory of observation. Accepts all values from http://hl7.org/fhir/ValueSet/observation-category
[props.code]stringType of observation (code / type). Accepts all values from http://hl7.org/fhir/ValueSet/observation-codes
[props.criticalCodedValueSet]ReferenceValue set of critical coded values for the observations conforming to this ObservationDefinition
[props.identifier]IdentifierBusiness identifier for this ObservationDefinition instance
[props.method]stringMethod used to produce the observation. Accepts all values from http://hl7.org/fhir/ValueSet/observation-methods
[props.multipleResultsAllowed]booleanMultiple results allowed
[props.normalCodedValueSet]ReferenceValue set of normal coded values for the observations conforming to this ObservationDefinition
[props.permittedDataType]stringQuantity
[props.preferredReportName]stringPreferred report name
[props.qualifiedInterval]BackboneElementQualified range for continuous and ordinal observation results
[props.quantitativeDetails]BackboneElementCharacteristics of quantitative results
[props.validCodedValueSet]ReferenceValue set of valid coded values for the observations conforming to this ObservationDefinition

builders.organization

organization(props)

Create a Organization resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether the organization's record is still in active use
[props.address]AddressAn address for the organization
[props.alias]stringA list of alternate names that the organization is known as, or was known as in the past
[props.contact]BackboneElementContact for the organization for a certain purpose
[props.endpoint]ReferenceTechnical endpoints providing access to services operated for the organization
[props.identifier]IdentifierIdentifies this organization across multiple systems
[props.name]stringName used for the organization
[props.partOf]ReferenceThe organization of which this organization forms a part
[props.telecom]ContactPointA contact detail for the organization
[props.type]stringKind of organization. Accepts all values from http://hl7.org/fhir/ValueSet/organization-type

builders.organizationAffiliation

organizationAffiliation(props)

Create a OrganizationAffiliation resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this organization affiliation record is in active use
[props.code]stringDefinition of the role the participatingOrganization plays. Accepts all values from http://hl7.org/fhir/ValueSet/organization-role
[props.endpoint]ReferenceTechnical endpoints providing access to services operated for this role
[props.healthcareService]ReferenceHealthcare services provided through the role
[props.identifier]IdentifierBusiness identifiers that are specific to this role
[props.location]ReferenceThe location(s) at which the role occurs
[props.network]ReferenceHealth insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)
[props.organization]ReferenceOrganization where the role is available
[props.participatingOrganization]ReferenceOrganization that provides/performs the role (e.g. providing services or is a member of)
[props.period]PeriodThe period during which the participatingOrganization is affiliated with the primary organization
[props.specialty]stringSpecific specialty of the participatingOrganization in the context of the role. Accepts all values from http://hl7.org/fhir/ValueSet/c80-practice-codes
[props.telecom]ContactPointContact details at the participatingOrganization relevant to this Affiliation

builders.packagedProductDefinition

packagedProductDefinition(props)

Create a PackagedProductDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.characteristic]stringAllows the key features to be recorded, such as "hospital pack", "nurse prescribable". Accepts all values from http://hl7.org/fhir/ValueSet/package-characteristic
[props.containedItemQuantity]QuantityA total of the complete count of contained items of a particular type/form, independent of sub-packaging or organization. This can be considered as the pack size
[props.copackagedIndicator]booleanIf the drug product is supplied with another item such as a diluent or adjuvant
[props.description]markdownTextual description. Note that this is not the name of the package or product
[props.identifier]IdentifierA unique identifier for this package as whole
[props.legalStatusOfSupply]BackboneElementThe legal status of supply of the packaged item as classified by the regulator
[props.manufacturer]ReferenceManufacturer of this package type (multiple means these are all possible manufacturers)
[props.marketingStatus]MarketingStatusAllows specifying that an item is on the market for sale, or that it is not available, and the dates and locations associated
[props.name]stringA name for this package. Typically as listed in a drug formulary, catalogue, inventory etc
[props.package]BackboneElementA packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap
[props.packageFor]ReferenceThe product that this is a pack for
[props.status]stringThe status within the lifecycle of this item. High level - not intended to duplicate details elsewhere e.g. legal status, or authorization/marketing status. Accepts all values from http://hl7.org/fhir/ValueSet/publication-status
[props.statusDate]dateTimeThe date at which the given status became applicable
[props.type]stringA high level category e.g. medicinal product, raw material, shipping container etc. Accepts all values from http://hl7.org/fhir/ValueSet/package-type

builders.patient

patient(props)

Create a Patient resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this patient's record is in active use
[props.address]AddressAn address for the individual
[props.birthDate]dateThe date of birth for the individual
[props.communication]BackboneElementA language which may be used to communicate with the patient about his or her health
[props.contact]BackboneElementA contact party (e.g. guardian, partner, friend) for the patient
[props.deceased]boolean | dateTimeIndicates if the individual is deceased or not
[props.gender]stringmale
[props.generalPractitioner]ReferencePatient's nominated primary care provider
[props.identifier]IdentifierAn identifier for this patient
[props.link]BackboneElementLink to another patient resource that concerns the same actual person
[props.managingOrganization]ReferenceOrganization that is the custodian of the patient record
[props.maritalStatus]stringMarital (civil) status of a patient. Accepts all values from http://hl7.org/fhir/ValueSet/marital-status
[props.multipleBirth]boolean | integerWhether patient is part of a multiple birth
[props.name]HumanNameA name associated with the patient
[props.photo]AttachmentImage of the patient
[props.telecom]ContactPointA contact detail for the individual

builders.paymentNotice

paymentNotice(props)

Create a PaymentNotice resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.amount]MoneyMonetary amount of the payment
[props.created]dateTimeCreation date
[props.identifier]IdentifierBusiness Identifier for the payment noctice
[props.payee]ReferenceParty being paid
[props.payment]ReferencePayment reference
[props.paymentDate]datePayment or clearing date
[props.paymentStatus]stringIssued or cleared Status of the payment. Accepts all values from http://hl7.org/fhir/ValueSet/payment-status
[props.provider]ReferenceResponsible practitioner
[props.recipient]ReferenceParty being notified
[props.request]ReferenceRequest reference
[props.response]ReferenceResponse reference
[props.status]stringactive

builders.paymentReconciliation

paymentReconciliation(props)

Create a PaymentReconciliation resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.created]dateTimeCreation date
[props.detail]BackboneElementSettlement particulars
[props.disposition]stringDisposition message
[props.formCode]stringPrinted form identifier. Accepts all values from http://hl7.org/fhir/ValueSet/forms
[props.identifier]IdentifierBusiness Identifier for a payment reconciliation
[props.outcome]stringqueued
[props.paymentAmount]MoneyTotal amount of Payment
[props.paymentDate]dateWhen payment issued
[props.paymentIdentifier]IdentifierBusiness identifier for the payment
[props.paymentIssuer]ReferenceParty generating payment
[props.period]PeriodPeriod covered
[props.processNote]BackboneElementNote concerning processing
[props.request]ReferenceReference to requesting resource
[props.requestor]ReferenceResponsible practitioner
[props.status]stringactive

builders.person

person(props)

Create a Person resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanThis person's record is in active use
[props.address]AddressOne or more addresses for the person
[props.birthDate]dateThe date on which the person was born
[props.gender]stringmale
[props.identifier]IdentifierA human identifier for this person
[props.link]BackboneElementLink to a resource that concerns the same actual person
[props.managingOrganization]ReferenceThe organization that is the custodian of the person record
[props.name]HumanNameA name associated with the person
[props.photo]AttachmentImage of the person
[props.telecom]ContactPointA contact detail for the person

builders.planDefinition

planDefinition(props)

Create a PlanDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.action]BackboneElementAction defined by the plan
[props.approvalDate]dateWhen the plan definition was approved by publisher
[props.author]ContactDetailWho authored the content
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the plan definition
[props.editor]ContactDetailWho edited the content
[props.effectivePeriod]PeriodWhen the plan definition is expected to be used
[props.endorser]ContactDetailWho endorsed the content
[props.experimental]booleanFor testing purposes, not real usage
[props.goal]BackboneElementWhat the plan is trying to accomplish
[props.identifier]IdentifierAdditional identifier for the plan definition
[props.jurisdiction]stringIntended jurisdiction for plan definition (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the plan definition was last reviewed
[props.library]canonicalLogic used by the plan definition
[props.name]stringName for this plan definition (computer friendly)
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this plan definition is defined
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations
[props.reviewer]ContactDetailWho reviewed the content
[props.status]stringdraft
[props.subject]stringType of individual the plan definition is focused on. Accepts all values from http://hl7.org/fhir/ValueSet/subject-type
[props.subtitle]stringSubordinate title of the plan definition
[props.title]stringName for this plan definition (human friendly)
[props.topic]stringE.g. Education, Treatment, Assessment. Accepts all values from http://hl7.org/fhir/ValueSet/definition-topic
[props.type]stringorder-set
[props.url]stringCanonical identifier for this plan definition, represented as a URI (globally unique)
[props.usage]stringDescribes the clinical usage of the plan
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the plan definition

builders.practitioner

practitioner(props)

Create a Practitioner resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this practitioner's record is in active use
[props.address]AddressAddress(es) of the practitioner that are not role specific (typically home address)
[props.birthDate]dateThe date on which the practitioner was born
[props.communication]stringA language the practitioner can use in patient communication. Accepts all values from http://hl7.org/fhir/ValueSet/languages
[props.gender]stringmale
[props.identifier]IdentifierAn identifier for the person as this agent
[props.name]HumanNameThe name(s) associated with the practitioner
[props.photo]AttachmentImage of the person
[props.qualification]BackboneElementCertification, licenses, or training pertaining to the provision of care
[props.telecom]ContactPointA contact detail for the practitioner (that apply to all roles)

builders.practitionerRole

practitionerRole(props)

Create a PractitionerRole resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this practitioner role record is in active use
[props.availabilityExceptions]stringDescription of availability exceptions
[props.availableTime]BackboneElementTimes the Service Site is available
[props.code]stringRoles which this practitioner may perform. Accepts all values from http://hl7.org/fhir/ValueSet/practitioner-role
[props.endpoint]ReferenceTechnical endpoints providing access to services operated for the practitioner with this role
[props.healthcareService]ReferenceThe list of healthcare services that this worker provides for this role's Organization/Location(s)
[props.identifier]IdentifierBusiness Identifiers that are specific to a role/location
[props.location]ReferenceThe location(s) at which this practitioner provides care
[props.notAvailable]BackboneElementNot available during this time due to provided reason
[props.organization]ReferenceOrganization where the roles are available
[props.period]PeriodThe period during which the practitioner is authorized to perform in these role(s)
[props.practitioner]ReferencePractitioner that is able to provide the defined services for the organization
[props.specialty]stringSpecific specialty of the practitioner. Accepts all values from http://hl7.org/fhir/ValueSet/c80-practice-codes
[props.telecom]ContactPointContact details that are specific to the role/location/service

builders.procedure

procedure(props)

Create a Procedure resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.asserter]ReferencePerson who asserts this procedure
[props.basedOn]ReferenceA request for this procedure
[props.bodySite]stringTarget body sites. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.category]stringClassification of the procedure. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-category
[props.code]stringIdentification of the procedure. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-code
[props.complication]stringComplication following the procedure. Accepts all values from http://hl7.org/fhir/ValueSet/condition-code
[props.complicationDetail]ReferenceA condition that is a result of the procedure
[props.encounter]ReferenceEncounter created as part of
[props.focalDevice]BackboneElementManipulated, implanted, or removed device
[props.followUp]stringInstructions for follow up. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-followup
[props.identifier]IdentifierExternal Identifiers for this procedure
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.location]ReferenceWhere the procedure happened
[props.note]AnnotationAdditional information about the procedure
[props.outcome]stringThe result of procedure. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-outcome
[props.partOf]ReferencePart of referenced event
[props.performed]dateTime | Period | string | Age | RangeWhen the procedure was performed
[props.performer]BackboneElementThe people who performed the procedure
[props.reasonCode]stringCoded reason procedure performed. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-reason
[props.reasonReference]ReferenceThe justification that the procedure was performed
[props.recorder]ReferenceWho recorded the procedure
[props.report]ReferenceAny report resulting from the procedure
[props.status]stringpreparation
[props.statusReason]stringReason for current status. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-not-performed-reason
[props.subject]ReferenceWho the procedure was performed on
[props.usedCode]stringCoded items used during the procedure. Accepts all values from http://hl7.org/fhir/ValueSet/device-kind
[props.usedReference]ReferenceItems used during procedure

builders.questionnaire

questionnaire(props)

Create a Questionnaire resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the questionnaire was approved by publisher
[props.code]stringConcept that represents the overall questionnaire. Accepts all values from http://hl7.org/fhir/ValueSet/questionnaire-questions
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.derivedFrom]canonicalInstantiates protocol or definition
[props.description]markdownNatural language description of the questionnaire
[props.effectivePeriod]PeriodWhen the questionnaire is expected to be used
[props.experimental]booleanFor testing purposes, not real usage
[props.identifier]IdentifierAdditional identifier for the questionnaire
[props.item]BackboneElementQuestions and sections within the Questionnaire
[props.jurisdiction]stringIntended jurisdiction for questionnaire (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the questionnaire was last reviewed
[props.name]stringName for this questionnaire (computer friendly)
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this questionnaire is defined
[props.status]stringdraft
[props.subjectType]stringResource that can be subject of QuestionnaireResponse. Accepts all values from http://hl7.org/fhir/ValueSet/resource-types
[props.title]stringName for this questionnaire (human friendly)
[props.url]stringCanonical identifier for this questionnaire, represented as a URI (globally unique)
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the questionnaire

builders.questionnaireResponse

questionnaireResponse(props)

Create a QuestionnaireResponse resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.author]ReferencePerson who received and recorded the answers
[props.authored]dateTimeDate the answers were gathered
[props.basedOn]ReferenceRequest fulfilled by this QuestionnaireResponse
[props.encounter]ReferenceEncounter created as part of
[props.identifier]IdentifierUnique id for this set of answers
[props.item]BackboneElementGroups and questions
[props.partOf]ReferencePart of this action
[props.questionnaire]canonicalForm being answered
[props.source]ReferenceThe person who answered the questions
[props.status]stringin-progress
[props.subject]ReferenceThe subject of the questions

builders.regulatedAuthorization

regulatedAuthorization(props)

Create a RegulatedAuthorization resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basis]stringThe legal/regulatory framework or reasons under which this authorization is granted. Accepts all values from http://hl7.org/fhir/ValueSet/regulated-authorization-basis
[props.case]BackboneElementThe case or regulatory procedure for granting or amending a regulated authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page)
[props.description]markdownGeneral textual supporting information
[props.holder]ReferenceThe organization that has been granted this authorization, by the regulator
[props.identifier]IdentifierBusiness identifier for the authorization, typically assigned by the authorizing body
[props.indication]CodeableReferenceCondition for which the use of the regulated product applies
[props.intendedUse]stringThe intended use of the product, e.g. prevention, treatment. Accepts all values from http://hl7.org/fhir/ValueSet/product-intended-use
[props.region]stringThe territory in which the authorization has been granted. Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.regulator]ReferenceThe regulatory authority or authorizing body granting the authorization
[props.status]stringThe status that is authorised e.g. approved. Intermediate states can be tracked with cases and applications. Accepts all values from http://hl7.org/fhir/ValueSet/publication-status
[props.statusDate]dateTimeThe date at which the current status was assigned
[props.subject]ReferenceThe product type, treatment, facility or activity that is being authorized
[props.type]stringOverall type of this authorization, for example drug marketing approval, orphan drug designation. Accepts all values from http://hl7.org/fhir/ValueSet/regulated-authorization-type
[props.validityPeriod]PeriodThe time period in which the regulatory approval etc. is in effect, e.g. a Marketing Authorization includes the date of authorization and/or expiration date

builders.relatedPerson

relatedPerson(props)

Create a RelatedPerson resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this related person's record is in active use
[props.address]AddressAddress where the related person can be contacted or visited
[props.birthDate]dateThe date on which the related person was born
[props.communication]BackboneElementA language which may be used to communicate with about the patient's health
[props.gender]stringmale
[props.identifier]IdentifierA human identifier for this person
[props.name]HumanNameA name associated with the person
[props.patient]ReferenceThe patient this person is related to
[props.period]PeriodPeriod of time that this relationship is considered valid
[props.photo]AttachmentImage of the person
[props.relationship]stringThe nature of the relationship. Accepts all values from http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype
[props.telecom]ContactPointA contact detail for the person

builders.requestGroup

requestGroup(props)

Create a RequestGroup resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.action]BackboneElementProposed actions, if any
[props.author]ReferenceDevice or practitioner that authored the request group
[props.authoredOn]dateTimeWhen the request group was authored
[props.basedOn]ReferenceFulfills plan, proposal, or order
[props.code]CodeableConceptWhat's being requested/ordered
[props.encounter]ReferenceCreated as part of
[props.groupIdentifier]IdentifierComposite request this is part of
[props.identifier]IdentifierBusiness identifier
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.intent]stringproposal
[props.note]AnnotationAdditional notes about the response
[props.priority]stringroutine
[props.reasonCode]CodeableConceptWhy the request group is needed
[props.reasonReference]ReferenceWhy the request group is needed
[props.replaces]ReferenceRequest(s) replaced by this request
[props.status]stringdraft
[props.subject]ReferenceWho the request group is about

builders.researchDefinition

researchDefinition(props)

Create a ResearchDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the research definition was approved by publisher
[props.author]ContactDetailWho authored the content
[props.comment]stringUsed for footnotes or explanatory notes
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the research definition
[props.editor]ContactDetailWho edited the content
[props.effectivePeriod]PeriodWhen the research definition is expected to be used
[props.endorser]ContactDetailWho endorsed the content
[props.experimental]booleanFor testing purposes, not real usage
[props.exposure]ReferenceWhat exposure?
[props.exposureAlternative]ReferenceWhat alternative exposure state?
[props.identifier]IdentifierAdditional identifier for the research definition
[props.jurisdiction]stringIntended jurisdiction for research definition (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the research definition was last reviewed
[props.library]canonicalLogic used by the ResearchDefinition
[props.name]stringName for this research definition (computer friendly)
[props.outcome]ReferenceWhat outcome?
[props.population]ReferenceWhat population?
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this research definition is defined
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations, etc.
[props.reviewer]ContactDetailWho reviewed the content
[props.shortTitle]stringTitle for use in informal contexts
[props.status]stringdraft
[props.subject]stringE.g. Patient, Practitioner, RelatedPerson, Organization, Location, Device. Accepts all values from http://hl7.org/fhir/ValueSet/subject-type
[props.subtitle]stringSubordinate title of the ResearchDefinition
[props.title]stringName for this research definition (human friendly)
[props.topic]stringThe category of the ResearchDefinition, such as Education, Treatment, Assessment, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/definition-topic
[props.url]stringCanonical identifier for this research definition, represented as a URI (globally unique)
[props.usage]stringDescribes the clinical usage of the ResearchDefinition
[props.useContext]UsageContextThe context that the content is intended to support
[props.version]stringBusiness version of the research definition

builders.researchElementDefinition

researchElementDefinition(props)

Create a ResearchElementDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.approvalDate]dateWhen the research element definition was approved by publisher
[props.author]ContactDetailWho authored the content
[props.characteristic]BackboneElementWhat defines the members of the research element
[props.comment]stringUsed for footnotes or explanatory notes
[props.contact]ContactDetailContact details for the publisher
[props.copyright]markdownUse and/or publishing restrictions
[props.date]dateTimeDate last changed
[props.description]markdownNatural language description of the research element definition
[props.editor]ContactDetailWho edited the content
[props.effectivePeriod]PeriodWhen the research element definition is expected to be used
[props.endorser]ContactDetailWho endorsed the content
[props.experimental]booleanFor testing purposes, not real usage
[props.identifier]IdentifierAdditional identifier for the research element definition
[props.jurisdiction]stringIntended jurisdiction for research element definition (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.lastReviewDate]dateWhen the research element definition was last reviewed
[props.library]canonicalLogic used by the ResearchElementDefinition
[props.name]stringName for this research element definition (computer friendly)
[props.publisher]stringName of the publisher (organization or individual)
[props.purpose]markdownWhy this research element definition is defined
[props.relatedArtifact]RelatedArtifactAdditional documentation, citations, etc.
[props.reviewer]ContactDetailWho reviewed the content
[props.shortTitle]stringTitle for use in informal contexts
[props.status]stringdraft
[props.subject]stringE.g. Patient, Practitioner, RelatedPerson, Organization, Location, Device. Accepts all values from http://hl7.org/fhir/ValueSet/subject-type
[props.subtitle]stringSubordinate title of the ResearchElementDefinition
[props.title]stringName for this research element definition (human friendly)
[props.topic]stringThe category of the ResearchElementDefinition, such as Education, Treatment, Assessment, etc.. Accepts all values from http://hl7.org/fhir/ValueSet/definition-topic
[props.type]stringpopulation
[props.url]stringCanonical identifier for this research element definition, represented as a URI (globally unique)
[props.usage]stringDescribes the clinical usage of the ResearchElementDefinition
[props.useContext]UsageContextThe context that the content is intended to support
[props.variableType]stringdichotomous
[props.version]stringBusiness version of the research element definition

builders.researchStudy

researchStudy(props)

Create a ResearchStudy resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.arm]BackboneElementDefined path through the study for a subject
[props.category]CodeableConceptClassifications for the study
[props.condition]stringCondition being studied. Accepts all values from http://hl7.org/fhir/ValueSet/condition-code
[props.contact]ContactDetailContact details for the study
[props.description]markdownWhat this is study doing
[props.enrollment]ReferenceInclusion & exclusion criteria
[props.focus]CodeableConceptDrugs, devices, etc. under study
[props.identifier]IdentifierBusiness Identifier for study
[props.keyword]CodeableConceptUsed to search for the study
[props.location]stringGeographic region(s) for study. Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.note]AnnotationComments made about the study
[props.objective]BackboneElementA goal for the study
[props.partOf]ReferencePart of larger study
[props.period]PeriodWhen the study began and ended
[props.phase]stringn-a
[props.primaryPurposeType]stringtreatment
[props.principalInvestigator]ReferenceResearcher who oversees multiple aspects of the study
[props.protocol]ReferenceSteps followed in executing study
[props.reasonStopped]stringaccrual-goal-met
[props.relatedArtifact]RelatedArtifactReferences and dependencies
[props.site]ReferenceFacility where study activities are conducted
[props.sponsor]ReferenceOrganization that initiates and is legally responsible for the study
[props.status]stringactive
[props.title]stringName for this study

builders.researchSubject

researchSubject(props)

Create a ResearchSubject resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.actualArm]stringWhat path was followed
[props.assignedArm]stringWhat path should be followed
[props.consent]ReferenceAgreement to participate in study
[props.identifier]IdentifierBusiness Identifier for research subject in a study
[props.individual]ReferenceWho is part of study
[props.period]PeriodStart and end of participation
[props.status]stringcandidate
[props.study]ReferenceStudy subject is part of

builders.riskAssessment

riskAssessment(props)

Create a RiskAssessment resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceRequest fulfilled by this assessment
[props.basis]ReferenceInformation used in assessment
[props.code]CodeableConceptType of assessment
[props.condition]ReferenceCondition assessed
[props.encounter]ReferenceWhere was assessment performed?
[props.identifier]IdentifierUnique identifier for the assessment
[props.method]CodeableConceptEvaluation mechanism
[props.mitigation]stringHow to reduce risk
[props.note]AnnotationComments on the risk assessment
[props.occurrence]dateTime | PeriodWhen was assessment made?
[props.parent]ReferencePart of this occurrence
[props.performer]ReferenceWho did assessment?
[props.prediction]BackboneElementOutcome predicted
[props.reasonCode]CodeableConceptWhy the assessment was necessary?
[props.reasonReference]ReferenceWhy the assessment was necessary?
[props.status]stringregistered
[props.subject]ReferenceWho/what does assessment apply to?

builders.schedule

schedule(props)

Create a Schedule resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.active]booleanWhether this schedule is in active use
[props.actor]ReferenceResource(s) that availability information is being provided for
[props.comment]stringComments on availability
[props.identifier]IdentifierExternal Ids for this item
[props.planningHorizon]PeriodPeriod of time covered by schedule
[props.serviceCategory]stringHigh-level category. Accepts all values from http://hl7.org/fhir/ValueSet/service-category
[props.serviceType]stringSpecific service. Accepts all values from http://hl7.org/fhir/ValueSet/service-type
[props.specialty]stringType of specialty needed. Accepts all values from http://hl7.org/fhir/ValueSet/c80-practice-codes

builders.serviceRequest

serviceRequest(props)

Create a ServiceRequest resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.asNeeded]stringPreconditions for service. Accepts all values from http://hl7.org/fhir/ValueSet/medication-as-needed-reason
[props.authoredOn]dateTimeDate request signed
[props.basedOn]ReferenceWhat request fulfills
[props.bodySite]stringLocation on Body. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.category]stringClassification of service. Accepts all values from http://hl7.org/fhir/ValueSet/servicerequest-category
[props.code]stringWhat is being requested/ordered. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-code
[props.doNotPerform]booleanTrue if service/procedure should not be performed
[props.encounter]ReferenceEncounter in which the request was created
[props.identifier]IdentifierIdentifiers assigned to this order
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.insurance]ReferenceAssociated insurance coverage
[props.intent]stringproposal
[props.locationCode]stringRequested location. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
[props.locationReference]ReferenceRequested location
[props.note]AnnotationComments
[props.occurrence]dateTime | Period | TimingWhen service should occur
[props.orderDetail]stringAdditional order information. Accepts all values from http://hl7.org/fhir/ValueSet/servicerequest-orderdetail
[props.patientInstruction]stringPatient or consumer-oriented instructions
[props.performer]ReferenceRequested performer
[props.performerType]stringPerformer role. Accepts all values from http://terminology.hl7.org/ValueSet/action-participant-role
[props.priority]stringroutine
[props.quantity]Quantity | Ratio | RangeService amount
[props.reasonCode]stringExplanation/Justification for procedure or service. Accepts all values from http://hl7.org/fhir/ValueSet/procedure-reason
[props.reasonReference]ReferenceExplanation/Justification for service or service
[props.relevantHistory]ReferenceRequest provenance
[props.replaces]ReferenceWhat request replaces
[props.requester]ReferenceWho/what is requesting service
[props.requisition]IdentifierComposite Request ID
[props.specimen]ReferenceProcedure Samples
[props.status]stringdraft
[props.subject]ReferenceIndividual or Entity the service is ordered for
[props.supportingInfo]ReferenceAdditional clinical information

builders.slot

slot(props)

Create a Slot resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.appointmentType]stringThe style of appointment or patient that may be booked in the slot (not service type). Accepts all values from http://terminology.hl7.org/ValueSet/v2-0276
[props.comment]stringComments on the slot to describe any extended information. Such as custom constraints on the slot
[props.end]instantDate/Time that the slot is to conclude
[props.identifier]IdentifierExternal Ids for this item
[props.overbooked]booleanThis slot has already been overbooked, appointments are unlikely to be accepted for this time
[props.schedule]ReferenceThe schedule resource that this slot defines an interval of status information
[props.serviceCategory]stringA broad categorization of the service that is to be performed during this appointment. Accepts all values from http://hl7.org/fhir/ValueSet/service-category
[props.serviceType]stringThe type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource. Accepts all values from http://hl7.org/fhir/ValueSet/service-type
[props.specialty]stringThe specialty of a practitioner that would be required to perform the service requested in this appointment. Accepts all values from http://hl7.org/fhir/ValueSet/c80-practice-codes
[props.start]instantDate/Time that the slot is to begin
[props.status]stringbusy

builders.specimen

specimen(props)

Create a Specimen resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.accessionIdentifier]IdentifierIdentifier assigned by the lab
[props.collection]BackboneElementCollection details
[props.condition]stringState of the specimen. Accepts all values from http://terminology.hl7.org/ValueSet/v2-0493
[props.container]BackboneElementDirect container of specimen (tube/slide, etc.)
[props.identifier]IdentifierExternal Identifier
[props.note]AnnotationComments
[props.parent]ReferenceSpecimen from which this specimen originated
[props.processing]BackboneElementProcessing and processing step details
[props.receivedTime]dateTimeThe time when specimen was received for processing
[props.request]ReferenceWhy the specimen was collected
[props.status]stringavailable
[props.subject]ReferenceWhere the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device
[props.type]stringKind of material that forms the specimen. Accepts all values from http://terminology.hl7.org/ValueSet/v2-0487

builders.specimenDefinition

specimenDefinition(props)

Create a SpecimenDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.collection]stringSpecimen collection procedure. Accepts all values from http://hl7.org/fhir/ValueSet/specimen-collection
[props.identifier]IdentifierBusiness identifier of a kind of specimen
[props.patientPreparation]stringPatient preparation for collection. Accepts all values from http://hl7.org/fhir/ValueSet/prepare-patient-prior-specimen-collection
[props.timeAspect]stringTime aspect for collection
[props.typeCollected]stringKind of material to collect. Accepts all values from http://terminology.hl7.org/ValueSet/v2-0487
[props.typeTested]BackboneElementSpecimen in container intended for testing by lab

builders.substance

substance(props)

Create a Substance resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.category]stringWhat class/type of substance this is. Accepts all values from http://hl7.org/fhir/ValueSet/substance-category
[props.code]stringWhat substance this is. Accepts all values from http://hl7.org/fhir/ValueSet/substance-code
[props.description]stringTextual description of the substance, comments
[props.identifier]IdentifierUnique identifier
[props.ingredient]BackboneElementComposition information about the substance
[props.instance]BackboneElementIf this describes a specific package/container of the substance
[props.status]stringactive

builders.substanceDefinition

substanceDefinition(props)

Create a SubstanceDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.classification]CodeableConceptA categorization, high level e.g. polymer or nucleic acid, or food, chemical, biological, or lower e.g. polymer linear or branch chain, or type of impurity
[props.code]BackboneElementCodes associated with the substance
[props.description]markdownTextual description of the substance
[props.domain]stringIf the substance applies to human or veterinary use. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-domain
[props.grade]stringThe quality standard, established benchmark, to which substance complies (e.g. USP/NF, BP). Accepts all values from http://hl7.org/fhir/ValueSet/substance-grade
[props.identifier]IdentifierIdentifier by which this substance is known
[props.informationSource]ReferenceSupporting literature
[props.manufacturer]ReferenceThe entity that creates, makes, produces or fabricates the substance
[props.moiety]BackboneElementMoiety, for structural modifications
[props.molecularWeight]BackboneElementThe molecular weight or weight range
[props.name]BackboneElementNames applicable to this substance
[props.note]AnnotationTextual comment about the substance's catalogue or registry record
[props.property]BackboneElementGeneral specifications for this substance
[props.relationship]BackboneElementA link between this substance and another
[props.sourceMaterial]BackboneElementMaterial or taxonomic/anatomical source
[props.status]stringStatus of substance within the catalogue e.g. active, retired. Accepts all values from http://hl7.org/fhir/ValueSet/publication-status
[props.structure]BackboneElementStructural information
[props.supplier]ReferenceAn entity that is the source for the substance. It may be different from the manufacturer
[props.version]stringA business level version identifier of the substance

builders.supplyDelivery

supplyDelivery(props)

Create a SupplyDelivery resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.basedOn]ReferenceFulfills plan, proposal or order
[props.destination]ReferenceWhere the Supply was sent
[props.identifier]IdentifierExternal identifier
[props.occurrence]dateTime | Period | TimingWhen event occurred
[props.partOf]ReferencePart of referenced event
[props.patient]ReferencePatient for whom the item is supplied
[props.receiver]ReferenceWho collected the Supply
[props.status]stringin-progress
[props.suppliedItem]BackboneElementThe item that is delivered or supplied
[props.supplier]ReferenceDispenser
[props.type]stringCategory of dispense event. Accepts all values from http://hl7.org/fhir/ValueSet/supplydelivery-type

builders.supplyRequest

supplyRequest(props)

Create a SupplyRequest resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.authoredOn]dateTimeWhen the request was made
[props.category]stringThe kind of supply (central, non-stock, etc.). Accepts all values from http://hl7.org/fhir/ValueSet/supplyrequest-kind
[props.deliverFrom]ReferenceThe origin of the supply
[props.deliverTo]ReferenceThe destination of the supply
[props.identifier]IdentifierBusiness Identifier for SupplyRequest
[props.item]stringMedication, Substance, or Device requested to be supplied. Accepts all values from http://hl7.org/fhir/ValueSet/supply-item
[props.occurrence]dateTime | Period | TimingWhen the request should be fulfilled
[props.parameter]BackboneElementOrdered item details
[props.priority]stringroutine
[props.quantity]QuantityThe requested amount of the item indicated
[props.reasonCode]stringThe reason why the supply item was requested. Accepts all values from http://hl7.org/fhir/ValueSet/supplyrequest-reason
[props.reasonReference]ReferenceThe reason why the supply item was requested
[props.requester]ReferenceIndividual making the request
[props.status]stringdraft
[props.supplier]ReferenceWho is intended to fulfill the request

builders.task

task(props)

Create a Task resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.authoredOn]dateTimeTask Creation Date
[props.basedOn]ReferenceRequest fulfilled by this task
[props.businessStatus]CodeableConceptE.g. "Specimen collected", "IV prepped"
[props.code]stringTask Type. Accepts all values from http://hl7.org/fhir/ValueSet/task-code
[props.description]stringHuman-readable explanation of task
[props.encounter]ReferenceHealthcare event during which this task originated
[props.executionPeriod]PeriodStart and end time of execution
[props.focus]ReferenceWhat task is acting on
[props.for]ReferenceBeneficiary of the Task
[props.groupIdentifier]IdentifierRequisition or grouper id
[props.identifier]IdentifierTask Instance Identifier
[props.input]BackboneElementInformation used to perform task
[props.instantiatesCanonical]canonicalFormal definition of task
[props.instantiatesUri]stringFormal definition of task
[props.insurance]ReferenceAssociated insurance coverage
[props.intent]stringunknown
[props.lastModified]dateTimeTask Last Modified Date
[props.location]ReferenceWhere task occurs
[props.note]AnnotationComments made about the task
[props.output]BackboneElementInformation produced as part of task
[props.owner]ReferenceResponsible individual
[props.partOf]ReferenceComposite task
[props.performerType]stringRequested performer. Accepts all values from http://hl7.org/fhir/ValueSet/performer-role
[props.priority]stringroutine
[props.reasonCode]CodeableConceptWhy task is needed
[props.reasonReference]ReferenceWhy task is needed
[props.relevantHistory]ReferenceKey events in history of the Task
[props.requester]ReferenceWho is asking for task to be done
[props.restriction]BackboneElementConstraints on fulfillment tasks
[props.status]stringdraft
[props.statusReason]CodeableConceptReason for current status

builders.testReport

testReport(props)

Create a TestReport resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierExternal identifier
[props.issued]dateTimeWhen the TestScript was executed and this TestReport was generated
[props.name]stringInformal name of the executed TestScript
[props.participant]BackboneElementA participant in the test execution, either the execution engine, a client, or a server
[props.result]stringpass
[props.score]decimalThe final score (percentage of tests passed) resulting from the execution of the TestScript
[props.setup]BackboneElementThe results of the series of required setup operations before the tests were executed
[props.status]stringcompleted
[props.teardown]BackboneElementThe results of running the series of required clean up steps
[props.test]BackboneElementA test executed from the test script
[props.testScript]ReferenceReference to the version-specific TestScript that was executed to produce this TestReport
[props.tester]stringName of the tester producing this report (Organization or individual)

builders.verificationResult

verificationResult(props)

Create a VerificationResult resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.attestation]BackboneElementInformation about the entity attesting to information
[props.failureAction]stringfatal
[props.frequency]TimingFrequency of revalidation
[props.lastPerformed]dateTimeThe date/time validation was last completed (including failed validations)
[props.need]stringnone
[props.nextScheduled]dateThe date when target is next validated, if appropriate
[props.primarySource]BackboneElementInformation about the primary source(s) involved in validation
[props.status]stringattested
[props.statusDate]dateTimeWhen the validation status was updated
[props.target]ReferenceA resource that was validated
[props.targetLocation]stringThe fhirpath location(s) within the resource that was validated
[props.validationProcess]stringThe primary process by which the target is validated (edit check; value set; primary source; multiple sources; standalone; in context). Accepts all values from http://hl7.org/fhir/ValueSet/verificationresult-validation-process
[props.validationType]stringnothing
[props.validator]BackboneElementInformation about the entity validating information

builders.visionPrescription

visionPrescription(props)

Create a VisionPrescription resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.created]dateTimeResponse creation date
[props.dateWritten]dateTimeWhen prescription was authorized
[props.encounter]ReferenceCreated during encounter / admission / stay
[props.identifier]IdentifierBusiness Identifier for vision prescription
[props.lensSpecification]BackboneElementVision lens authorization
[props.patient]ReferenceWho prescription is for
[props.prescriber]ReferenceWho authorized the vision prescription
[props.status]stringactive

datatypes

These functions belong to the datatypes namespace.

datatypes.addExtension

addExtension(resource, url, value)

Add an extension to a resource (or object). An object will be created and added to an extension array on the provided resource. The extension array will be set if it does not exist on the resource. The value will be smartly written to the object, ie, valueDateTime or valueReference or valueString

ParamTypeDescription
resourcea FHIR resource object to add an extension too
urlstringthe URL to set for the extension
valuethe value that the extension should contain

datatypes.cc

cc()

Alias for b.concept()


datatypes.coding

coding(code, system)

Create a coding object { code, system }. Systems will be mapped using the system map.

ParamTypeDescription
codestringthe code value
systemstringURL to the system. Will be mapped using the system map.

datatypes.composite

composite(object, key, value)

Write a value to the target object using a typed key Ie, if key is value and the value is a date time string, this function will write valueDateTime to the object.

This function is poorly named.

ParamTypeDescription
objectthe object to write the composite key to
keystringthe base key to use to write the value
valuesome value to write to the object

datatypes.concept

concept(value, extra)

Create a CodeableConcept. Codings can be coding objects or [code, system, extra] tuples (such as passed to b.coding()) Systems will be mapped with the system map

ParamTypeDescription
valuestringthe value
extraobjectExtra properties to write to the coding

Example: Create a codeableConcept

const myConcept = util.concept(['abc', 'http://moh.gov.et/fhir/hiv/identifier/SmartCareID'])

Example: Create a codeableConcept with text

const myConcept = util.concept('smart care id', ['abc', 'http://moh.gov.et/fhir/hiv/identifier/SmartCareID'])

datatypes.ext

ext()

Alias for b.extension()


datatypes.extension

extension(url, value, props)

Create an extension with a system and value Values will be typemapped (ie, value -> valueString) Optionally pass extra keys on the third argument

ParamTypeDescription
urlstringthe URL to set for the extension
valuethe value that the extension should contain
propsextra props to add to the extension

datatypes.findExtension

findExtension(obj, targetUrl, [path])

Find an extension with a given url in some array

ParamTypeDescription
obja fhir resource
targetUrlstringthe extension URL you want to find
[path]stringa path to extract from the resource. Optional.

datatypes.id

id()

Alias for b.identifier()


datatypes.identifier

identifier(id, ext)

Create an Identifier. Systems will be mapped against the system map. Pass extensions as extra arguments.

ParamDescription
idA string identifier, a FHIR identifier object, or an array of either.
extAny other arguments will be treated as extensions

datatypes.ref

ref()

Alias for b.reference()


datatypes.reference

reference(ref)

Create a reference object of the form { reference } If ref is an array, each item will be mapped and an array returned. If ref is a FHIR resource, a reference to it will be generated If ref is a string, it'll be treated as a reference id and returned as an object If ref is a valid FHIR reference, it'll just be returned.

ParamDescription
refthe thing to generate a reference from

datatypes.setSystemMap

setSystemMap()

Define a set of mapped system values.

Builder functions will use this mappings when they encounter them in system keys. Useful for setting shortcuts.

Example: Set shortcut system mappings

b.setSystemMap({
SmartCareID: 'http://moh.gov.et/fhir/hiv/identifier/SmartCareID'
});
create(builders.patient({ identifier: b.identifier('xyz', 'SmartCareId') }))