3
* © Copyright 2016 IntraHealth International, Inc.
5
* This File is part of I2CE
7
* I2CE is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
* @package ihris-common
21
* @author Carl Leitner <litlfred@ibiblio.org>
27
* Class I2CE_QuestionnaireResponse
32
use FHIR_DSTU_TWO\FHIRDomainResource\FHIRQuestionnaireResponse as FHIRQuestionnaireResponse;
33
use FHIR_DSTU_TWO\FHIRResource\FHIRBundle as FHIRBundle;
34
use FHIR_DSTU_TWO\PHPFHIRResponseParser as PHPFHIRResponseParser;
36
class I2CE_FHIR_QuestionnaireResponse {
40
* Loads a questionniare resource from a content string
42
* @param string $conent the contnet of the resource.
43
* @return \FHIR_DSTU_TWO\FHIRQuestionnaire on success
45
public function load_resource_content($content) {
46
parent::load_resource_content($content);
47
if (! $this->resource instanceof FHIRQuestionnaireReposne) {
48
throw new Exception("Did not get a DSTU2 QuestionnaireReposnse resource");
50
return $this->resource;
56
# c-default-style: "bsd"
57
# indent-tabs-mode: nil