17
HL7 FHIR (parte dos) DR. H. MANDIROLA 06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 1

10.2 fhir 2

Embed Size (px)

Citation preview

HL7 FHIR (parte dos)DR. H. MANDIROLA

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 1

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 2

Extensiones

Las extensiones son parte fundamental del diseño de la especificación FHIR

Representa la información adicional que no es parte de la definición básica del recurso.

Hay una serie de requisitos que se deben cumplir como parte de su uso y la definición.

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 3

Extensiones

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 4

<[name] xmlns="http://hl7.org/fhir" url="identifies the meaning of the extension (uri)">doco <!-- from Element: extension --> <value[x]><!-- 0..1 * Value of extension --></value[x]></[name]>

la url es un atributo obligatorio

En [x] se debe especificar el tipo de datoEleménto valor

Extensiones

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 5

{ "resource-type" : "Patient", "extension" : [ { "url" : "http://acme.org/fhir/Profile/main#trial-status", "extension" : [ { "url" : "http://acme.org/fhir/Profile/main#trial-status-code", "valueCode" : "unsure" }, { "url" : "http://acme.org/fhir/Profile/main#trial-status-date", "valueDate" : "2014-05-26" }, { "url" : "http://acme.org/fhir/Profile/main#trial-status-who", "valueResource" : { "reference" : "Practitioner/example" } } ] } ], ... other data for patient... }

tipo de dato

Bloque narrativo

1. Es para ser leído por las personas

2. No es obligatorio

3. En la practica es recomendable usarlo

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 6

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 7

Recursos de contenidos

No pueden existir en forma independiente

Deben tener clave de registro o identificadores

Si recibió un identificador arbitrario, no podrá ser objeto de transacciones

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 8

Ejemplo de recursos de contenidos

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 9

{ "resourceType" : "Document", "extension" : { ... }, "text" : { .. }, "contained: [ { "resourceType" : "Organization", "id" : "org1", .. whatever information is available ... } ] "information: { ... other attributes ... "custodian" : { "reference" : "#org1" } ... other attributes ... } }

Tipos de dato

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 10

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 11

Name Schema Type Description

boolean xs:boolean Values can be either true or false

integer xs:int A signed 32-bit integer

decimal xs:decimal A rational number. Decimals may not use exponents.

base64Binary xs:base64Binary A stream of bytes, base64 encoded

instant xs:dateTime An instant in time

string xs:string A sequence of Unicode characters. Not exceeding 1MB size.

uri xs:anyURIA Uniform Resource Identifier Reference. It can be either absolute or relative. May have an optional fragment identifier.

dateunion of xs:date, xs:gYearMonth, xs:gYear

A date, or partial date (just year or year + month) as used in human communication. There is no time zone. Dates SHALL be valid dates.

dateTimeunion of xs:dateTime, xs:date, xs:gYearMonth, xs:gYear

A date, date-time or partial date (just year or year + month) as used in human communication. If hours and minutes are specified, a time zone SHALL be populated. Seconds may be provided but may also be ignored. Dates SHALL be valid dates.

Tipos de datos complejos

Son datos con derivaciones u objetos

XML

JSON

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 12

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 13

Ejemplo de dato complejo

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 14

TIPO DE DATOSConsultar informacion sobre “Data Types” de FHIR en las especificaciones en:

http://www.hl7.org/implement/standards/fhir/datatypes.htm

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 15

Gracias por su atención

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA

Dr. Humberto Fernán Mandirola BrieuxEmail [email protected]

16

Referenciashttps://www.youtube.com/watch?v=ygBmEqLC1G8

http://www.hl7.org/FHIR/documentation.html

http://hl7es.blogspot.com.ar/2013/12/fhir-el-nuevo-miembro-de-la-familia-hl7.htm

http://wiki.hl7.org/index.php?title=FHIRl

http://www.codeproject.com/Articles/780830/Introduction-to-FHIR-Fast-Healthcare-Interoperabi

http://www.hl7.org/implement/standards/fhir/

https://github.com/ewoutkramer/fhir-net-api/tree/master/src

http://code.msdn.microsoft.com/windowsdesktop/FHIR-Server-Visual-Studio-2cf4f6ea

http://code.msdn.microsoft.com/windowsdesktop/Client-for-HL7-FHIR-server-0709be0b

http://www.hl7.org/implement/standards/fhir/documents.html

l

06/04/2015 INTRODUCCIÓN AL XML Y FHIR ING. F PORTILLA Y DR. MANDIROLA 17