Bundle Carga Instituciones

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.

Bundle de Precarga de datos

{
"resourceType": "Bundle",
"meta": {
"profile": [
"http://poc-lis.cens.cl/fhir/StructureDefinition/PocBundlePreCarga"
]
},
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:3a1ced32-8446-11ea-bc55-0242ac130003",
"resource": {
"resourceType": "Organization",
"meta": {
"profile": [
"http://poc-lis.cens.cl/fhir/StructureDefinition/PocLisOrganization"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
"identifier": [
{
"use": "official",
"system": "http://minsal.cl/CodigoLab",
"value": "111111"
}
],
"name": "Laboratorio Ejemplo 1"
},
"request": {
"method": "PUT",
"url": "Organization?identifier=http://minsal.cl/CodigoLab|111111"
}
},
{
"fullUrl": "urn:uuid:c1fe2e1e-a133-11ea-bb37-0242ac130002",
"resource": {
"resourceType": "Organization",
"meta": {
"profile": [
"http://poc-lis.cens.cl/fhir/StructureDefinition/PocLisOrganization"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
"identifier": [
{
"use": "official",
"system": "http://minsal.cl/CodigoLab",
"value": "111112"
}
],
"name": "Laboratorio Ejemplo 2"
},
"request": {
"method": "PUT",
"url": "Organization?identifier=http://minsal.cl/CodigoLab|111112"
}
},
{
"fullUrl": "urn:uuid:0f90883a-bbc3-11ea-b3de-0242ac130004",
"resource": {
"resourceType": "Organization",
"meta": {
"profile": [
"http://poc-lis.cens.cl/fhir/StructureDefinition/PocLisOrganization"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
"identifier": [
{
"use": "official",
"system": "http://minsal.cl/CodigoLab",
"value": "001"
}
],
"name": "Laboratorio Ejemplo 2"
},
"request": {
"method": "PUT",
"url": "Organization?identifier=http://minsal.cl/CodigoLab|001"
}
},
{
"fullUrl": "urn:uuid:3254d730-bc87-11ea-b3de-0242ac130004",
"resource": {
"resourceType": "Organization",
"meta": {
"profile": [
"http://poc-lis.cens.cl/fhir/StructureDefinition/PocLisOrganization"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
"identifier": [
{
"use": "official",
"system": "http://minsal.cl/CodigoLab",
"value": "005"
}
],
"name": "Ancora UC"
},
"request": {
"method": "PUT",
"url": "Organization?identifier=http://minsal.cl/CodigoLab|005"
}
},
{
"fullUrl": "urn:uuid:d54a78e6-bc96-11ea-b3de-0242ac130004",
"resource": {
"resourceType": "Organization",
"meta": {
"profile": [
"http://poc-lis.cens.cl/fhir/StructureDefinition/PocLisOrganization"
]
},
"text": {
"status": "generated",
"div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
},
"identifier": [
{
"use": "official",
"system": "http://minsal.cl/CodigoLab",
"value": "004"
}
],
"name": "Araucania Sur"
},
"request": {
"method": "PUT",
"url": "Organization?identifier=http://minsal.cl/CodigoLab|004"
}
}
]
}