fhir-4@0.1.11
- addToBundle(resources, [name])
- create(resource)
- delete(reference)
- read(reference)
- search(resourceType, options)
- update(reference, resource)
- uploadBundle(bundle)
This adaptor exports the following namespaced functions:
- builders.account(type, props)
- builders.activityDefinition(type, props)
- builders.administrableProductDefinition(type, props)
- builders.adverseEvent(type, props)
- builders.allergyIntolerance(type, props)
- builders.appointment(type, props)
- builders.appointmentResponse(type, props)
- builders.biologicallyDerivedProduct(type, props)
- builders.bodyStructure(type, props)
- builders.carePlan(type, props)
- builders.careTeam(type, props)
- builders.chargeItem(type, props)
- builders.chargeItemDefinition(type, props)
- builders.citation(type, props)
- builders.claim(type, props)
- builders.claimResponse(type, props)
- builders.clinicalImpression(type, props)
- builders.clinicalUseDefinition(type, props)
- builders.communication(type, props)
- builders.communicationRequest(type, props)
- builders.contract(type, props)
- builders.coverage(type, props)
- builders.coverageEligibilityRequest(type, props)
- builders.coverageEligibilityResponse(type, props)
- builders.detectedIssue(type, props)
- builders.device(type, props)
- builders.deviceDefinition(type, props)
- builders.deviceMetric(type, props)
- builders.deviceRequest(type, props)
- builders.deviceUseStatement(type, props)
- builders.diagnosticReport(type, props)
- builders.domainResource(type, props)
- builders.encounter(type, props)
- builders.enrollmentRequest(type, props)
- builders.enrollmentResponse(type, props)
- builders.episodeOfCare(type, props)
- builders.eventDefinition(type, props)
- builders.evidence(type, props)
- builders.evidenceReport(type, props)
- builders.evidenceVariable(type, props)
- builders.explanationOfBenefit(type, props)
- builders.familyMemberHistory(type, props)
- builders.flag(type, props)
- builders.goal(type, props)
- builders.group(type, props)
- builders.guidanceResponse(type, props)
- builders.healthcareService(type, props)
- builders.imagingStudy(type, props)
- builders.immunization(type, props)
- builders.immunizationEvaluation(type, props)
- builders.immunizationRecommendation(type, props)
- builders.ingredient(type, props)
- builders.insurancePlan(type, props)
- builders.invoice(type, props)
- builders.library(type, props)
- builders.list(type, props)
- builders.location(type, props)
- builders.manufacturedItemDefinition(type, props)
- builders.measure(type, props)
- builders.measureReport(type, props)
- builders.media(type, props)
- builders.medication(type, props)
- builders.medicationAdministration(type, props)
- builders.medicationDispense(type, props)
- builders.medicationKnowledge(type, props)
- builders.medicationRequest(type, props)
- builders.medicationStatement(type, props)
- builders.medicinalProductDefinition(type, props)
- builders.molecularSequence(type, props)
- builders.nutritionOrder(type, props)
- builders.nutritionProduct(type, props)
- builders.observation(type, props)
- builders.observationDefinition(type, props)
- builders.organization(type, props)
- builders.organizationAffiliation(type, props)
- builders.packagedProductDefinition(type, props)
- builders.patient(type, props)
- builders.paymentNotice(type, props)
- builders.paymentReconciliation(type, props)
- builders.person(type, props)
- builders.planDefinition(type, props)
- builders.practitioner(type, props)
- builders.practitionerRole(type, props)
- builders.procedure(type, props)
- builders.questionnaire(type, props)
- builders.questionnaireResponse(type, props)
- builders.regulatedAuthorization(type, props)
- builders.relatedPerson(type, props)
- builders.requestGroup(type, props)
- builders.researchDefinition(type, props)
- builders.researchElementDefinition(type, props)
- builders.researchStudy(type, props)
- builders.researchSubject(type, props)
- builders.riskAssessment(type, props)
- builders.schedule(type, props)
- builders.serviceRequest(type, props)
- builders.slot(type, props)
- builders.specimen(type, props)
- builders.specimenDefinition(type, props)
- builders.substance(type, props)
- builders.substanceDefinition(type, props)
- builders.supplyDelivery(type, props)
- builders.supplyRequest(type, props)
- builders.task(type, props)
- builders.testReport(type, props)
- builders.verificationResult(type, props)
- builders.visionPrescription(type, 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, [system])
- 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
Param | Type | Description |
---|---|---|
resources | object/array | A resource or array of resources to add to the bundle |
[name] | string | A name (key) for this bundle on state (defaults to bundle ) |
This operation writes the following keys to state:
State Key | Description |
---|---|
bundle | the 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
Param | Type | Description |
---|---|---|
resource | object | The resource to create. |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | the newly created resource. |
response | the HTTP response returned by the server. |
Example: Create a Patient with a builder function
create(b.patient({
name: { family: "Messi", given: "Lionel", use: "official" },
}))
delete
delete(reference) ⇒
Delete a single FHIR resource.
Returns: Operation
Param | Type | Description |
---|---|---|
reference | string | The type and ID of the resource to delete, eg, Patient/123 |
This operation writes the following keys to state:
State Key | Description |
---|---|
response | the 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
Param | Type | Description |
---|---|---|
reference | string | The type and ID of the resource to read, eg, Patient/123 |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | the newly updated resource, as returned by the server |
response | the HTTP response returned by the server. |
Example: Read a single Patient resource
read('Patient/12345')
search
search(resourceType, options) ⇒
Search for matching FHIR resources. Exclude _ from search parameters, and pass query terms on options.query.
Returns: Operation
Param | Type | Description |
---|---|---|
resourceType | string | The type of the resource to search for. |
options | object | Parameters, query and filter. |
[options.*] | object | Pass supported query parameters without underscore. See FHIR Search Summary. |
[options.query] | object | query terms to search for. These are appended to the query URL veratim.. |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | the newly updated resource, as returned by the server |
response | the 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
Param | Type | Description |
---|---|---|
reference | string | The type and ID of the resource to update, eg, Patient/123 |
resource | object | The new version of this resource. |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | the newly updated resource, as returned by the server |
response | the 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
Param | Type | Description |
---|---|---|
bundle | string/object | A 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(type, props)
Create a FHIR Account resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | Account number |
[props.status] | string | active |
[props.type] | CodeableConcept | E.g. patient, expense, depreciation |
[props.name] | string | Human-readable label |
[props.subject] | Reference | The entity that caused the expenses |
[props.servicePeriod] | Period | Transaction window |
[props.coverage] | BackboneElement | The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account |
[props.owner] | Reference | Entity managing the Account |
[props.description] | string | Explanation of purpose/use |
[props.guarantor] | BackboneElement | The parties ultimately responsible for balancing the Account |
[props.partOf] | Reference | Reference to a parent Account |
builders.activityDefinition
activityDefinition(type, props)
Create a FHIR ActivityDefinition resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.url] | string | Canonical identifier for this activity definition, represented as a URI (globally unique) |
[props.identifier] | Identifier | Additional identifier for the activity definition |
[props.version] | string | Business version of the activity definition |
[props.name] | string | Name for this activity definition (computer friendly) |
[props.title] | string | Name for this activity definition (human friendly) |
[props.subtitle] | string | Subordinate title of the activity definition |
[props.status] | string | draft |
[props.experimental] | boolean | For testing purposes, not real usage |
[props.subject] | CodeableConcept | Reference | canonical | Type of individual the activity definition is intended for |
[props.date] | dateTime | Date last changed |
[props.publisher] | string | Name of the publisher (organization or individual) |
[props.contact] | ContactDetail | Contact details for the publisher |
[props.description] | markdown | Natural language description of the activity definition |
[props.useContext] | UsageContext | The context that the content is intended to support |
[props.jurisdiction] | CodeableConcept | Intended jurisdiction for activity definition (if applicable) |
[props.purpose] | markdown | Why this activity definition is defined |
[props.usage] | string | Describes the clinical usage of the activity definition |
[props.copyright] | markdown | Use and/or publishing restrictions |
[props.approvalDate] | date | When the activity definition was approved by publisher |
[props.lastReviewDate] | date | When the activity definition was last reviewed |
[props.effectivePeriod] | Period | When the activity definition is expected to be used |
[props.topic] | CodeableConcept | E.g. Education, Treatment, Assessment, etc. |
[props.author] | ContactDetail | Who authored the content |
[props.editor] | ContactDetail | Who edited the content |
[props.reviewer] | ContactDetail | Who reviewed the content |
[props.endorser] | ContactDetail | Who endorsed the content |
[props.relatedArtifact] | RelatedArtifact | Additional documentation, citations, etc. |
[props.library] | canonical | Logic used by the activity definition |
[props.kind] | string | Kind of resource |
[props.profile] | canonical | What profile the resource needs to conform to |
[props.code] | CodeableConcept | Detail type of activity |
[props.intent] | string | proposal |
[props.priority] | string | routine |
[props.doNotPerform] | boolean | True if the activity should not be performed |
[props.timing] | Timing | dateTime | Age | Period | Range | Duration | When activity is to occur |
[props.location] | Reference | Where it should happen |
[props.participant] | BackboneElement | Who should participate in the action |
[props.product] | Reference | CodeableConcept | What's administered/supplied |
[props.quantity] | Quantity | How much is administered/consumed/supplied |
[props.dosage] | Dosage | Detailed dosage instructions |
[props.bodySite] | CodeableConcept | What part of body to perform on |
[props.specimenRequirement] | Reference | What specimens are required to perform this action |
[props.observationRequirement] | Reference | What observations are required to perform this action |
[props.observationResultRequirement] | Reference | What observations must be produced by this action |
[props.transform] | canonical | Transform to apply the template |
[props.dynamicValue] | BackboneElement | Dynamic aspects of the definition |
builders.administrableProductDefinition
administrableProductDefinition(type, props)
Create a FHIR AdministrableProductDefinition resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | An identifier for the administrable product |
[props.status] | string | draft |
[props.formOf] | Reference | References 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] | CodeableConcept | The dose form of the final product after necessary reconstitution or processing |
[props.unitOfPresentation] | CodeableConcept | The presentation type in which this item is given to a patient. e.g. for a spray - 'puff' |
[props.producedFrom] | Reference | Indicates the specific manufactured items that are part of the 'formOf' product that are used in the preparation of this specific administrable form |
[props.ingredient] | CodeableConcept | The 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 |
[props.device] | Reference | A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product |
[props.property] | BackboneElement | Characteristics e.g. a product's onset of action |
[props.routeOfAdministration] | BackboneElement | The path by which the product is taken into or makes contact with the body |
builders.adverseEvent
adverseEvent(type, props)
Create a FHIR AdverseEvent resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | Business identifier for the event |
[props.actuality] | string | actual |
[props.category] | CodeableConcept | product-problem |
[props.event] | CodeableConcept | Type of the event itself in relation to the subject |
[props.subject] | Reference | Subject impacted by event |
[props.encounter] | Reference | Encounter created as part of |
[props.date] | dateTime | When the event occurred |
[props.detected] | dateTime | When the event was detected |
[props.recordedDate] | dateTime | When the event was recorded |
[props.resultingCondition] | Reference | Effect on the subject due to this event |
[props.location] | Reference | Location where adverse event occurred |
[props.seriousness] | CodeableConcept | Seriousness of the event |
[props.severity] | CodeableConcept | mild |
[props.outcome] | CodeableConcept | resolved |
[props.recorder] | Reference | Who recorded the adverse event |
[props.contributor] | Reference | Who was involved in the adverse event or the potential adverse event |
[props.suspectEntity] | BackboneElement | The suspected agent causing the adverse event |
[props.subjectMedicalHistory] | Reference | AdverseEvent.subjectMedicalHistory |
[props.referenceDocument] | Reference | AdverseEvent.referenceDocument |
[props.study] | Reference | AdverseEvent.study |
builders.allergyIntolerance
allergyIntolerance(type, props)
Create a FHIR AllergyIntolerance resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | External ids for this item |
[props.clinicalStatus] | CodeableConcept | active |
[props.verificationStatus] | CodeableConcept | unconfirmed |
[props.type] | string | allergy |
[props.category] | string | food |
[props.criticality] | string | low |
[props.code] | CodeableConcept | Code that identifies the allergy or intolerance |
[props.patient] | Reference | Who the sensitivity is for |
[props.encounter] | Reference | Encounter when the allergy or intolerance was asserted |
[props.onset] | dateTime | Age | Period | Range | string | When allergy or intolerance was identified |
[props.recordedDate] | dateTime | Date first version of the resource instance was recorded |
[props.recorder] | Reference | Who recorded the sensitivity |
[props.asserter] | Reference | Source of the information about the allergy |
[props.lastOccurrence] | dateTime | Date(/time) of last known occurrence of a reaction |
[props.note] | Annotation | Additional text not captured in other fields |
[props.reaction] | BackboneElement | Adverse Reaction Events linked to exposure to substance |
builders.appointment
appointment(type, props)
Create a FHIR Appointment resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | External Ids for this item |
[props.status] | string | proposed |
[props.cancelationReason] | CodeableConcept | The coded reason for the appointment being cancelled |
[props.serviceCategory] | CodeableConcept | A broad categorization of the service that is to be performed during this appointment |
[props.serviceType] | CodeableConcept | The specific service that is to be performed during this appointment |
[props.specialty] | CodeableConcept | The specialty of a practitioner that would be required to perform the service requested in this appointment |
[props.appointmentType] | CodeableConcept | The style of appointment or patient that has been booked in the slot (not service type) |
[props.reasonCode] | CodeableConcept | Coded reason this appointment is scheduled |
[props.reasonReference] | Reference | Reason the appointment is to take place (resource) |
[props.priority] | unsignedInt | Used to make informed decisions if needing to re-prioritize |
[props.description] | string | Shown on a subject line in a meeting request, or appointment list |
[props.supportingInformation] | Reference | Additional information to support the appointment |
[props.start] | instant | When appointment is to take place |
[props.end] | instant | When appointment is to conclude |
[props.minutesDuration] | number | Can be less than start/end (e.g. estimate) |
[props.slot] | Reference | The slots that this appointment is filling |
[props.created] | dateTime | The date that this appointment was initially created |
[props.comment] | string | Additional comments |
[props.patientInstruction] | string | Detailed information and instructions for the patient |
[props.basedOn] | Reference | The service request this appointment is allocated to assess |
[props.participant] | BackboneElement | Participants involved in appointment |
[props.requestedPeriod] | Period | Potential date/time interval(s) requested to allocate the appointment within |
builders.appointmentResponse
appointmentResponse(type, props)
Create a FHIR AppointmentResponse resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | External Ids for this item |
[props.appointment] | Reference | Appointment this response relates to |
[props.start] | instant | Time from appointment, or requested new start time |
[props.end] | instant | Time from appointment, or requested new end time |
[props.participantType] | CodeableConcept | Role of participant in the appointment |
[props.actor] | Reference | Person, Location, HealthcareService, or Device |
[props.participantStatus] | string | accepted |
[props.comment] | string | Additional comments |
builders.biologicallyDerivedProduct
biologicallyDerivedProduct(type, props)
Create a FHIR BiologicallyDerivedProduct resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | External ids for this item |
[props.productCategory] | string | organ |
[props.productCode] | CodeableConcept | What this biologically derived product is |
[props.status] | string | available |
[props.request] | Reference | Procedure request |
[props.quantity] | integer | The amount of this biologically derived product |
[props.parent] | Reference | BiologicallyDerivedProduct parent |
[props.collection] | BackboneElement | How this product was collected |
[props.processing] | BackboneElement | Any processing of the product during collection |
[props.manipulation] | BackboneElement | Any manipulation of product post-collection |
[props.storage] | BackboneElement | Product storage |
builders.bodyStructure
bodyStructure(type, props)
Create a FHIR BodyStructure resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | Bodystructure identifier |
[props.active] | boolean | Whether this record is in active use |
[props.morphology] | CodeableConcept | Kind of Structure |
[props.location] | CodeableConcept | Body site |
[props.locationQualifier] | CodeableConcept | Body site modifier |
[props.description] | string | Text description |
[props.image] | Attachment | Attached images |
[props.patient] | Reference | Who this is about |
builders.carePlan
carePlan(type, props)
Create a FHIR CarePlan resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | External Ids for this plan |
[props.instantiatesCanonical] | canonical | Instantiates FHIR protocol or definition |
[props.instantiatesUri] | string | Instantiates external protocol or definition |
[props.basedOn] | Reference | Fulfills CarePlan |
[props.replaces] | Reference | CarePlan replaced by this CarePlan |
[props.partOf] | Reference | Part of referenced CarePlan |
[props.status] | string | draft |
[props.intent] | string | proposal |
[props.category] | CodeableConcept | Type of plan |
[props.title] | string | Human-friendly name for the care plan |
[props.description] | string | Summary of nature of plan |
[props.subject] | Reference | Who the care plan is for |
[props.encounter] | Reference | Encounter created as part of |
[props.period] | Period | Time period plan covers |
[props.created] | dateTime | Date record was first recorded |
[props.author] | Reference | Who is the designated responsible party |
[props.contributor] | Reference | Who provided the content of the care plan |
[props.careTeam] | Reference | Who's involved in plan? |
[props.addresses] | Reference | Health issues this plan addresses |
[props.supportingInfo] | Reference | Information considered as part of plan |
[props.goal] | Reference | Desired outcome of plan |
[props.activity] | BackboneElement | Action to occur as part of plan |
[props.note] | Annotation | Comments about the plan |
builders.careTeam
careTeam(type, props)
Create a FHIR CareTeam resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | External Ids for this team |
[props.status] | string | proposed |
[props.category] | CodeableConcept | Type of team |
[props.name] | string | Name of the team, such as crisis assessment team |
[props.subject] | Reference | Who care team is for |
[props.encounter] | Reference | Encounter created as part of |
[props.period] | Period | Time period team covers |
[props.participant] | BackboneElement | Members of the team |
[props.reasonCode] | CodeableConcept | Why the care team exists |
[props.reasonReference] | Reference | Why the care team exists |
[props.managingOrganization] | Reference | Organization responsible for the care team |
[props.telecom] | ContactPoint | A contact detail for the care team (that applies to all members) |
[props.note] | Annotation | Comments made about the CareTeam |
builders.chargeItem
chargeItem(type, props)
Create a FHIR ChargeItem resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.identifier] | Identifier | Business Identifier for item |
[props.definitionUri] | string | Defining information about the code of this charge item |
[props.definitionCanonical] | canonical | Resource defining the code of this ChargeItem |
[props.status] | string | planned |
[props.partOf] | Reference | Part of referenced ChargeItem |
[props.code] | CodeableConcept | A code that identifies the charge, like a billing code |
[props.subject] | Reference | Individual service was done for/to |
[props.context] | Reference | Encounter / Episode associated with event |
[props.occurrence] | dateTime | Period | Timing | When the charged service was applied |
[props.performer] | BackboneElement | Who performed charged service |
[props.performingOrganization] | Reference | Organization providing the charged service |
[props.requestingOrganization] | Reference | Organization requesting the charged service |
[props.costCenter] | Reference | Organization that has ownership of the (potential, future) revenue |
[props.quantity] | Quantity | Quantity of which the charge item has been serviced |
[props.bodysite] | CodeableConcept | Anatomical location, if relevant |
[props.factorOverride] | decimal | Factor overriding the associated rules |
[props.priceOverride] | Money | Price overriding the associated rules |
[props.overrideReason] | string | Reason for overriding the list price/factor |
[props.enterer] | Reference | Individual who was entering |
[props.enteredDate] | dateTime | Date the charge item was entered |
[props.reason] | CodeableConcept | Why was the charged service rendered? |
[props.service] | Reference | Which rendered service is being charged? |
[props.product] | Reference | CodeableConcept | Product charged |
[props.account] | Reference | Account to place this charge |
[props.note] | Annotation | Comments made about the ChargeItem |
[props.supportingInformation] | Reference | Further information supporting this charge |
builders.chargeItemDefinition
chargeItemDefinition(type, props)
Create a FHIR ChargeItemDefinition resource.
Param | Type | Description |
---|---|---|
type | string | The profile id for the resource variant. Optional. |
props | object | Properties to apply to the resource (includes common and custom properties). |
[props.url] | string | Canonical identifier for this charge item definition, represented as a URI (globally unique) |
[props.identifier] | Identifier | Additional identifier for the charge item definition |
[props.version] | string | Business version of the charge item definition |
[props.title] | string | Name for this charge item definition (human friendly) |
[props.derivedFromUri] | string | Underlying externally-defined charge item definition |
[props.partOf] | canonical | A larger definition of which this particular definition is a component or step |
[props.replaces] | canonical | Completed or terminated request(s) whose function is taken by this new request |
[props.status] | string | draft |
[props.experimental] | boolean | For testing purposes, not real usage |
[props.date] | dateTime | Date last changed |
[props.publisher] | string | Name of the publisher (organization or individual) |
[props.contact] | ContactDetail | Contact details for the publisher |
[props.description] | markdown | Natural language description of the charge item definition |
[props.useContext] | UsageContext | The context that the content is intended to support |
[props.jurisdiction] | CodeableConcept | Intended jurisdiction for charge item definition (if applicable) |
[props.copyright] | markdown | Use and/or publishing restrictions |
[props.approvalDate] | date | When the charge item definition was approved by publisher |
[props.lastReviewDate] | date | When the charge item definition was last reviewed |
[props.effectivePeriod] | Period | When the charge item definition is expected to be used |
[props.code] | CodeableConcept | Billing codes or product types this definition applies to |
[props.instance] | Reference | Instances this definition applies to |
[props.applicability] | BackboneElement | Whether or not the billing code is applicable |
[props.propertyGroup] | BackboneElement | Group of properties which are applicable under the same conditions |