UNPKG

fhirbuilder

Version:
81 lines (80 loc) 2.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CarePlanActivity = 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 CarePlanActivity BackboneElement undefined * @property {ICodeableConcept[]} outcomeCodeableConcept * @property {IReference[]} outcomeReference * @property {IAnnotation[]} progress * @property {IReference} reference * @property {ICarePlanDetail} detail * @author Roberto Araneda Espinoza */ class CarePlanActivity extends base_1.BackboneElement { /** * @description Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not). */ outcomeCodeableConcept; /** * @description Details of the outcome or action resulting from the activity. The reference to an "event" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource). */ outcomeReference; /** * @description Notes about the adherence/status/progress of the activity. */ progress; /** * @description The details of the proposed activity represented in a specific resource. */ reference; /** * @description A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc. */ detail; /** * @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 `CarePlanActivity${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `CarePlanActivity${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)('CarePlanActivity', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.CarePlanActivity = CarePlanActivity;