Bundle de 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/PocSeguimientoBundleSeguimiento"
        ]
    },
    "type": "transaction",
    "entry":  [
        {
            "fullUrl": "urn:uuid:3c876792-fc9a-11ea-adc1-0242ac120002",
            "resource": {
                "resourceType": "Encounter",
                "meta": {
                    "profile":  [
                        "http://poc-seguimiento.cens.cl/fhir/StructureDefinition/PocSeguimientoEncounter"
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
                },
                "subject": {
                    "reference": "Patient?identifier=http://minsal.cl/Identificacion|33333333"
                },
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "VR"
                },
                "status": "finished",
                "period": {
                    "start": "2020-09-22T03:00:00.000Z"
                },
                "serviceProvider": {
                    "reference": "Organization?identifier=http://minsal.cl/EstablecimientoDeis|123"
                },
                "extension":  [
                    {
                        "url": "http://ssmso.cl/Seguimiento/TomaExamen",
                        "extension":  [
                            {
                                "url": "TomaExamenFecha",
                                "valueDateTime": "2020-09-22T03:00:00.000Z"
                            },
                            {
                                "url": "TomaExamenValor",
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "url": "http://ssmso.cl/Seguimiento/CausalEgreso",
                        "valueString": "causal_egreso"
                    },
                    {
                        "url": "http://ssmso.cl/Seguimiento/TipoContactabilidad",
                        "valueString": "tipo_contactabilidad"
                    },
                    {
                        "url": "http://ssmso.cl/Seguimiento/CodigoDiagnostico",
                        "valueString": "codigo_diagnostico"
                    },
                    {
                        "url": "http://ssmso.cl/Seguimiento/FolioEpivigila",
                        "valueIdentifier": {
                            "system": "http://minsal.cl/Seguimiento/FolioEpivigila",
                            "value": "0001"
                        }
                    }
                ],
                "participant":  [
                    {
                        "individual": {
                            "reference": "urn:uuid:471eb2be-fc9a-11ea-adc1-0242ac120002",
                            "display": "nombre profesional"
                        }
                    }
                ],
                "episodeOfCare":  [
                    {
                        "reference": "EpisodeOfCare?identifier=http://minsal.cl/Seguimiento/FolioEpivigila|00001"
                    }
                ]
            },
            "request": {
                "method": "POST",
                "url": "Encounter"
            }
        },
        {
            "fullUrl": "urn:uuid:471eb2be-fc9a-11ea-adc1-0242ac120002",
            "resource": {
                "resourceType": "Practitioner",
                "meta": {
                    "profile":  [
                        "http://poc-seguimiento.cens.cl/fhir/StructureDefinition/PocSeguimientoPractitioner"
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
                },
                "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)"
                                }
                            ]
                        }
                    }
                ],
                "name":  [
                    {
                        "text": "Nomblre Profesional"
                    }
                ]
            },
            "request": {
                "method": "PUT",
                "url": "Practitioner?identifier=http://minsal.cl/Identificacion|159220591"
            }
        },
        {
            "fullUrl": "urn:uuid:507b8d8c-fc9a-11ea-adc1-0242ac120002",
            "resource": {
                "resourceType": "QuestionnaireResponse",
                "meta": {
                    "profile":  [
                        "http://poc-seguimiento.cens.cl/fhir/StructureDefinition/PocSeguimientoQuestionnaireResponse"
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns='http://www.w3.org/1999/xhtml'><a name='mm'/></div>"
                },
                "subject": {
                    "reference": "Patient?identifier=http://minsal.cl/Identificacion|33333333"
                },
                "encounter": {
                    "reference": "urn:uuid:3c876792-fc9a-11ea-adc1-0242ac120002"
                },
                "status": "completed",
                "author": {
                    "reference": "urn:uuid:471eb2be-fc9a-11ea-adc1-0242ac120002"
                },
                "item":  [
                    {
                        "linkId": "cefalea",
                        "text": "Cefalea",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "diarrea",
                        "text": "Diarrea",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "dolorabdominal",
                        "text": "Dolor Abdominal",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "dolortoracico",
                        "text": "Dolor Torácico",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "fiebre",
                        "text": "Fiebre",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "mialgia",
                        "text": "Mialgia",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "odinofagia",
                        "text": "Odinofagia",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "anosmia",
                        "text": "Anosmia",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "tos",
                        "text": "Tos",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "ninguno",
                        "text": "Ninguno",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "cumplecuarentena",
                        "text": "¿Cumple cuarentena?",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "derivacionresidenciasanitaria",
                        "text": "Derivación a Residencia Sanitaria",
                        "answer":  [
                            {
                                "valueBoolean": true
                            }
                        ]
                    },
                    {
                        "linkId": "resultadocovid",
                        "text": "¿Tiene resultado Covid?",
                        "answer":  [
                            {
                                "valueCoding": {
                                    "system": "http://cens.cl/fhir/ValueSet-PocSeguimientoResultadoCovid",
                                    "code": "positivo"
                                }
                            }
                        ]
                    },
                    {
                        "linkId": "observacionseguimiento",
                        "text": "Observación Datos adicionales del seguimiento",
                        "answer":  [
                            {
                                "valueString": "observaciones"
                            }
                        ]
                    }
                ]
            },
            "request": {
                "method": "POST",
                "url": "QuestionnaireResponse"
            }
        }
    ]
}