###* @namespace scoping into the hquery namespace ### this.hQuery ||= {} # =require core.coffee ###* The plan of care contains data defining prospective or intended orders, interventions, encounters, services, and procedures for the patient. @exports CareGoal as hQuery.CareGoal @augments hQuery.CodedEntry ### class hQuery.CareGoal extends hQuery.CodedEntry constructor: (@json) -> super(@json) ###* @returns {CodedValue} ### relatedTo: -> hQuery.createCodedValue @json['relatedTo'] ###* @returns {CodedValue} ### targetOutcome: -> if @json['targetOutcome']?['unit']? new hQuery.Scalar @json['targetOutcome'] else if @json['targetOutcome']? hQuery.createCodedValue @json['targetOutcome']