{
  "resourceType": "Bundle",
  "id": "example-digidot-contact-note-allergy-medication",
  "type": "collection",
  "entry": [
    {
      "fullUrl": "https://example.org/fhir/Patient/example-patient",
      "resource": {
        "resourceType": "Patient",
        "id": "example-patient",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Patient"
          ]
        },
        "name": [
          {
            "family": "Example",
            "given": [
              "Patient"
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Organization/example-dental-clinic",
      "resource": {
        "resourceType": "Organization",
        "id": "example-dental-clinic",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
          ]
        },
        "name": "Example dental clinic"
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Location/example-dental-location",
      "resource": {
        "resourceType": "Location",
        "id": "example-dental-location",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Location"
          ]
        },
        "name": "Example treatment room",
        "managingOrganization": {
          "reference": "Organization/example-dental-clinic"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Encounter/example-digidot-encounter-minimal",
      "resource": {
        "resourceType": "Encounter",
        "id": "example-digidot-encounter-minimal",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no"
          ]
        },
        "identifier": [
          {
            "system": "urn:novari:example:encounter",
            "value": "minimal-contact-001"
          }
        ],
        "status": "finished",
        "class": {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code": "AMB"
        },
        "subject": {
          "reference": "Patient/example-patient"
        },
        "participant": [
          {
            "type": [
              {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                    "code": "PPRF"
                  }
                ]
              }
            ],
            "individual": {
              "type": "Practitioner",
              "reference": "Practitioner/demo-practitioner-9e6ccd1cc9fa"
            }
          }
        ],
        "period": {
          "start": "2026-09-07T07:45:00+00:00",
          "end": "2026-09-07T08:00:00+00:00"
        },
        "location": [
          {
            "location": {
              "reference": "Location/example-dental-location"
            }
          }
        ],
        "serviceProvider": {
          "reference": "Organization/example-dental-clinic"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Practitioner/demo-practitioner-9e6ccd1cc9fa",
      "resource": {
        "resourceType": "Practitioner",
        "id": "demo-practitioner-9e6ccd1cc9fa",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner"
          ]
        },
        "identifier": [
          {
            "system": "urn:oid:2.16.578.1.12.4.1.4.4",
            "value": "123456789"
          }
        ],
        "active": true
      }
    },
    {
      "fullUrl": "https://example.org/fhir/AllergyIntolerance/contact-note-reported-allergy",
      "resource": {
        "resourceType": "AllergyIntolerance",
        "id": "contact-note-reported-allergy",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no"
          ]
        },
        "identifier": [
          {
            "system": "https://novari.no/fhir/digidot/identifier/allergy-intolerance",
            "value": "contact-note-allergy-example-001"
          }
        ],
        "clinicalStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
              "code": "active",
              "display": "Active"
            }
          ]
        },
        "verificationStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
              "code": "confirmed",
              "display": "Confirmed"
            }
          ]
        },
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "version": "http://snomed.info/sct/51000202101/version/20260915",
              "code": "111088007",
              "display": "Latex (substance)"
            }
          ]
        },
        "patient": {
          "reference": "Patient/example-patient"
        },
        "encounter": {
          "reference": "Encounter/example-digidot-encounter-minimal"
        },
        "recordedDate": "2026-09-07T07:50:00+00:00",
        "recorder": {
          "type": "Practitioner",
          "reference": "Practitioner/demo-practitioner-9e6ccd1cc9fa"
        },
        "asserter": {
          "type": "Practitioner",
          "reference": "Practitioner/demo-practitioner-9e6ccd1cc9fa"
        },
        "note": [
          {
            "text": "The latex allergy is confirmed in a note from the patient's general practitioner."
          }
        ]
      }
    },
    {
      "fullUrl": "https://example.org/fhir/MedicationStatement/contact-note-reported-medication",
      "resource": {
        "resourceType": "MedicationStatement",
        "id": "contact-note-reported-medication",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no"
          ]
        },
        "medicationCodeableConcept": {
          "text": "Amlodipine, reported by the patient; product details not confirmed."
        },
        "status": "active",
        "subject": {
          "reference": "Patient/example-patient"
        },
        "context": {
          "reference": "Encounter/example-digidot-encounter-minimal"
        },
        "informationSource": {
          "reference": "Patient/example-patient"
        },
        "dateAsserted": "2026-09-07T07:50:00+00:00",
        "dosage": [
          {
            "timing": {
              "repeat": {
                "frequency": 1,
                "period": 1,
                "periodUnit": "d"
              }
            },
            "asNeededBoolean": false,
            "doseAndRate": [
              {
                "doseQuantity": {
                  "value": 1,
                  "unit": "tablet"
                }
              }
            ]
          }
        ],
        "note": [
          {
            "text": "Prescribed by medical doctor in Spain."
          }
        ]
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Composition/contact-note-allergy-medication",
      "resource": {
        "resourceType": "Composition",
        "id": "contact-note-allergy-medication",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no|0.4.11"
          ]
        },
        "identifier": {
          "system": "urn:novari:example:dental-contact-note",
          "value": "allergy-medication-note-001"
        },
        "status": "final",
        "type": {
          "coding": [
            {
              "system": "urn:oid:2.16.578.1.12.4.1.1.9602",
              "code": "B02-2"
            }
          ]
        },
        "subject": {
          "reference": "Patient/example-patient"
        },
        "encounter": {
          "reference": "Encounter/example-digidot-encounter-minimal"
        },
        "date": "2026-09-07T08:15:00+00:00",
        "author": [
          {
            "type": "Practitioner",
            "reference": "Practitioner/demo-practitioner-9e6ccd1cc9fa"
          }
        ],
        "title": "Dental contact note with allergy and medication context",
        "section": [
          {
            "text": {
              "status": "additional",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Dental examination completed. The existing latex allergy record was reviewed. The patient reported taking amlodipine once daily; product details were not confirmed. The supporting records preserve the allergy information and reported medication use.</p></div>"
            },
            "entry": [
              {
                "reference": "AllergyIntolerance/contact-note-reported-allergy"
              },
              {
                "reference": "MedicationStatement/contact-note-reported-medication"
              }
            ]
          }
        ]
      }
    }
  ]
}