DocumentationSupportCosta Rica · Contact
The starting point

An architecture is not a diagram: it is a set of decisions with an owner

Almost no institution starts from zero. It has a health record, a laboratory, a PACS, a portal and a backlog of pending projects. The trouble starts when new pieces have to be brought in — a master patient index, a product catalogue, credential and facility validation — and nobody can say precisely where they should live, who maintains them, what they expose outward or how they connect to the national exchange platform. Our job is to close those decisions and write them down, in enough detail to procure, build and audit against.

Planes

From governance to technical availability

Four planes, and none of them gets resolved by the next one. When an organization jumps straight to the technology plane, it ends up with correct components that nobody knows how to operate and nobody answers for.

Governance

Who decides, who approves, and how does a decision get changed?

What gets decided here
  • Owner of every component and every data domain
  • The architecture board's actual remit
  • Decision record and the route for approving an exception
  • Versioning policy and change windows
Who answers for itInstitutional leadership and enterprise architecture

Information

What does each piece of data mean, and what is its source of truth?

What gets decided here
  • Authoritative source per domain
  • Canonical model and adopted terminologies
  • Identity rules and duplicate handling
  • Retention, classification and traceability
Who answers for itData governance and clinical teams

Application

Which components exist, and what contract does each one meet?

What gets decided here
  • Component catalogue and its boundaries
  • Service contracts and the FHIR profiles behind them
  • What to buy, what to build and what to reuse
  • Integration patterns allowed — and forbidden
Who answers for itSolution architecture and vendors

Technology and operations

Where does it run, how is it protected, and how is it sustained?

What gets decided here
  • Network zones and segmentation
  • Availability, backup and recovery
  • Observability, auditing and alerting
  • Environments, deployment and secret management
Who answers for itInfrastructure, security and operations
Components

The pieces you have to place, and the decision each one drags in

This is not a shopping list. Each component solves a concrete problem and drags in a decision that usually has no owner until some project closes it on its own terms.

Zone · Internal network

Master Patient Index

Answers whether two records in two different systems are the same person, and keeps the link between their identifiers.

The decision it drags in

Whether matching is deterministic on the national identifier, probabilistic, or both with a human review queue; and which system owns the master identifier.

Zone · Internal network

Product and medicines catalogue

Gives every medicine, supply and device a stable identifier, so prescribing, dispensing and inventory are talking about the same product.

The decision it drags in

Whether to adopt the national catalogue, an international one or your own, and how to map what is already loaded in the systems without losing history.

Zone · Internal network

Practitioner registry and validation

Confirms that whoever signs a clinical act is licensed to do so, at the moment they do it.

The decision it drags in

Whether validation is queried live against the authoritative source — the professional board or the national registry — or replicated locally, and what happens when that source does not respond.

Zone · Internal network

Facility and service registry

Uniquely identifies every site, service and unit, which is what makes it possible to route, report and audit by location.

The decision it drags in

Which coding is used — the national health licensing scheme or another — and who updates the registry when a site opens, changes services or closes.

Zone · Internal network

Terminology service

Publishes and validates the CodeSystems, ValueSets and ConceptMaps the systems use, instead of leaving every code table embedded in every application.

The decision it drags in

Whether to run your own terminology server or consume the national one, and how to version a ValueSet without invalidating data already captured.

Zone · Internal network

Clinical and document repository

Keeps what has to be kept — FHIR resources, documents, images — with a retention policy and a tested way to get it back. It is the source of truth, which is why it is never exposed directly.

The decision it drags in

Which content is the source of truth here and which is a copy of another system, because that determines who may write to it and what is lost if it goes down.

Zone · Internal network

Audit and traceability

Records who accessed what, when and on what grounds. The exposure point emits the event, but the record is kept here and append-only: whoever reaches the boundary must not be able to rewrite the evidence of their own access.

The decision it drags in

Whether auditing lives in each system or is centralized, and how long you keep a record that may end up being evidence.

Zone · DMZ

Identity, consent and authorization

Determines who is asking, on whose behalf, and what they are entitled to reach — for people and for systems alike.

The decision it drags in

What system identity can settle and what requires the identity of the human user, and where consent is recorded when data leaves the institution.

Zone · DMZ

Publication repository

