Skip to main content

fhir-4@0.3.1

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.identifier]IdentifierAccount number
[props.status]stringactive
[props.type]stringE.g. patient, expense, depreciation. Accepts all values from http://hl7.org/fhir/ValueSet/account-type
[props.name]stringHuman-readable label
[props.subject]ReferenceThe entity that caused the expenses
[props.servicePeriod]PeriodTransaction window
[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.owner]ReferenceEntity managing the Account
[props.description]stringExplanation of purpose/use
[props.guarantor]BackboneElementThe parties ultimately responsible for balancing the Account
[props.partOf]ReferenceReference to a parent Account

builders.activityDefinition

activityDefinition(props)

Create a ActivityDefinition resource.

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

builders.administrableProductDefinition

administrableProductDefinition(props)

Create a AdministrableProductDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierAn identifier for the administrable product
[props.status]stringdraft
[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.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.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
[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.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.device]ReferenceA device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product
[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

builders.adverseEvent

adverseEvent(props)

Create a AdverseEvent resource.

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

builders.allergyIntolerance

allergyIntolerance(props)

Create a AllergyIntolerance resource.

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

builders.appointment

appointment(props)

Create a Appointment resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierExternal Ids for this item
[props.status]stringproposed
[props.cancelationReason]stringThe coded reason for the appointment being cancelled. Accepts all values from http://hl7.org/fhir/ValueSet/appointment-cancellation-reason
[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.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.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.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.priority]unsignedIntUsed to make informed decisions if needing to re-prioritize
[props.description]stringShown on a subject line in a meeting request, or appointment list
[props.supportingInformation]ReferenceAdditional information to support the appointment
[props.start]instantWhen appointment is to take place
[props.end]instantWhen appointment is to conclude
[props.minutesDuration]numberCan be less than start/end (e.g. estimate)
[props.slot]ReferenceThe slots that this appointment is filling
[props.created]dateTimeThe date that this appointment was initially created
[props.comment]stringAdditional comments
[props.patientInstruction]stringDetailed information and instructions for the patient
[props.basedOn]ReferenceThe service request this appointment is allocated to assess
[props.participant]BackboneElementParticipants involved in appointment
[props.requestedPeriod]PeriodPotential date/time interval(s) requested to allocate the appointment within

builders.appointmentResponse

appointmentResponse(props)

Create a AppointmentResponse resource.

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

builders.biologicallyDerivedProduct

biologicallyDerivedProduct(props)

Create a BiologicallyDerivedProduct resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierExternal ids for this item
[props.productCategory]stringorgan
[props.productCode]CodeableConceptWhat this biologically derived product is
[props.status]stringavailable
[props.request]ReferenceProcedure request
[props.quantity]integerThe amount of this biologically derived product
[props.parent]ReferenceBiologicallyDerivedProduct parent
[props.collection]BackboneElementHow this product was collected
[props.processing]BackboneElementAny processing of the product during collection
[props.manipulation]BackboneElementAny manipulation of product post-collection
[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.identifier]IdentifierBodystructure identifier
[props.active]booleanWhether this record is in active use
[props.morphology]stringKind of Structure. Accepts all values from http://hl7.org/fhir/ValueSet/bodystructure-code
[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.description]stringText description
[props.image]AttachmentAttached images
[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.identifier]IdentifierExternal Ids for this plan
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.basedOn]ReferenceFulfills CarePlan
[props.replaces]ReferenceCarePlan replaced by this CarePlan
[props.partOf]ReferencePart of referenced CarePlan
[props.status]stringdraft
[props.intent]stringproposal
[props.category]stringType of plan. Accepts all values from http://hl7.org/fhir/ValueSet/care-plan-category
[props.title]stringHuman-friendly name for the care plan
[props.description]stringSummary of nature of plan
[props.subject]ReferenceWho the care plan is for
[props.encounter]ReferenceEncounter created as part of
[props.period]PeriodTime period plan covers
[props.created]dateTimeDate record was first recorded
[props.author]ReferenceWho is the designated responsible party
[props.contributor]ReferenceWho provided the content of the care plan
[props.careTeam]ReferenceWho's involved in plan?
[props.addresses]ReferenceHealth issues this plan addresses
[props.supportingInfo]ReferenceInformation considered as part of plan
[props.goal]ReferenceDesired outcome of plan
[props.activity]BackboneElementAction to occur as part of plan
[props.note]AnnotationComments about the plan

builders.careTeam

careTeam(props)

Create a CareTeam resource.

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

builders.chargeItem

chargeItem(props)

Create a ChargeItem resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness Identifier for item
[props.definitionUri]stringDefining information about the code of this charge item
[props.definitionCanonical]canonicalResource defining the code of this ChargeItem
[props.status]stringplanned
[props.partOf]ReferencePart of referenced ChargeItem
[props.code]stringA code that identifies the charge, like a billing code. Accepts all values from http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
[props.subject]ReferenceIndividual service was done for/to
[props.context]ReferenceEncounter / Episode associated with event
[props.occurrence]dateTime | Period | TimingWhen the charged service was applied
[props.performer]BackboneElementWho performed charged service
[props.performingOrganization]ReferenceOrganization providing the charged service
[props.requestingOrganization]ReferenceOrganization requesting the charged service
[props.costCenter]ReferenceOrganization that has ownership of the (potential, future) revenue
[props.quantity]QuantityQuantity of which the charge item has been serviced
[props.bodysite]stringAnatomical location, if relevant. Accepts all values from http://hl7.org/fhir/ValueSet/body-site
[props.factorOverride]decimalFactor overriding the associated rules
[props.priceOverride]MoneyPrice overriding the associated rules
[props.overrideReason]stringReason for overriding the list price/factor
[props.enterer]ReferenceIndividual who was entering
[props.enteredDate]dateTimeDate the charge item was entered
[props.reason]stringWhy was the charged service rendered?. Accepts all values from http://hl7.org/fhir/ValueSet/icd-10
[props.service]ReferenceWhich rendered service is being charged?
[props.product]stringProduct charged. Accepts all values from http://hl7.org/fhir/ValueSet/device-kind
[props.account]ReferenceAccount to place this charge
[props.note]AnnotationComments made about the ChargeItem
[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.url]stringCanonical identifier for this charge item definition, represented as a URI (globally unique)
[props.identifier]IdentifierAdditional identifier for the charge item definition
[props.version]stringBusiness version of the charge item definition
[props.title]stringName for this charge item definition (human friendly)
[props.derivedFromUri]stringUnderlying externally-defined charge item definition
[props.partOf]canonicalA larger definition of which this particular definition is a component or step
[props.replaces]canonicalCompleted or terminated request(s) whose function is taken by this new request
[props.status]stringdraft
[props.experimental]booleanFor testing purposes, not real usage
[props.date]dateTimeDate last changed
[props.publisher]stringName of the publisher (organization or individual)
[props.contact]ContactDetailContact details for the publisher
[props.description]markdownNatural language description of the charge item definition
[props.useContext]UsageContextThe context that the content is intended to support
[props.jurisdiction]stringIntended jurisdiction for charge item definition (if applicable). Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[props.copyright]markdownUse and/or publishing restrictions
[props.approvalDate]dateWhen the charge item definition was approved by publisher
[props.lastReviewDate]dateWhen the charge item definition was last reviewed
[props.effectivePeriod]PeriodWhen the charge item definition is expected to be used
[props.code]stringBilling codes or product types this definition applies to. Accepts all values from http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
[props.instance]ReferenceInstances this definition applies to
[props.applicability]BackboneElementWhether or not the billing code is applicable
[props.propertyGroup]BackboneElementGroup of properties which are applicable under the same conditions

builders.citation

citation(props)

Create a Citation resource.

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

builders.claim

claim(props)

Create a Claim resource.

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

builders.claimResponse

claimResponse(props)

Create a ClaimResponse resource.

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

builders.clinicalImpression

clinicalImpression(props)

Create a ClinicalImpression resource.

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

builders.clinicalUseDefinition

clinicalUseDefinition(props)

Create a ClinicalUseDefinition resource.

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

builders.communicationRequest

communicationRequest(props)

Create a CommunicationRequest resource.

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

builders.contract

contract(props)

Create a Contract resource.

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

builders.coverage

coverage(props)

Create a Coverage resource.

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

builders.coverageEligibilityRequest

coverageEligibilityRequest(props)

Create a CoverageEligibilityRequest resource.

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

builders.coverageEligibilityResponse

coverageEligibilityResponse(props)

Create a CoverageEligibilityResponse resource.

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

builders.detectedIssue

detectedIssue(props)

Create a DetectedIssue resource.

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

builders.device

device(props)

Create a Device resource.

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

builders.deviceDefinition

deviceDefinition(props)

Create a DeviceDefinition resource.

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

builders.deviceMetric

deviceMetric(props)

Create a DeviceMetric resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierInstance identifier
[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
[props.source]ReferenceDescribes the link to the source Device
[props.parent]ReferenceDescribes the link to the parent Device
[props.operationalStatus]stringon
[props.color]stringblack
[props.category]stringmeasurement
[props.measurementPeriod]TimingDescribes the measurement repetition time
[props.calibration]BackboneElementDescribes the calibrations that have been performed or that are required to be performed

builders.deviceRequest

deviceRequest(props)

Create a DeviceRequest resource.

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

builders.deviceUseStatement

deviceUseStatement(props)

Create a DeviceUseStatement resource.

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

builders.diagnosticReport

diagnosticReport(props)

Create a DiagnosticReport resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness identifier for report
[props.basedOn]ReferenceWhat was requested
[props.status]stringregistered
[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.subject]ReferenceThe subject of the report - usually, but not always, the patient
[props.encounter]ReferenceHealth care event when test ordered
[props.effective]dateTime | PeriodClinically relevant time/time-period for report
[props.issued]instantDateTime this version was made
[props.performer]ReferenceResponsible Diagnostic Service
[props.resultsInterpreter]ReferencePrimary result interpreter
[props.specimen]ReferenceSpecimens this report is based on
[props.result]ReferenceObservations
[props.imagingStudy]ReferenceReference to full details of imaging associated with the diagnostic report
[props.media]BackboneElementKey images associated with this report
[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.presentedForm]AttachmentEntire report as issued

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.identifier]IdentifierIdentifier(s) by which this encounter is known
[props.status]stringplanned
[props.statusHistory]BackboneElementList of past encounter statuses
[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.type]stringSpecific type of encounter. Accepts all values from http://hl7.org/fhir/ValueSet/encounter-type
[props.serviceType]stringSpecific type of service. Accepts all values from http://hl7.org/fhir/ValueSet/service-type
[props.priority]stringIndicates the urgency of the encounter. Accepts all values from http://terminology.hl7.org/ValueSet/v3-ActPriority
[props.subject]ReferenceThe patient or group present at the encounter
[props.episodeOfCare]ReferenceEpisode(s) of care that this encounter should be recorded against
[props.basedOn]ReferenceThe ServiceRequest that initiated this encounter
[props.participant]BackboneElementList of participants involved in the encounter
[props.appointment]ReferenceThe appointment that scheduled this encounter
[props.period]PeriodThe start and end time of the encounter
[props.length]DurationQuantity of time the encounter lasted (less time absent)
[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.diagnosis]BackboneElementThe list of diagnosis relevant to this encounter
[props.account]ReferenceThe set of accounts that may be used for billing for this Encounter
[props.hospitalization]BackboneElementDetails about the admission to a healthcare service
[props.location]BackboneElementList of locations where the patient has been
[props.serviceProvider]ReferenceThe organization (facility) responsible for this encounter
[props.partOf]ReferenceAnother Encounter this encounter is part of

builders.enrollmentRequest

enrollmentRequest(props)

Create a EnrollmentRequest resource.

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

builders.enrollmentResponse

enrollmentResponse(props)

Create a EnrollmentResponse resource.

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

builders.episodeOfCare

episodeOfCare(props)

Create a EpisodeOfCare resource.

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

builders.eventDefinition

eventDefinition(props)

Create a EventDefinition resource.

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

builders.evidence

evidence(props)

Create a Evidence resource.

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

builders.evidenceReport

evidenceReport(props)

Create a EvidenceReport resource.

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

builders.evidenceVariable

evidenceVariable(props)

Create a EvidenceVariable resource.

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

builders.explanationOfBenefit

explanationOfBenefit(props)

Create a ExplanationOfBenefit resource.

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

builders.familyMemberHistory

familyMemberHistory(props)

Create a FamilyMemberHistory resource.

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

builders.flag

flag(props)

Create a Flag resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness identifier
[props.status]stringactive
[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.subject]ReferenceWho/What is flag about?
[props.period]PeriodTime period when flag is active
[props.encounter]ReferenceAlert relevant during encounter
[props.author]ReferenceFlag creator

builders.goal

goal(props)

Create a Goal resource.

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

builders.group

group(props)

Create a Group resource.

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

builders.guidanceResponse

guidanceResponse(props)

Create a GuidanceResponse resource.

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

builders.healthcareService

healthcareService(props)

Create a HealthcareService resource.

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

builders.imagingStudy

imagingStudy(props)

Create a ImagingStudy resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierIdentifiers for the whole study
[props.status]stringregistered
[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.subject]ReferenceWho or what is the subject of the study
[props.encounter]ReferenceEncounter with which this imaging study is associated
[props.started]dateTimeWhen the study was started
[props.basedOn]ReferenceRequest fulfilled
[props.referrer]ReferenceReferring physician
[props.interpreter]ReferenceWho interpreted images
[props.endpoint]ReferenceStudy access endpoint
[props.numberOfSeries]unsignedIntNumber of Study Related Series
[props.numberOfInstances]unsignedIntNumber of Study Related Instances
[props.procedureReference]ReferenceThe performed Procedure reference
[props.procedureCode]stringThe performed procedure code. Accepts all values from http://www.rsna.org/RadLex_Playbook.aspx
[props.location]ReferenceWhere ImagingStudy occurred
[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.note]AnnotationUser-defined comments
[props.description]stringInstitution-generated description
[props.series]BackboneElementEach study has one or more series of instances

builders.immunization

immunization(props)

Create a Immunization resource.

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

builders.immunizationEvaluation

immunizationEvaluation(props)

Create a ImmunizationEvaluation resource.

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

builders.immunizationRecommendation

immunizationRecommendation(props)

Create a ImmunizationRecommendation resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness identifier
[props.patient]ReferenceWho this profile is for
[props.date]dateTimeDate recommendation(s) created
[props.authority]ReferenceWho is responsible for protocol
[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.identifier]IdentifierAn identifier or code by which the ingredient can be referenced
[props.status]stringdraft
[props.for]ReferenceThe product which this ingredient is a constituent part of
[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.function]stringPrecise action within the drug product, e.g. antioxidant, alkalizing agent. Accepts all values from http://hl7.org/fhir/ValueSet/ingredient-function
[props.allergenicIndicator]booleanIf the ingredient is a known or suspected allergen
[props.manufacturer]BackboneElementAn organization that manufactures this ingredient
[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.identifier]IdentifierBusiness Identifier for Product
[props.status]stringdraft
[props.type]stringKind of product. Accepts all values from http://hl7.org/fhir/ValueSet/insuranceplan-type
[props.name]stringOfficial name
[props.alias]stringAlternate names
[props.period]PeriodWhen the product is available
[props.ownedBy]ReferencePlan issuer
[props.administeredBy]ReferenceProduct administrator
[props.coverageArea]ReferenceWhere product applies
[props.contact]BackboneElementContact for the product
[props.endpoint]ReferenceTechnical endpoint
[props.network]ReferenceWhat networks are Included
[props.coverage]BackboneElementCoverage details
[props.plan]BackboneElementPlan details

builders.invoice

invoice(props)

Create a Invoice resource.

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

builders.library

library(props)

Create a Library resource.

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

builders.list

list(props)

Create a List resource.

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

builders.location

location(props)

Create a Location resource.

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

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.status]stringdraft
[props.manufacturedDoseForm]stringDose form as manufactured (before any necessary transformation). Accepts all values from http://hl7.org/fhir/ValueSet/manufactured-dose-form
[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
[props.manufacturer]ReferenceManufacturer of the item (Note that this should be named "manufacturer" but it currently causes technical issues)
[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.property]BackboneElementGeneral characteristics of this item

builders.measure

measure(props)

Create a Measure resource.

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

builders.measureReport

measureReport(props)

Create a MeasureReport resource.

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

builders.media

media(props)

Create a Media resource.

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

builders.medication

medication(props)

Create a Medication resource.

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

builders.medicationAdministration

medicationAdministration(props)

Create a MedicationAdministration resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierExternal identifier
[props.instantiates]stringInstantiates protocol or definition
[props.partOf]ReferencePart of referenced event
[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.category]stringType of medication usage. Accepts all values from http://hl7.org/fhir/ValueSet/medication-admin-category
[props.medication]stringWhat was administered. Accepts all values from http://hl7.org/fhir/ValueSet/medication-codes
[props.subject]ReferenceWho received medication
[props.context]ReferenceEncounter or Episode of Care administered as part of
[props.supportingInformation]ReferenceAdditional information to support administration
[props.effective]dateTime | PeriodStart and end time of administration
[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.device]ReferenceDevice used to administer
[props.note]AnnotationInformation about the administration
[props.dosage]BackboneElementDetails of how medication was taken
[props.eventHistory]ReferenceA list of events of interest in the lifecycle

builders.medicationDispense

medicationDispense(props)

Create a MedicationDispense resource.

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

builders.medicationKnowledge

medicationKnowledge(props)

Create a MedicationKnowledge resource.

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

builders.medicationRequest

medicationRequest(props)

Create a MedicationRequest resource.

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

builders.medicationStatement

medicationStatement(props)

Create a MedicationStatement resource.

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

builders.medicinalProductDefinition

medicinalProductDefinition(props)

Create a MedicinalProductDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness identifier for this product. Could be an MPID
[props.type]stringRegulatory type, e.g. Investigational or Authorized. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-type
[props.domain]stringIf this medicine applies to human or veterinary uses. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-domain
[props.version]stringA business identifier relating to a specific version of the product
[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.description]markdownGeneral description of this product
[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.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.indication]markdownDescription of indication(s) for this product, used when structured indications are not required
[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.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.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.pediatricUseIndicator]stringIf authorised for use in children. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-pediatric-use
[props.classification]stringAllows the product to be classified by various systems. Accepts all values from http://hl7.org/fhir/ValueSet/product-classification-codes
[props.marketingStatus]MarketingStatusMarketing status of the medicinal product, in contrast to marketing authorization
[props.packagedMedicinalProduct]stringPackage type for the product. Accepts all values from http://hl7.org/fhir/ValueSet/medicinal-product-package-type
[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.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.attachedDocument]ReferenceAdditional documentation about the medicinal product
[props.masterFile]ReferenceA master file for the medicinal product (e.g. Pharmacovigilance System Master File)
[props.contact]BackboneElementA product specific contact, person (in a role), or an organization
[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.name]BackboneElementThe product's name, including full name and possibly coded parts
[props.crossReference]BackboneElementReference to another product, e.g. for linking authorised to investigational product
[props.operation]BackboneElementA manufacturing or administrative process for the medicinal product
[props.characteristic]BackboneElementKey product features such as "sugar free", "modified release"

builders.molecularSequence

molecularSequence(props)

Create a MolecularSequence resource.

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

builders.nutritionOrder

nutritionOrder(props)

Create a NutritionOrder resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierIdentifiers assigned to this order
[props.instantiatesCanonical]canonicalInstantiates FHIR protocol or definition
[props.instantiatesUri]stringInstantiates external protocol or definition
[props.instantiates]stringInstantiates protocol or definition
[props.status]stringdraft
[props.intent]stringproposal
[props.patient]ReferenceThe person who requires the diet, formula or nutritional supplement
[props.encounter]ReferenceThe encounter associated with this nutrition order
[props.dateTime]dateTimeDate and time the nutrition order was requested
[props.orderer]ReferenceWho ordered the diet, formula or nutritional supplement
[props.allergyIntolerance]ReferenceList of the patient's food and nutrition-related allergies and intolerances
[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.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.oralDiet]BackboneElementOral diet components
[props.supplement]BackboneElementSupplement components
[props.enteralFormula]BackboneElementEnteral formula components
[props.note]AnnotationComments

builders.nutritionProduct

nutritionProduct(props)

Create a NutritionProduct resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.status]stringactive
[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.manufacturer]ReferenceManufacturer, representative or officially responsible for the product
[props.nutrient]BackboneElementThe product's nutritional information expressed by the nutrients
[props.ingredient]BackboneElementIngredients contained in this 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.productCharacteristic]BackboneElementSpecifies descriptive properties of the nutrition product
[props.instance]BackboneElementOne or several physical instances or occurrences of the nutrition product
[props.note]AnnotationComments made about the product

