{
  "resourceType" : "Bundle",
  "id" : "BundleRD02",
  "meta" : {
    "profile" : ["https://ministeriodesalud.go.cr/fhir/receta/StructureDefinition/bundle"]
  },
  "type" : "transaction",
  "entry" : [{
    "fullUrl" : "https://integrations-api.recetadigital.go.cr/fhir/R4/Practitioner/3092",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "3092",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Practitioner_3092\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Practitioner 3092</b></p><a name=\"3092\"> </a><a name=\"hc3092\"> </a><p><b>identifier</b>: Cédula Física/112110419\u00a0(use:\u00a0official,\u00a0)</p><p><b>name</b>: MARIA JOSE ARRIETA GUZMAN</p><p><b>telecom</b>: ph: 8665-1234, <a href=\"mailto:dra.arrieta@nuevamentecr.com\">dra.arrieta@nuevamentecr.com</a></p><p><b>address</b>: Lourdes, Montes de Oca</p><p><b>gender</b>: Female</p><p><b>birthDate</b>: 1984-07-14</p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/id-types-domain",
            "code" : "1",
            "display" : "Cédula Física"
          }],
          "text" : "Cédula Física"
        },
        "value" : "112110419"
      }],
      "name" : [{
        "text" : "MARIA JOSE ARRIETA GUZMAN",
        "family" : "ARRIETA GUZMAN",
        "given" : ["MARIA JOSE"]
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "8665-1234"
      },
      {
        "system" : "email",
        "value" : "dra.arrieta@nuevamentecr.com"
      }],
      "address" : [{
        "text" : "Lourdes, Montes de Oca",
        "city" : "MONTES DE OCA",
        "district" : "LOURDES",
        "state" : "SAN JOSÉ",
        "country" : "Costa Rica"
      }],
      "gender" : "female",
      "birthDate" : "1984-07-14"
    },
    "request" : {
      "method" : "POST",
      "url" : "Practitioner"
    }
  },
  {
    "fullUrl" : "https://integrations-api.recetadigital.go.cr/fhir/R4/Patient/98015",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "98015",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_98015\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient 98015</b></p><a name=\"98015\"> </a><a name=\"hc98015\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">JEFFREY ALEJANDRO ARRIETA GUZMAN Male, DoB: 1985-01-12 ( Cédula Física:\u00a0112300555\u00a0(use:\u00a0official,\u00a0))</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li>ph: 87077072</li><li><a href=\"mailto:jeff.esquivel@gmail.com\">jeff.esquivel@gmail.com</a></li><li>Sabanilla</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>General Practitioner: <a href=\"Practitioner-3092.html\">MARIA JOSE ARRIETA GUZMAN</a></li></ul></td></tr></table></div>"
      },
      "identifier" : [{
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/id-types-domain",
            "code" : "1",
            "display" : "Cédula Física"
          }],
          "text" : "Cédula Física"
        },
        "value" : "112300555"
      }],
      "name" : [{
        "text" : "JEFFREY ALEJANDRO ARRIETA GUZMAN",
        "family" : "ESQUIVEL SIBAJA",
        "given" : ["JEFFREY ALEJANDRO"]
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "87077072"
      },
      {
        "system" : "email",
        "value" : "jeff.esquivel@gmail.com"
      }],
      "gender" : "male",
      "birthDate" : "1985-01-12",
      "address" : [{
        "text" : "Sabanilla",
        "city" : "MONTES DE OCA",
        "district" : "SABANILLA",
        "state" : "SAN JOSÉ",
        "country" : "Costa Rica"
      }],
      "generalPractitioner" : [{
        "reference" : "Practitioner/3092",
        "display" : "MARIA JOSE ARRIETA GUZMAN"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Patient"
    }
  },
  {
    "fullUrl" : "https://integrations-api.recetadigital.go.cr/fhir/R4/MedicationRequest/2360448",
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "2360448",
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationRequest_2360448\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest 2360448</b></p><a name=\"2360448\"> </a><a name=\"hc2360448\"> </a><p><b>Tipo de receta</b>: r-v</p><p><b>status</b>: Completed</p><p><b>intent</b>: Order</p><p><b>medication</b>: <a href=\"Medication-539.html\">ANSIOLIT 0,5 mg tabletas (Gutis Ltda.)</a></p><p><b>subject</b>: <a href=\"Patient-98015.html\">JEFFREY ALEJANDRO ARRIETA GUZMAN</a></p><p><b>encounter</b>: <a href=\"Encounter-111766.html\">Encounter</a></p><p><b>supportingInformation</b>: <a href=\"AllergyIntolerance-4070.html\">AllergyIntolerance</a></p><p><b>authoredOn</b>: 2025-05-27 21:53:25+0000</p><p><b>requester</b>: <a href=\"Practitioner-3092.html\">MARIA JOSE ARRIETA GUZMAN</a></p><p><b>groupIdentifier</b>: 132C3EFCD6</p><p><b>note</b>: </p><blockquote><div><p>.</p>\n</div></blockquote><blockquote><p><b>dosageInstruction</b></p><p><b>text</b>: .</p><p><b>timing</b>: Duration 30days , Once per 30 days</p><p><b>route</b>: <span title=\"Codes:{https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/administration-lines-code PO}\">Oral</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>1 tableta(s)</td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>validityPeriod</b>: 2025-05-27 21:53:25+0000 --&gt; 2025-06-25 18:16:02+0000</p><p><b>numberOfRepeatsAllowed</b>: 1</p><p><b>quantity</b>: 30 Tabletas</p><h3>ExpectedSupplyDurations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Unit</b></td></tr><tr><td style=\"display: none\">*</td><td>30</td><td>days</td></tr></table></blockquote></div>"
      },
      "extension" : [{
        "url" : "https://ministeriodesalud.go.cr/fhir/receta/StructureDefinition/prescription-type",
        "valueString" : "r-v"
      }],
      "status" : "completed",
      "intent" : "order",
      "medicationReference" : {
        "reference" : "Medication/539",
        "display" : "ANSIOLIT 0,5 mg tabletas (Gutis Ltda.)"
      },
      "subject" : {
        "reference" : "Patient/98015",
        "display" : "JEFFREY ALEJANDRO ARRIETA GUZMAN"
      },
      "encounter" : {
        "reference" : "Encounter/111766",
        "display" : "Encounter"
      },
      "supportingInformation" : [{
        "reference" : "AllergyIntolerance/4070",
        "display" : "AllergyIntolerance"
      }],
      "authoredOn" : "2025-05-27T21:53:25.000Z",
      "requester" : {
        "reference" : "Practitioner/3092",
        "display" : "MARIA JOSE ARRIETA GUZMAN"
      },
      "groupIdentifier" : {
        "value" : "132C3EFCD6"
      },
      "note" : [{
        "text" : "."
      }],
      "dosageInstruction" : [{
        "text" : ".",
        "timing" : {
          "repeat" : {
            "duration" : 30,
            "durationUnit" : "d",
            "frequency" : 1,
            "period" : 30,
            "periodUnit" : "d"
          }
        },
        "route" : {
          "coding" : [{
            "system" : "https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/administration-lines-code",
            "code" : "PO",
            "display" : "Oral"
          }],
          "text" : "Oral"
        },
        "doseAndRate" : [{
          "doseQuantity" : {
            "value" : 1,
            "unit" : "tableta(s)"
          }
        }]
      }],
      "dispenseRequest" : {
        "validityPeriod" : {
          "start" : "2025-05-27T21:53:25.000Z",
          "end" : "2025-06-25T18:16:02.000Z"
        },
        "numberOfRepeatsAllowed" : 1,
        "quantity" : {
          "value" : 30,
          "unit" : "Tabletas"
        },
        "expectedSupplyDuration" : {
          "value" : 30,
          "unit" : "days"
        }
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "MedicationRequest"
    }
  },
  {
    "fullUrl" : "https://integrations-api.recetadigital.go.cr/fhir/R4/MedicationStatement/104221",
    "resource" : {
      "resourceType" : "MedicationStatement",
      "id" : "104221",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationStatement_104221\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationStatement 104221</b></p><a name=\"104221\"> </a><a name=\"hc104221\"> </a><p><b>status</b>: Active</p><p><b>medication</b>: <a href=\"Medication-539.html\">ANSIOLIT 0,5 mg tabletas (Gutis Ltda.)</a></p><p><b>subject</b>: <a href=\"Patient-98015.html\">JEFFREY ALEJANDRO ARRIETA GUZMAN</a></p><p><b>context</b>: <a href=\"Encounter-111766.html\">Encounter</a></p><p><b>effective</b>: 2025-05-27 06:16:02+0000</p></div>"
      },
      "status" : "active",
      "medicationReference" : {
        "reference" : "Medication/539",
        "display" : "ANSIOLIT 0,5 mg tabletas (Gutis Ltda.)"
      },
      "subject" : {
        "reference" : "Patient/98015",
        "display" : "JEFFREY ALEJANDRO ARRIETA GUZMAN"
      },
      "context" : {
        "reference" : "Encounter/111766",
        "display" : "Encounter"
      },
      "effectiveDateTime" : "2025-05-27T06:16:02Z"
    },
    "request" : {
      "method" : "POST",
      "url" : "MedicationStatement"
    }
  },
  {
    "fullUrl" : "https://integrations-api.recetadigital.go.cr/fhir/R4/AllergyIntolerance/4070",
    "resource" : {
      "resourceType" : "AllergyIntolerance",
      "id" : "4070",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"AllergyIntolerance_4070\"> </a><p class=\"res-header-id\"><b>Generated Narrative: AllergyIntolerance 4070</b></p><a name=\"4070\"> </a><a name=\"hc4070\"> </a><p><b>clinicalStatus</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical active}\">Activa</span></p><p><b>verificationStatus</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/allergyintolerance-verification confirmed}\">Confirmada</span></p><p><b>type</b>: Allergy</p><p><b>category</b>: Medication</p><p><b>criticality</b>: Low Risk</p><p><b>code</b>: <span title=\"Codes:{https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/substances-code 294851004}\">agente perfluoroquímico</span></p><p><b>patient</b>: <a href=\"Patient-98015.html\">MARIA JOSE ARRIETA GUZMAN</a></p><p><b>onset</b>: 2025-01-12 19:30:45+0000</p><p><b>recorder</b>: <a href=\"Practitioner-3092.html\">Practitioner MARIA JOSE ARRIETA GUZMAN</a></p><h3>Reactions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Manifestation</b></td><td><b>Severity</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/manifestations-code 41291007}\">angioedema</span></td><td>Moderate</td></tr></table></div>"
      },
      "clinicalStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
          "code" : "active",
          "display" : "Active"
        }],
        "text" : "Activa"
      },
      "verificationStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
          "code" : "confirmed",
          "display" : "Confirmed"
        }],
        "text" : "Confirmada"
      },
      "type" : "allergy",
      "category" : ["medication"],
      "criticality" : "low",
      "code" : {
        "coding" : [{
          "system" : "https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/substances-code",
          "code" : "294851004",
          "display" : "agente perfluoroquímico"
        }],
        "text" : "agente perfluoroquímico"
      },
      "patient" : {
        "reference" : "Patient/98015",
        "display" : "MARIA JOSE ARRIETA GUZMAN"
      },
      "onsetDateTime" : "2025-01-12T19:30:45Z",
      "recorder" : {
        "reference" : "Practitioner/3092"
      },
      "reaction" : [{
        "manifestation" : [{
          "coding" : [{
            "system" : "https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/manifestations-code",
            "code" : "41291007",
            "display" : "angioedema"
          }],
          "text" : "angioedema"
        }],
        "severity" : "moderate"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "AllergyIntolerance"
    }
  },
  {
    "fullUrl" : "https://integrations-api.recetadigital.go.cr/fhir/R4/Encounter/111766",
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "111766",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Encounter_111766\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Encounter 111766</b></p><a name=\"111766\"> </a><a name=\"hc111766\"> </a><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB\">ActCode AMB</a>: Ambulatory</p><p><b>subject</b>: <a href=\"Patient-98015.html\">JEFFREY ALEJANDRO ARRIETA GUZMAN</a></p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Individual</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Practitioner-3092.html\">MARIA JOSE ARRIETA GUZMAN</a></td></tr></table><p><b>period</b>: 2025-05-27 09:53:25+0000 --&gt; (ongoing)</p><p><b>serviceProvider</b>: <a href=\"Organization-3092.html\">Consultorio Particular de MARIA JOSE ARRIETA</a></p></div>"
      },
      "status" : "finished",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "AMB",
        "display" : "Ambulatory"
      },
      "subject" : {
        "reference" : "Patient/98015",
        "display" : "JEFFREY ALEJANDRO ARRIETA GUZMAN"
      },
      "participant" : [{
        "individual" : {
          "reference" : "Practitioner/3092",
          "display" : "MARIA JOSE ARRIETA GUZMAN"
        }
      }],
      "period" : {
        "start" : "2025-05-27T09:53:25Z"
      },
      "serviceProvider" : {
        "reference" : "Organization/3092",
        "display" : "Consultorio Particular de MARIA JOSE ARRIETA"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Encounter"
    }
  },
  {
    "fullUrl" : "https://integrations-api.recetadigital.go.cr/fhir/R4/Observation/2722",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "2722",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_2722\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation 2722</b></p><a name=\"2722\"> </a><a name=\"hc2722\"> </a><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/snomed-code 61746007}\">Taking patient vital signs (procedure)</span></p><p><b>code</b>: <span title=\"Codes:{https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/snomed-code 27113001}\">Peso</span></p><p><b>subject</b>: <a href=\"Patient-98015.html\">JEFFREY ALEJANDRO ARRIETA GUZMAN</a></p><p><b>effective</b>: 2025-05-12 19:25:59+0000</p><p><b>value</b>: 80 kg</p></div>"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/snomed-code",
          "code" : "61746007",
          "display" : "Taking patient vital signs (procedure)"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "https://ministeriodesalud.go.cr/fhir/receta/CodeSystem/snomed-code",
          "code" : "27113001",
          "display" : "Body Weight"
        }],
        "text" : "Peso"
      },
      "subject" : {
        "reference" : "Patient/98015",
        "display" : "JEFFREY ALEJANDRO ARRIETA GUZMAN"
      },
      "effectiveDateTime" : "2025-05-12T19:25:59Z",
      "valueQuantity" : {
        "value" : 80,
        "unit" : "kg"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  }]
}