The profile-conformant copy that answers external queries: only what has already been published, materialized from the source of truth and rebuildable at any time.

The decision it drags in

What gets materialized, how fresh it has to be, and how it is rebuilt from the source when the profile changes. If this copy becomes the only one, it has stopped being a copy.

Zone · DMZ

Exposure and exchange point

The single door through which the institution publishes and consumes information outward: API gateway, FHIR layer, national network node.

The decision it drags in

What gets exposed, under which profile and to whom; and whether that door stores data or only lets it through.

Yours or the country's?

Several of these components are emerging as public infrastructure: a national index, a national product catalogue, a national terminology service. Their existence does not remove the decision, it changes it. You still have to define which one is authoritative, what is held locally so you can operate offline, and how local and national are reconciled when they disagree. Designing as if the national component will never arrive is expensive; designing as if it were already there is expensive too.

Zones

Internal network, DMZ and national network

The question most often postponed is where each component lives. And it is not an infrastructure question: it decides what can be exposed, what has to be replicated, and which controls are mandatory at each point.

National network

Outside your perimeter

The space where your institution is one member among many: providers, state registries and the national exchange platform. You do not administer it, but you do decide how you present yourself to it.

The rule

Nothing is published here without an explicit contract: profile, terminology, requester identity and a record of the transaction.

  • Other providers
  • State registries
  • National exchange platform
  • Service directory
  • Transaction log

DMZ

The controlled boundary

The only zone reachable from outside. This is where the components that talk to the outside world live — and only those. Everything passing through is authenticated, authorized and logged.

The rule

Nothing living here is a source of truth. The DMZ translates, routes and publishes rebuildable copies of what has already been authorized, with no direct access to the internal databases.

  • Identity, consent and authorization
  • Publication repository
  • Exposure and exchange point

Internal network

Where the data lives

The health record, the repositories, the master index, terminology and auditing. None of it is exposed directly; it is reached only through the DMZ.

The rule

No external system reaches in here, and no internal component reaches out to the internet on its own.

  • Master Patient Index
  • Product and medicines catalogue
  • Practitioner registry and validation
  • Facility and service registry
  • Terminology service
  • Clinical and document repository
  • Audit and traceability

What crosses each boundary

A boundary is not defined by where the firewall sits, but by what is allowed across it and on what proof.

Internal network ↔ DMZ

What crosses

Queries and responses from the internal components serving an external request, already reduced to what that request needs.

Under what control

Connections initiated from the inside, service accounts with least privilege, different credentials per environment, and the result logged.

DMZ ↔ National network

What crosses

Resources that conform to a published profile with its terminology bound, and only toward identified, authorized requesters.

Under what control

Mutual authentication between systems, authorization per use case rather than per whole system, signing and sealing where the data carries evidentiary weight, and a log of every message.

How X-Road fits in

In Costa Rica the national exchange platform is X-Road. Fitting it into the architecture changes less than people fear and more than they plan for.

Your own node in the DMZ

The institution installs its own security server. It is the only component that talks to the national network; none of your other systems ever does so directly.

Membership and system identity

Every organization and every subsystem is registered and issued certificates. The network knows who is asking before the question reaches you.

A signed record of every message

The platform signs and time-stamps what passes through it. That settles non-repudiation, but it also forces you to decide what you send: whatever crosses is on the record.

Data is not centralized

There is no national database holding everything. Each institution remains the owner of its information and answers specific queries.

Meddyg runs proofs of concept with Costa Rica's National Digital Government Agency to validate FHIR resource transactions over X-Road, as part of the country's functional interoperability demonstration. In other countries the platform has a different name; the architectural decisions you have to close — where the node goes, what is exposed, who authorizes and what is logged — are the same.

What we build on

Your architecture does not start on a blank page

We work on models already proven in other countries and ecosystems. For your institution that means three concrete things: fewer months arguing about what is already settled, an architecture the rest of the ecosystem recognizes, and requirements you can put in a tender and enforce.

Digital Public Infrastructure for health

What it saves you

Building in-house what the country is about to provide, and paying for it twice.

What your project gets

We tell you what is worth reusing and what to build, and hand you the open-standards and portability requirements to enforce in every procurement. That is what keeps you from finding out three years later that you cannot change vendors.