builders.observation

observation(props)

Create a Observation resource.

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

builders.observationDefinition

observationDefinition(props)

Create a ObservationDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[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.identifier]IdentifierBusiness identifier for this ObservationDefinition instance
[props.permittedDataType]stringQuantity
[props.multipleResultsAllowed]booleanMultiple results allowed
[props.method]stringMethod used to produce the observation. Accepts all values from http://hl7.org/fhir/ValueSet/observation-methods
[props.preferredReportName]stringPreferred report name
[props.quantitativeDetails]BackboneElementCharacteristics of quantitative results
[props.qualifiedInterval]BackboneElementQualified range for continuous and ordinal observation results
[props.validCodedValueSet]ReferenceValue set of valid coded values for the observations conforming to this ObservationDefinition
[props.normalCodedValueSet]ReferenceValue set of normal coded values for the observations conforming to this ObservationDefinition
[props.abnormalCodedValueSet]ReferenceValue set of abnormal coded values for the observations conforming to this ObservationDefinition
[props.criticalCodedValueSet]ReferenceValue set of critical 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.identifier]IdentifierIdentifies this organization across multiple systems
[props.active]booleanWhether the organization's record is still in active use
[props.type]stringKind of organization. Accepts all values from http://hl7.org/fhir/ValueSet/organization-type
[props.name]stringName used for the organization
[props.alias]stringA list of alternate names that the organization is known as, or was known as in the past
[props.telecom]ContactPointA contact detail for the organization
[props.address]AddressAn address for the organization
[props.partOf]ReferenceThe organization of which this organization forms a part
[props.contact]BackboneElementContact for the organization for a certain purpose
[props.endpoint]ReferenceTechnical endpoints providing access to services operated for the organization

