Bundle Ingreso a Seguimiento

Consideraciones

  1. La organizaciĆ³n relacionada debe crearse de manera previa en el servidor fhir, para evitar registros huerfanos.

Ejemplo

{
    "resourceType": "Bundle",
    "meta": {
        "profile":  [
            "http://poc-seguimiento.cens.cl/fhir/StructureDefinition/PocSeguimientoBundleIngreso"
        ]
    },
    "type": "transaction",
    "entry":  [
        {
            "fullUrl": "urn:uuid:686b2fac-93fd-11ea-bb37-0242ac130002",
            "resource": {
                "resourceType": "EpisodeOfCare",
                "meta": {
                    "profile":  [
                        "http://poc-seguimiento.cens.cl/fhir/StructureDefinition/PocSeguimientoEpisodeOfCare"
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
                },
                "patient": {
                    "reference": "urn:uuid:6a509ba0-d371-11ea-87d0-0242ac130003"
                },
                "managingOrganization": {
                    "reference": "Organization?identifier=http://minsal.cl/EstablecimientoDeis|123"
                },
                "status": "active",
                "statusHistory":  [
                    {
                        "period": {
                            "start": "2020-09-01T04:00:00.000Z"
                        }
                    }
                ],
                "identifier":  [
                    {
                        "value": "0001",
                        "system": "http://ssmso.cl/Seguimiento/FolioLocal"
                    },
                    {
                        "value": "00001",
                        "system": "http://minsal.cl/Seguimiento/FolioEpivigila"
                    }
                ],
                "period": {
                    "start": "2020-09-14T03:00:00.000Z"
                },
                "extension":  [
                    {
                        "url": "http://ssmso.cl/Seguimiento/TipoUsuario",
                        "valueString": "tipo_usuario"
                    },
                    {
                        "url": "http://ssmso.cl/Seguimiento/NumeroIdentificacionIndice",
                        "valueIdentifier": {
                            "use": "official",
                            "system": "http://minsal.cl/Identificacion",
                            "value": "159220591",
                            "type": {
                                "coding":  [
                                    {
                                        "system": "http://cens.cl/HCC/TipoDeIdentificacion",
                                        "code": "787300",
                                        "display": "Identificador individual único nacional (RUN)"
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "url": "http://ssmso.cl/Seguimiento/FolioEpivigilaCasoIndice",
                        "valueString": "folio_epivigila_caso_indice"
                    }
                ]
            },
            "request": {
                "method": "POST",
                "url": "EpisodeOfCare"
            }
        },
        {
            "fullUrl": "urn:uuid:6a509ba0-d371-11ea-87d0-0242ac130003",
            "resource": {
                "resourceType": "Patient",
                "meta": {
                    "profile":  [
                        "http://poc-seguimiento.cens.cl/fhir/StructureDefinition/PocSeguimientoPatient"
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
                },
                "birthDate": "2020-09-14",
                "telecom":  [
                    {
                        "value": "987654321",
                        "system": "phone",
                        "use": "mobile"
                    }
                ],
                "gender": "male",
                "address":  [
                    {
                        "use": "home",
                        "type": "physical",
                        "text": "Avenida Los Palotes 2530, Curicó, Chile",
                        "_line": {
                            "extension":  [
                                {
                                    "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetNameType",
                                    "valueString": "vía"
                                },
                                {
                                    "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber",
                                    "valueString": "numero_residencia"
                                }
                            ]
                        },
                        "extension":  [
                            {
                                "url": "http://ssmso.cl/Seguimiento/TipoDireccion",
                                "valueString": "tipo_direccion"
                            },
                            {
                                "url": "http://ssmso.cl/Seguimiento/Departamento",
                                "valueString": "departamento"
                            },
                            {
                                "url": "http://ssmso.cl/Seguimiento/PoblacionVilla",
                                "valueString": "Poblacion/villa"
                            },
                            {
                                "url": "http://ssmso.cl/Seguimiento/Comuna",
                                "valueString": "comuna"
                            },
                            {
                                "url": "http://ssmso.cl/Seguimiento/Region",
                                "valueString": "region"
                            }
                        ]
                    }
                ],
                "name":  [
                    {
                        "use": "official",
                        "given":  [
                            "Antonio"
                        ],
                        "text": "Antonio Arenas Castro",
                        "_family": {
                            "extension":  [
                                {
                                    "url": "http://hl7.org/fhir/StructureDefinition/humanname-fathers-family",
                                    "valueString": "Rojas"
                                },
                                {
                                    "url": "http://hl7.org/fhir/StructureDefinition/humanname-mothers-family",
                                    "valueString": "Gómez"
                                }
                            ]
                        }
                    }
                ],
                "identifier":  [
                    {
                        "use": "official",
                        "system": "http://minsal.cl/Identificacion",
                        "value": "159220591",
                        "type": {
                            "coding":  [
                                {
                                    "system": "http://cens.cl/HCC/TipoDeIdentificacion",
                                    "code": "787300",
                                    "display": "Identificador individual único nacional (RUN)"
                                }
                            ]
                        }
                    }
                ]
            },
            "request": {
                "method": "PUT",
                "url": "Patient?identifier=http://minsal.cl/Identificacion|33333333"
            }
        }
    ]
}