OpenHIE and IHE

What it saves you

Half a year spent arguing about what each component is called and who answers for it.

What your project gets

Your architecture ends up named in the same vocabulary the rest of the ecosystem uses. When it is time to integrate, the conversation starts at the right point instead of in the glossary.

HL7 FHIR and national profiles

What it saves you

Discovering mid-implementation that the component you already bought cannot meet the national profile.

What your project gets

We turn the profile the national guide requires into a verifiable architectural requirement, before you buy. If a product does not meet it, you find out while you can still change product.

WHO SMART Guidelines

What it saves you

Every team interpreting the clinical guideline its own way, leaving you with five versions of the same process.

What your project gets

We bring the guideline down to the system along a proven route: from the document to the processes and data, from there to the FHIR profile, and from there to something testable before production. If your domain already has a published DAK, you skip the slowest stage of the project.

The route, in five steps
  1. L1 · The guideline, as the ministry or the WHO publishes it
  2. L2 · DAK: processes, data, indicators and requirements already sorted out
  3. L3 · The FHIR guide: profiles, terminology and rules the software understands
  4. L4 · Tested against real cases before going to production
  5. L5 · What is learned in use goes back into the guideline
Cybersecurity

Moving forward without opening a hole

Risk does not appear when you adopt standards; it appears when you expose a system that was designed to live inside a closed network. These are the guardrails we define alongside the architecture, not after it.

Exposing the system instead of the use case

The real risk

An API over the entire health record gets published because it was faster than defining the exchange.

The guardrail

One use case is exposed at a time, with its profile and its scope. What is not in a published contract cannot be asked for.

Trusting the network instead of the identity

The real risk

Any system already inside can query anything, because the network is considered safe.

The guardrail

System and end-user authentication on every call, permissions per use case, and different credentials per environment.

Auditing bolted on at the end

The real risk

When you have to answer who accessed a record, the information is scattered across logs that have already rotated.

The guardrail

The access log is designed as a component, with defined retention and its own query path, from the first exchange onward.

Whole records where one field was enough

The real risk

The entire resource is returned because the consumer will “filter later”, and that copy is now out of your control.

The guardrail

Minimization by design: each exchange defines its minimum set, and the response is trimmed at the exposure point.

Information with no evidentiary weight

The real risk

An exchanged clinical document cannot prove who issued it or that it was not altered.

The guardrail

Signing and sealing on the exchanges that require it. Meddyg provided technical assistance to the Banco Central de Costa Rica to enable JAdES signing of FHIR resources.

Environments that bleed into each other

The real risk

Testing happens against production because the test environment has nothing resembling real data.

The guardrail

Separate environments with synthetic or anonymized data, controlled promotion, and different secrets in each one.

Method

Seven decisions, in this order

Each phase closes a question and leaves an artefact behind. An architecture with no artefacts cannot be procured, built or audited.

  1. 01

    Current state

    What is there today, who operates it, and what is actually being exchanged?

    We inventory systems, live integrations, clinical flows and standing contracts. Not what the diagram says: what is running.

    What it leaves behind
    • Inventory of systems and integrations
    • Map of clinical and data flows
    • Technical debt and vendor dependencies
  2. 02

    Use cases and requirements

    What does the organization need to be able to do that it cannot do today?

    We prioritize exchanges by clinical value and feasibility, and write them up as functional and non-functional requirements. Where a WHO DAK exists for the domain, we take it as the starting point.

    What it leaves behind
    • Prioritized use cases
    • Functional and non-functional requirements
    • Acceptance criteria per case
  3. 03

    Target architecture

    Which components exist in the desired state, and what contract does each one meet?

    We define the component catalogue, their responsibilities and their boundaries, with the profiles and terminologies each one has to conform to.

    What it leaves behind
    • Component and responsibility diagram
    • Service contracts and associated profiles
    • Buy, build or reuse decision
  4. 04

    Zones, security and exposure

    Where does each component live, and what crosses each boundary?

    We place each component in its zone, define the controls on each boundary and the single exposure point toward the national network.

    What it leaves behind
    • Zone and segmentation model
    • Per-boundary controls and access matrix
    • Exposure point design
  5. 05

    Governance and decisions

    Who answers for each component, and how does a decision get changed?

    We assign owners, define the architecture decision record and the route for approving an exception without the exception becoming the norm.

    What it leaves behind
    • Architecture decision records
    • Owners per component and per data domain
    • Versioning policy and change windows
  6. 06

    Roadmap

    In what order does it get built, and what can go to production first?

    We sequence the work into increments that can be released and measured, starting with the one that solves a real exchange rather than the one that is biggest.

    What it leaves behind
    • Roadmap by increment
    • Dependencies and risks per milestone
    • Effort estimate and required profiles
  7. 07

    Ongoing support

    Is what was defined actually what is being built?

    We review vendor deliverables against the defined contracts and adjust the architecture when reality demands it — with the decision on record.

    What it leaves behind
    • Conformance reviews
    • Updated, traceable decisions
    • Handover to the internal team