builders.organizationAffiliation

organizationAffiliation(props)

Create a OrganizationAffiliation resource.

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

builders.packagedProductDefinition

packagedProductDefinition(props)

Create a PackagedProductDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierA unique identifier for this package as whole
[props.name]stringA name for this package. Typically as listed in a drug formulary, catalogue, inventory etc
[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
[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.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.description]markdownTextual description. Note that this is not the name of the package or product
[props.legalStatusOfSupply]BackboneElementThe legal status of supply of the packaged item as classified by the regulator
[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.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.copackagedIndicator]booleanIf the drug product is supplied with another item such as a diluent or adjuvant
[props.manufacturer]ReferenceManufacturer of this package type (multiple means these are all possible manufacturers)
[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

builders.patient

patient(props)

Create a Patient resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierAn identifier for this patient
[props.active]booleanWhether this patient's record is in active use
[props.name]HumanNameA name associated with the patient
[props.telecom]ContactPointA contact detail for the individual
[props.gender]stringmale
[props.birthDate]dateThe date of birth for the individual
[props.deceased]boolean | dateTimeIndicates if the individual is deceased or not
[props.address]AddressAn address for the individual
[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.photo]AttachmentImage of the patient
[props.contact]BackboneElementA contact party (e.g. guardian, partner, friend) for the patient
[props.communication]BackboneElementA language which may be used to communicate with the patient about his or her health
[props.generalPractitioner]ReferencePatient's nominated primary care provider
[props.managingOrganization]ReferenceOrganization that is the custodian of the patient record
[props.link]BackboneElementLink to another patient resource that concerns the same actual person

builders.paymentNotice

paymentNotice(props)

Create a PaymentNotice resource.

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

builders.paymentReconciliation

paymentReconciliation(props)

Create a PaymentReconciliation resource.

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

builders.person

person(props)

Create a Person resource.

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

builders.planDefinition

planDefinition(props)

Create a PlanDefinition resource.

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

builders.practitioner

practitioner(props)

Create a Practitioner resource.

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

builders.practitionerRole

practitionerRole(props)

Create a PractitionerRole resource.

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

builders.procedure

procedure(props)

Create a Procedure resource.

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

builders.questionnaire

questionnaire(props)

Create a Questionnaire resource.

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

builders.questionnaireResponse

questionnaireResponse(props)

Create a QuestionnaireResponse resource.

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

builders.regulatedAuthorization

regulatedAuthorization(props)

Create a RegulatedAuthorization resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness identifier for the authorization, typically assigned by the authorizing body
[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.description]markdownGeneral textual supporting information
[props.region]stringThe territory in which the authorization has been granted. Accepts all values from http://hl7.org/fhir/ValueSet/jurisdiction
[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.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
[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.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.holder]ReferenceThe organization that has been granted this authorization, by the regulator
[props.regulator]ReferenceThe regulatory authority or authorizing body granting the authorization
[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)

builders.relatedPerson

relatedPerson(props)

Create a RelatedPerson resource.

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

builders.requestGroup

requestGroup(props)

Create a RequestGroup resource.

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

builders.researchDefinition

researchDefinition(props)

Create a ResearchDefinition resource.

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

builders.researchElementDefinition

researchElementDefinition(props)

Create a ResearchElementDefinition resource.

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

builders.researchStudy

researchStudy(props)

Create a ResearchStudy resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness Identifier for study
[props.title]stringName for this study
[props.protocol]ReferenceSteps followed in executing study
[props.partOf]ReferencePart of larger study
[props.status]stringactive
[props.primaryPurposeType]stringtreatment
[props.phase]stringn-a
[props.category]CodeableConceptClassifications for the study
[props.focus]CodeableConceptDrugs, devices, etc. under 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.relatedArtifact]RelatedArtifactReferences and dependencies
[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.description]markdownWhat this is study doing
[props.enrollment]ReferenceInclusion & exclusion criteria
[props.period]PeriodWhen the study began and ended
[props.sponsor]ReferenceOrganization that initiates and is legally responsible for the study
[props.principalInvestigator]ReferenceResearcher who oversees multiple aspects of the study
[props.site]ReferenceFacility where study activities are conducted
[props.reasonStopped]stringaccrual-goal-met
[props.note]AnnotationComments made about the study
[props.arm]BackboneElementDefined path through the study for a subject
[props.objective]BackboneElementA goal for the study

builders.researchSubject

researchSubject(props)

Create a ResearchSubject resource.

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

builders.riskAssessment

riskAssessment(props)

Create a RiskAssessment resource.

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

builders.schedule

schedule(props)

Create a Schedule resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierExternal Ids for this item
[props.active]booleanWhether this schedule is in active use
[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
[props.actor]ReferenceResource(s) that availability information is being provided for
[props.planningHorizon]PeriodPeriod of time covered by schedule
[props.comment]stringComments on availability

builders.serviceRequest

serviceRequest(props)

Create a ServiceRequest resource.

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

builders.slot

slot(props)

Create a Slot resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierExternal Ids for this item
[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.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.schedule]ReferenceThe schedule resource that this slot defines an interval of status information
[props.status]stringbusy
[props.start]instantDate/Time that the slot is to begin
[props.end]instantDate/Time that the slot is to conclude
[props.overbooked]booleanThis slot has already been overbooked, appointments are unlikely to be accepted for this time
[props.comment]stringComments on the slot to describe any extended information. Such as custom constraints on the slot

builders.specimen

specimen(props)

Create a Specimen resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierExternal Identifier
[props.accessionIdentifier]IdentifierIdentifier assigned by the lab
[props.status]stringavailable
[props.type]stringKind of material that forms the specimen. Accepts all values from http://terminology.hl7.org/ValueSet/v2-0487
[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.receivedTime]dateTimeThe time when specimen was received for processing
[props.parent]ReferenceSpecimen from which this specimen originated
[props.request]ReferenceWhy the specimen was collected
[props.collection]BackboneElementCollection details
[props.processing]BackboneElementProcessing and processing step details
[props.container]BackboneElementDirect container of specimen (tube/slide, etc.)
[props.condition]stringState of the specimen. Accepts all values from http://terminology.hl7.org/ValueSet/v2-0493
[props.note]AnnotationComments

builders.specimenDefinition

specimenDefinition(props)

Create a SpecimenDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierBusiness identifier of a kind of specimen
[props.typeCollected]stringKind of material to collect. Accepts all values from http://terminology.hl7.org/ValueSet/v2-0487
[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.collection]stringSpecimen collection procedure. Accepts all values from http://hl7.org/fhir/ValueSet/specimen-collection
[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.identifier]IdentifierUnique identifier
[props.status]stringactive
[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.instance]BackboneElementIf this describes a specific package/container of the substance
[props.ingredient]BackboneElementComposition information about the substance

builders.substanceDefinition

substanceDefinition(props)

Create a SubstanceDefinition resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.identifier]IdentifierIdentifier by which this substance is known
[props.version]stringA business level version identifier of the substance
[props.status]stringStatus of substance within the catalogue e.g. active, retired. Accepts all values from http://hl7.org/fhir/ValueSet/publication-status
[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.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.description]markdownTextual description of the substance
[props.informationSource]ReferenceSupporting literature
[props.note]AnnotationTextual comment about the substance's catalogue or registry record
[props.manufacturer]ReferenceThe entity that creates, makes, produces or fabricates the substance
[props.supplier]ReferenceAn entity that is the source for the substance. It may be different from the manufacturer
[props.moiety]BackboneElementMoiety, for structural modifications
[props.property]BackboneElementGeneral specifications for this substance
[props.molecularWeight]BackboneElementThe molecular weight or weight range
[props.structure]BackboneElementStructural information
[props.code]BackboneElementCodes associated with the substance
[props.name]BackboneElementNames applicable to this substance
[props.relationship]BackboneElementA link between this substance and another
[props.sourceMaterial]BackboneElementMaterial or taxonomic/anatomical source

builders.supplyDelivery

supplyDelivery(props)

Create a SupplyDelivery resource.

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

builders.supplyRequest

supplyRequest(props)

Create a SupplyRequest resource.

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

builders.task

task(props)

Create a Task resource.

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

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

builders.verificationResult

verificationResult(props)

Create a VerificationResult resource.

ParamTypeDescription
propsobjectProperties to apply to the resource (includes common and custom properties).
[props.target]ReferenceA resource that was validated
[props.targetLocation]stringThe fhirpath location(s) within the resource that was validated
[props.need]stringnone
[props.status]stringattested
[props.statusDate]dateTimeWhen the validation status was updated
[props.validationType]stringnothing
[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.frequency]TimingFrequency of revalidation
[props.lastPerformed]dateTimeThe date/time validation was last completed (including failed validations)
[props.nextScheduled]dateThe date when target is next validated, if appropriate
[props.failureAction]stringfatal
[props.primarySource]BackboneElementInformation about the primary source(s) involved in validation
[props.attestation]BackboneElementInformation about the entity attesting to information
[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.identifier]IdentifierBusiness Identifier for vision prescription
[props.status]stringactive
[props.created]dateTimeResponse creation date
[props.patient]ReferenceWho prescription is for
[props.encounter]ReferenceCreated during encounter / admission / stay
[props.dateWritten]dateTimeWhen prescription was authorized
[props.prescriber]ReferenceWho authorized the vision prescription
[props.lensSpecification]BackboneElementVision lens authorization

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') }))