PHP Класс FhirMarshal

OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Автор: OpenEyes ([email protected])
Наследование: extends CApplicationComponent
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$schemas

Открытые методы

Метод Описание
getSchema ( string $type ) : array Fetch the schema for the specified FHIR type as a PHP array.
isStandardType ( string $type ) : boolean Check whether a FHIR type is part of the standard or a custom OE type.
parseJson ( string $text ) : StdClass | null
parseXml ( string $text ) : StdClass | null
parseXmlBundle ( DOMDocument $doc, DOMElement $element )
renderJson ( StdClass $resource ) : string
renderXml ( StdClass $resource ) : string

Приватные методы

Метод Описание
parseXmlRecursive ( DOMDocument $doc, DOMElement $element, $type, array $schema )
renderXmlBundle ( StdClass $data, DOMDocument $doc, DOMNode $parent )
renderXmlRecursive ( StdClass $data, DOMDocument $doc, DOMNode $parent )

Описание методов

getSchema() публичный Метод

Fetch the schema for the specified FHIR type as a PHP array.
public getSchema ( string $type ) : array
$type string
Результат array

isStandardType() публичный Метод

Check whether a FHIR type is part of the standard or a custom OE type.
public isStandardType ( string $type ) : boolean
$type string
Результат boolean

parseJson() публичный Метод

public parseJson ( string $text ) : StdClass | null
$text string
Результат StdClass | null

parseXml() публичный Метод

public parseXml ( string $text ) : StdClass | null
$text string
Результат StdClass | null

parseXmlBundle() публичный Метод

public parseXmlBundle ( DOMDocument $doc, DOMElement $element )
$doc DOMDocument
$element DOMElement

renderJson() публичный Метод

public renderJson ( StdClass $resource ) : string
$resource StdClass
Результат string

renderXml() публичный Метод

public renderXml ( StdClass $resource ) : string
$resource StdClass
Результат string

Описание свойств

$schemas публичное свойство

public $schemas