Ejemplo de Envío Final

Consideraciones

  1. Se debe generar un uuid para recurso en el campo fullUrl de cada entry.
  2. Cada uuid será la forma de relacionar cada entry
  3. Deberá poner atención a cada sección de request, las cuales proveen información para el servidor para ubicar recursos en caso de existir previamente.
  4. En el siguiente ejemplo debe reemplazar el número de ficha 12345678 por el numero de ficha incluido en el recurso a enviar.

Ejemplo de entry

{
    "fullUrl":"urn:uuid:3a1ced32-8446-11ea-bc55-0242ac130003",
    "resource":{}
    "request":{
        "method":"PUT",
        "url":"Encounter?identifier=http://ssms.cl/DAU|12345678"
    }
}

Bundle Final

{
"resourceType": "Bundle",
"id": "cf-1586299846864",
"meta": {
"profile": [
"http://ssms.cl/fhir/StructureDefinition/PocBundle"
]
},
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:9851b64a-84d1-11ea-bc55-0242ac130003",
"resourceType": "Encounter",
"meta": {
"profile": [
"http://ssms.cl/fhir/StructureDefinition/PocEncounter"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
{
"use": "official",
"system": "http://ssms.cl/DAU",
"value": "12345678",
"reference": "Organization?identifier=http://ssms.cl/Institucion|001"
}
}
],
"subject": {
"reference": "urn:uuid:da824070-8445-11ea-bc55-0242ac130003"
},
"status": "finished",
{
"status": "triaged",
"period": {
"start": "2020-02-07T13:28:17-04:00"
}
},
{
"status": "arrived",
"period": {
"start": "2020-02-07T12:28:17-04:00"
}
},
{
"status": "finished",
"period": {
"start": "2020-02-07T14:28:17-04:00"
}
}
],
"period": {
"start": "2020-02-07T12:28:17-04:00",
"end": "2020-02-07T14:28:17-04:00"
},
{
"reference": "urn:uuid:23b6ccfc-8446-11ea-bc55-0242ac130003"
},
"status": "active",
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
"code": "bd",
"display": "Bed"
}
],
"text": "Box"
}
}
],
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "EMER",
"display": "Emergencia"
},
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/service-type",
"code": "117",
"display": "Emergency Medical"
}
],
"text": "Emergencia Medica"
},
"coding": [
{
"system": "http://ssms.cl/fhir/CodeSystem/categorizacion-ssms",
"code": "c1",
"display": "C1"
}
],
"text": "C1"
},
{
"url": "http://ssms.cl/fhir/StructureDefinition/EsperaCama",
"valueBoolean": false
},
{
"url": "http://ssms.cl/fhir/StructureDefinition/Hospitalizado",
"valueBoolean": false
},
{
"url": "http://ssms.cl/fhir/StructureDefinition/OrigenDatos",
"system": "http://ssms.cl/fhir/CodeSystem/origen-datos",
"code": "dau",
"display": "DAU"
}
},
{
"url": "http://ssms.cl/fhir/StructureDefinition/TipoUrgencia",
"system": "http://ssms.cl/fhir/CodeSystem/tipo-urgencia",
"code": "adulto",
"display": "Adulto"
}
}
]
},
"request": {
"method": "PUT",
"url": "Encounter?identifier=http://ssms.cl/DAU|12345678&encounter-identifier-assigner.identifier=http://ssms.cl/Institucion|001"
}
},
{
"fullUrl": "urn:uuid:23b6ccfc-8446-11ea-bc55-0242ac130003",
"resourceType": "Location",
"meta": {
"profile": [
"http://ssms.cl/fhir/StructureDefinition/PocLocationBox"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
{
"use": "official",
"system": "http://ssms.cl/BOX",
"value": "BOX001"
}
],
"name": "BOX001",
"partOf": {
"reference": "Location?identifier=http://ssms.cl/HOSPITAL|11-1111"
}
},
"request": {
"method": "PUT",
"url": "Location?identifier=http://ssms.cl/BOX|BOX001&partof.identifier=http://ssms.cl/HOSPITAL|11-1111"
}
},
{
"fullUrl": "urn:uuid:da824070-8445-11ea-bc55-0242ac130003",
"resourceType": "Patient",
"meta": {
"profile": [
"http://ssms.cl/fhir/StructureDefinition/PocPatient"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
{
"use": "official",
"system": "https://www.registrocivil.cl/RUT",
"value": "11111111-1"
}
],
"name": [
{
"_family": {
{
"url": "http://hl7.org/fhir/StructureDefinition/humanname-fathers-family",
"valueString": "Peréz"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/humanname-mothers-family",
"valueString": "Vidal"
}
]
},
"given": [
"Juan Antonio"
],
"use": "official",
"text": "Juan Antonio Pérez Vidal"
}
]
},
"request": {
"method": "PUT",
"url": "Patient?identifier=https://www.registrocivil.cl/RUT|11111111-1"
}
}
]
}