fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
186 lines (185 loc) • 6.72 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CarePlanDetail = void 0;
const base_1 = require("../base");
const base_2 = require("../../../core/r4/validators/base");
/**
* @version R4 (v4.0.1)
* @summary FHIR® Specification by HL7®
* @description Class for CarePlanDetail BackboneElement
undefined
* @property {string} kind
* @property {IElement} _kind
* @property {string[]} instantiatesCanonical
* @property {string[]} instantiatesUri
* @property {IElement[]} _instantiatesUri
* @property {ICodeableConcept} code
* @property {ICodeableConcept[]} reasonCode
* @property {IReference[]} reasonReference
* @property {IReference[]} goal
* @property {string} status
* @property {IElement} _status
* @property {ICodeableConcept} statusReason
* @property {boolean} doNotPerform
* @property {IElement} _doNotPerform
* @property {ITiming} scheduledTiming
* @property {IPeriod} scheduledPeriod
* @property {string} scheduledString
* @property {IElement} _scheduledString
* @property {IReference} location
* @property {IReference[]} performer
* @property {ICodeableConcept} productCodeableConcept
* @property {IReference} productReference
* @property {IQuantity} dailyAmount
* @property {IQuantity} quantity
* @property {string} description
* @property {IElement} _description
* @author Roberto Araneda Espinoza
*/
class CarePlanDetail extends base_1.BackboneElement {
/**
* @description A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.
*/
kind;
/**
* @description Extensions for kind
*/
_kind;
/**
* @description The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.
*/
instantiatesCanonical;
/**
* @description The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.
*/
instantiatesUri;
/**
* @description Extensions for instantiatesUri
*/
_instantiatesUri;
/**
* @description Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.
*/
code;
/**
* @description Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited.
*/
reasonCode;
/**
* @description Indicates another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.
*/
reasonReference;
/**
* @description Internal reference that identifies the goals that this activity is intended to contribute towards meeting.
*/
goal;
/**
* @description Identifies what progress is being made for the specific activity.
*/
status;
/**
* @description Extensions for status
*/
_status;
/**
* @description Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.
*/
statusReason;
/**
* @description If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan.
*/
doNotPerform;
/**
* @description Extensions for doNotPerform
*/
_doNotPerform;
/**
* @description The period, timing or frequency upon which the described activity is to occur.
*/
scheduledTiming;
/**
* @description The period, timing or frequency upon which the described activity is to occur.
*/
scheduledPeriod;
/**
* @description The period, timing or frequency upon which the described activity is to occur.
*/
scheduledString;
/**
* @description Extensions for scheduledString
*/
_scheduledString;
/**
* @description Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.
*/
location;
/**
* @description Identifies who's expected to be involved in the activity.
*/
performer;
/**
* @description Identifies the food, drug or other product to be consumed or supplied in the activity.
*/
productCodeableConcept;
/**
* @description Identifies the food, drug or other product to be consumed or supplied in the activity.
*/
productReference;
/**
* @description Identifies the quantity expected to be consumed in a given day.
*/
dailyAmount;
/**
* @description Identifies the quantity expected to be supplied, administered or consumed by the subject.
*/
quantity;
/**
* @description This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.
*/
description;
/**
* @description Extensions for description
*/
_description;
/**
* @description Returns a JSON representation of the model
* @returns {Record<string, any>}
*/
toJson() {
return JSON.parse(JSON.stringify(this));
}
/**
* @description Returns a string representation of the model
* @returns {string}
*/
toString() {
return `CarePlanDetail${JSON.stringify(this.toJson())}`;
}
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString() {
return `CarePlanDetail${JSON.stringify(this.toJson(), null, 2)}`;
}
/**
* @description Returns a serialized string representation of the model
* @returns {string}
*/
serialize() {
return JSON.stringify(this.toJson());
}
/**
* @description Validates the model
* @returns {isValid: boolean, operationOutcome: IOperationOutcome}
*/
validate() {
return (0, base_2.ConformanceValidator)('CarePlanDetail', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
}
exports.CarePlanDetail = CarePlanDetail;