Skip to main content
Squire’s FHIR interface delivers consultation data as structured FHIR R4 resources, so you can ingest it directly into any FHIR-compatible system without building a custom mapping layer. Each consultation produces a FHIR bundle containing the clinical data captured during the session.

FHIR bundle structure

Squire wraps all resources from a single consultation in a FHIR bundle of type collection.
{
  "resourceType": "Bundle",
  "type": "collection",
  "entry": [
    {
      // FHIR resource 1
    },
    {
      // FHIR resource 2
    }
  ]
}
The entry array contains one resource per clinical finding. The number and type of resources vary depending on what was discussed during the consultation.

Resource types

Squire produces four FHIR R4 resource types. The level of detail within each resource depends on how much clinical information was captured during the session.

Observation

Observation resources represent measurements and other observations made during the consultation.
{
  "resourceType": "Observation",
  "status": "final",
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "29463-7",
        "display": "Body weight"
      }
    ],
    "text": "Body weight"
  },
  "subject": {
    "reference": "Patient/example"
  },
  "effectiveDateTime": "2025-01-01T10:00:00+00:00",
  "performer": [
    {
      "reference": "Practitioner/example",
      "display": "Dr. John Smith"
    }
  ],
  "valueQuantity": {
    "value": 68,
    "unit": "kg",
    "system": "http://unitsofmeasure.org",
    "code": "kg"
  }
}

Condition

Condition resources represent diagnoses and other conditions assessed during the consultation.
{
  "resourceType": "Condition",
  "code": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "38341003",
        "display": "Hypertension"
      }
    ],
    "text": "Hypertension"
  },
  "subject": {
    "reference": "Patient/example"
  },
  "encounter": {
    "reference": "Encounter/example"
  },
  "onsetDateTime": "2025-01-01",
  "recordedDate": "2025-01-01",
  "recorder": {
    "reference": "Practitioner/example",
    "display": "Dr. John Smith"
  }
}

Procedure

Procedure resources represent clinical procedures performed during the consultation.
{
  "resourceType": "Procedure",
  "status": "completed",
  "category": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "103693007",
        "display": "Diagnostic procedure"
      }
    ],
    "text": "Minor surgical procedure"
  },
  "subject": {
    "reference": "Patient/example"
  },
  "performedPeriod": {
    "start": "2025-01-01T11:00:00+01:00",
    "end": "2025-01-01T11:30:00+01:00"
  },
  "encounter": {
    "reference": "Encounter/example"
  },
  "bodySite": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "83738005",
          "display": "Finger structure"
        }
      ],
      "text": "Right index finger"
    }
  ],
  "outcome": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/procedure-outcome",
        "code": "successful",
        "display": "Successful"
      }
    ],
    "text": "Wound cleaned and sutured successfully"
  },
  "followUp": [
    {
      "text": "Stitch removal in 10 days, monitor for infection"
    }
  ]
}

MedicationRequest

MedicationRequest resources represent prescriptions issued during the consultation.
{
  "resourceType": "MedicationRequest",
  "status": "active",
  "intent": "order",
  "medicationCodeableConcept": {
    "coding": [
      {
        "system": "https://www.ehealth.fgov.be/standards/fhir/CodeSystem/cnk",
        "code": "1234567",
        "display": "Paracetamol EG 1g Tablet"
      }
    ]
  },
  "subject": {
    "reference": "Patient/example"
  },
  "authoredOn": "2025-01-01",
  "dosageInstruction": [
    {
      "text": "Take 1 tablet orally every 6 hours as needed for pain",
      "timing": {
        "repeat": {
          "frequency": 4,
          "period": 1,
          "periodUnit": "d"
        }
      },
      "route": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "26643006",
            "display": "Oral route"
          }
        ]
      },
      "doseAndRate": [
        {
          "doseQuantity": {
            "value": 1,
            "unit": "tablet",
            "system": "http://unitsofmeasure.org",
            "code": "{tbl}"
          }
        }
      ]
    }
  ]
}

Country-specific resources

Squire supports country-specific FHIR implementations. Currently, Squire provides extensions for eHealth Belgium FHIR Resources. Contact your Squire integration team for details on enabling country-specific extensions for your deployment.