{
  "resourceType": "Bundle",
  "id": "bundle-solicitud-example",
  "meta": {
    "lastUpdated": "2024-06-07T17:00:00Z"
  },
  "implicitRules": "https://interoperabilidad.minsal.cl/fhir/ig/agenda/StructureDefinition/BundleSolicitud",
  "language": "es",
  "identifier": {
    "value": "67890"
  },
  "type": "transaction",
  "timestamp": "2024-06-07T17:00:00Z",
  "entry": [
    {
      "fullUrl": "http://example.org/fhir/Patient/123",
      "resource": {
        "resourceType": "Patient",
        "id": "123",
        "meta": {
          "extension": [
            {
              "url": "https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/CodigoPais",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "urn:iso:std:iso:3166",
                    "code": "CL"
                  }
                ]
              }
            }
          ]
        },
        "identifier": [
          {
            "type": {
              "coding": [
                {
                  "system": "https://interoperabilidad.minsal.cl/fhir/ig/clcore/ValueSet/VSCodigosIdentificadores",
                  "code": "RUN"
                }
              ]
            },
            "value": "12.345.678-9"
          }
        ],
        "name": [
          {
            "use": "official",
            "family": "Pérez",
            "given": [
              "Juan"
            ]
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "+56912345678"
          },
          {
            "system": "email",
            "value": "juan.perez@example.com"
          }
        ],
        "gender": "male",
        "birthDate": "1980-05-15",
        "address": [
          {
            "line": [
              "Av. Providencia 123"
            ],
            "city": "Santiago",
            "district": "Providencia",
            "country": "CL"
          }
        ],
        "contact": [
          {
            "relationship": [
              {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                    "code": "NXT"
                  }
                ]
              }
            ],
            "name": {
              "family": "González",
              "given": [
                "Maria"
              ]
            },
            "telecom": [
              {
                "system": "phone",
                "value": "+56998765432"
              }
            ]
          }
        ],
        "communication": [
          {
            "language": {
              "coding": [
                {
                  "system": "urn:ietf:bcp:47",
                  "code": "es"
                }
              ]
            }
          }
        ],
        "extension": [
          {
            "url": "https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/IdentidadDeGenero",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://interoperabilidad.minsal.cl/fhir/ig/clcore/CodeSystem/CSIdentidadDeGenero",
                  "code": "2"
                }
              ]
            }
          },
          {
            "url": "https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/SexoBiologico",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://interoperabilidad.minsal.cl/fhir/ig/clcore/CodeSystem/CSSexoBiologico",
                  "code": "1"
                }
              ]
            }
          },
          {
            "url": "https://hl7chile.cl/fhir/ig/clcore/StructureDefinition/Etnia",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://interoperabilidad.minsal.cl/fhir/ig/clcore/CodeSystem/CSEtnia",
                  "code": "1"
                }
              ]
            }
          }
        ]
      },
      "request": {
        "method": "PUT",
        "url": "Patient/123"
      }
    },
    {
      "fullUrl": "http://example.org/fhir/SolicitudServicio/456",
      "resource": {
        "resourceType": "ServiceRequest",
        "id": "456",
        "status": "active",
        "intent": "order",
        "code": {
          "coding": [
            {
              "system": "https://interoperabilidad.minsal.cl/fhir/ig/codigos-minsal/ValueSet/VSCodigosServicios",
              "code": "CONSULTA"
            }
          ]
        },
        "subject": {
          "reference": "http://example.org/fhir/Patient/123"
        },
        "occurrenceDateTime": "2024-07-15T10:00:00Z"
      },
      "request": {
        "method": "POST",
        "url": "ServiceRequest"
      }
    },
    {
      "fullUrl": "http://example.org/fhir/Coverage/789",
      "resource": {
        "resourceType": "Coverage",
        "status": "active",
        "type": {
          "coding": [
            {
              "code": "01",
              "display": "FONASA",
              "system": "https://interoperabilidad.minsal.cl/fhir/ig/agenda/CodeSystem/CSPrevision"
            }
          ]
        },
        "subscriber": {
          "reference": "http://example.org/fhir/Patient/123"
        }
      },
      "request": {
        "method": "POST",
        "url": "Coverage"
      }
    },
    {
      "fullUrl": "http://example.org/fhir/Condition/101",
      "resource": {
        "resourceType": "Condition",
        "id": "101",
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "38666000"
            }
          ]
        },
        "subject": {
          "reference": "http://example.org/fhir/Patient/123"
        }
      },
      "request": {
        "method": "POST",
        "url": "Condition"
      }
    },
    {
      "fullUrl": "http://example.org/fhir/Observation/112",
      "resource": {
        "resourceType": "Observation",
        "id": "112",
        "status": "final",
        "code": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "8302-2"
            }
          ]
        },
        "subject": {
          "reference": "http://example.org/fhir/Patient/123"
        },
        "valueQuantity": {
          "value": 175,
          "unit": "cm",
          "system": "http://unitsofmeasure.org",
          "code": "cm"
        }
      },
      "request": {
        "method": "POST",
        "url": "Observation"
      }
    }
  ]
}