Deliverables

What the organization is left holding

Documents you can procure, build and audit against — not something presented once and then filed away.

Architecture document

Current state, target architecture, components and their contracts, at the level of detail a tender document demands.

Zone and exposure model

What lives in each zone, what crosses each boundary and under what control, and how the organization connects to the national platform.

Component catalogue

Every component with its responsibility, its owner, its contract and the buy, build or reuse decision behind it.

Decision record

Each decision with its context, the alternatives weighed and the consequence accepted. It is what keeps the same argument from returning every year.

Security and conformance requirements

Per-boundary controls, access matrix, audit and signing requirements, written so they can be demanded contractually.

Prioritized roadmap

Releasable increments, dependencies, risks and the order worth building in so something reaches production early.

Cases

Architectures that run

Architecture is not the diagram you hand over: it is what is still working three years later. These are projects where Meddyg defined or built the architecture that stayed in operation.

The architectural decisionSingle exposure point

National exchange over X-Road

Proofs of concept with the National Digital Government Agency to validate FHIR resource transactions over the national platform, within Costa Rica's functional interoperability demonstration: secure exchange between different systems, without centralizing the data.

The architectural decisionThe repository as a component

First national FHIR server for EDUS/CCSS

Design, production deployment and operation of the first FHIR server receiving notifiable disease, vaccination and laboratory result notifications from EDUS/CCSS, and later from other health facilities.

The architectural decisionEvidentiary weight of the exchange

Digital signing of FHIR resources with the BCCR

Technical assistance to the Banco Central de Costa Rica to integrate the JAdES format within GAUDI, its digital signing and sealing platform, enabling the signing of FHIR resources.

The architectural decisionZones and clinical storage

PACS/DICOM architectures in public hospitals

Implementation of PACS architectures and diagnostic workstations for medical image exchange under the DICOM standard, in public hospitals of the Dominican Republic's National Health Service.

The models we name on this page are the method we work with, not clients. When a case belongs to a client, we say so by name — as with the four above.

Who it is for

Who needs these decisions closed

The service serves both those defining an architecture for the first time and those who already have one written and need to connect it to the ecosystem.

Public health institutions

Social security funds, ministries and hospitals that have to take on national components and connect to the country's exchange platform.

Private providers and networks

Hospitals, clinics and laboratories that need to take part in the ecosystem without rebuilding their systems or opening up their network.

IT and enterprise architecture teams

Teams that already hold the mandate to define the architecture and need decisions closed and defensible.

Information security

Leaders who have to enable exchange without widening the institution's exposure surface.

Health software vendors

Manufacturers that have to conform to a national profile and show how their product fits into the client's architecture.

National digital health programmes

Initiatives that need a shared reference architecture so each institution does not solve it its own way.

Self-assessment

Signs the architecture still has not been defined

Every project defines its own integration, and no two look alike.
Nobody can say with certainty which system is the source of truth for a clinical data point.
You are being asked to connect to the national platform and you do not know which component should do it.
New components — master index, catalogue, terminology — get discussed without deciding whether they are yours or the country's.
Security blocks exchanges because the only option ever put in front of them is exposing the whole system.
Architecture diagrams exist, but not one decision is written down with its context and its owner.

If you recognize three or more, the problem is not technological: these are open decisions that each project is closing on its own, differently every time.

What should you build, and what will the country give you?

We define the architecture your organization needs to operate today and connect tomorrow, with the decisions written down, the components placed and the security guardrails set from the design stage.