Skip to content

Photos Libres

Articles without photos

Where to Find the CIP Code on Your Health Card and What It’s For

The CIP code on a health card is not a single, uniform identifier across the country. Spain’s healthcare system operates with…

Mujer de mediana edad sosteniendo su tarjeta sanitaria y señalando el código CIP impreso en el anverso de la tarjeta

The CIP code on a health card is not a single, uniform identifier across the country. Spain’s healthcare system uses two different identifiers: the regional CIP (CIP-A), assigned by each regional health service, and the CIP-SNS, a national code that links regional identifiers to ensure interoperability between autonomous communities. Both appear on the front of the card, but their format, length and name vary depending on the issuing autonomous community.

Regional CIP vs. CIP-SNS: which code is required for each healthcare procedure?

Confusion most often arises when a mobile app or administrative form asks for “the CIP” without specifying which one. The code visible on the front of the card is usually the regional CIP, made up of a combination of letters and numbers in a format defined by each autonomous community.

The CIP-SNS, by contrast, is the shared identifier that allows the National Health System to link records across regions. It does not always appear under the same label on the card, and some older card designs do not show it explicitly at all.

If a digital service asks for a code that differs in length or format from the one on your card, it is most likely requesting the CIP-SNS rather than the regional CIP. To confirm this, if you need to know where to find the CIP on your health card and check which of the two identifiers you need, the most direct option is to visit your autonomous community’s health portal or contact your primary care centre.

  • The regional CIP identifies users within their regional health service and is used to book appointments at their assigned centre.
  • The CIP-SNS serves as an interoperability key and is required to dispense electronic prescriptions outside the patient’s home region.
  • Some autonomous communities call the regional code “CIPA” (Autonomous Community Personal Identification Code), adding another layer of terminological confusion even though the underlying data remains the same.

Man handing his health card with the CIP code to a pharmacist at a pharmacy counter

Where to find the CIP code on cards from different autonomous communities

Royal Decree 702/2013 established a standard format for individual health cards, stating that both the CIP-AUT and the CIP-SNS should appear on the front. Years later, however, their exact location still varies depending on the card design used by each autonomous community.

On most cards issued after the decree came into force, the regional CIP appears in the centre or upper-right area of the front, while the CIP-SNS is printed below it or next to the barcode. Older cards may show only the regional code.

Do not expect to find the same label on every card. Some autonomous communities label the field “CIP,” others “CIPA,” while others simply display the number next to the cardholder’s name without an explicit label. The length also varies: in some regions, the regional code consists of ten digits, while in others it combines letters and numbers and varies in length.

Interoperable electronic prescriptions: why it matters which CIP you use

The clearest example of when the distinction between the two codes matters is dispensing an electronic prescription outside the patient’s home autonomous community. When patients need to collect medication prescribed electronically in another region, they must present their individual health card and state where the prescription was issued.

In this situation, the SNS interoperability system uses the CIP-SNS to locate the prescription in the national database. If patients provide only their regional CIP, the pharmacy may not be able to find the record in the interoperable system.

Interoperable electronic prescriptions are now available nationwide, making this a routine procedure for people who travel or temporarily live outside their home region. Knowing the code by heart is not enough: presenting the physical or virtual card is what ensures correct identification.

Virtual health cards and verifying the CIP code

The Ministry of Health has published documentation on a proposed amendment to Royal Decree 183/2004 that would allow physical or virtual cards to be used across the SNS, with specifications for a QR code. This is a draft regulation under preparation, not a system that has already been implemented uniformly across all autonomous communities.

Several autonomous communities already offer a digital version of the health card through their health apps. In these virtual versions, the regional CIP is usually displayed prominently on the main screen, while the CIP-SNS may require opening a section with more detailed information.

If an app or online procedure rejects the code you enter, check the following:

  • Check whether the service asks for the regional CIP or the CIP-SNS, as the field may be labelled ambiguously.
  • Compare the code on your physical card with the one shown in your regional health app, as data updates may have generated a new identifier.
  • If your physical card predates the standard format established by Royal Decree 702/2013, it may contain only the regional code and not the CIP-SNS.
  • Contact your primary care centre to verify both codes and, if necessary, request an updated card.

CIP code structure by identifier type

Feature Regional CIP (CIP-A / CIPA) CIP-SNS
Issued by Health service of each autonomous community National Health System
Format Varies by autonomous community (letters and numbers, varying length) Common format and length across the country
Location on card Centre or upper area of the front Next to the barcode or in the lower area of the front
Main use Identification within the regional health service Interoperability between autonomous communities and electronic prescriptions

The distinction between these two identifiers is the technical detail that resolves most problems when a code “doesn’t work” in a digital procedure. Before assuming there is an error with the card, check which type of CIP the specific service requires, as the answer almost always comes down to this difference.

Where to Find the CIP Code on Your Health Card and What It’s For