Swedish Healthcare Service - Health Condition Description
0.1.0 - CI Build
Sweden
Swedish Healthcare Service - Health Condition Description - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
This page documents the common data types and structures used across multiple service contracts in the domain.
A numeric or alphanumeric string traceable to a single object or entity within a known system.
Structure:
Cardinality:
Data Types:
Validation Rules:
Usage Examples:
Personal Number:
root: 1.2.752.129.2.1.3.1
extension: 197001011234
HSA-ID:
root: 1.2.752.129.2.1.4.1
extension: SE2321000016-1234
Document UUID (no extension):
root: 550e8400-e29b-41d4-a716-446655440000
extension: (empty)
Organization Number:
root: 1.2.752.29.4.3
extension: 2321000016
Rules:
A reference to a concept defined in an external code system (terminology, classification, or ontology).
Structure:
Cardinality Rules:
Validation Rules:
Usage Rules:
code: E11.9
codeSystem: 1.2.752.116.1.1.1.1.3
codeSystemName: ICD-10-SE
displayName: Diabetes mellitus typ 2 utan komplikationer
originalText: Vårdplanerare (lokal roll utan nationell kod)
code: 204010
codeSystem: 1.2.752.129.2.2.1.4
displayName: Distriktsläkare
originalText: Distriktsläkare, primärvård
code: 73211009
codeSystem: 2.16.840.1.113883.6.96
codeSystemName: SNOMED CT
codeSystemVersion: 20230901
displayName: Diabetes mellitus
Examples:
ICD-10 Diagnosis:
code: E11.9
codeSystem: 1.2.752.116.1.1.1.1.3
codeSystemName: ICD-10-SE
displayName: Diabetes mellitus typ 2 utan komplikationer
Professional Role:
code: 204010
codeSystem: 1.2.752.129.2.2.1.4
codeSystemName: KV Befattning
displayName: Distriktsläkare
ATC Medication Code:
code: J01C
codeSystem: 1.2.752.129.2.2.3.1.1
codeSystemName: ATC
displayName: Betalaktamantibiotika, penicilliner
Local Code Without OID:
originalText: Vårdplanerare
Alert Type:
code: UPP04
codeSystem: 1.2.752.129.2.2.1.87
codeSystemName: KV Uppmärksamhetstyp
displayName: Läkemedelsöverkänslighet
Common Code Systems:
| Code System | OID | Typical Codes |
|---|---|---|
| ICD-10-SE | 1.2.752.116.1.1.1.1.3 | E11.9, I10, Z88.0 |
| KV Befattning | 1.2.752.129.2.2.1.4 | 204010, 203090 |
| ATC | 1.2.752.129.2.2.3.1.1 | J01C, A10B |
| SNOMED CT | 2.16.840.1.113883.6.96 | 73211009 |
| KV Uppmärksamhetstyp | 1.2.752.129.2.2.1.87 | UPP01-UPP08 |
Date interval specification. Open intervals allowed.
View DatePeriodType logical model
Structure:
Cardinality:
Data Format:
Validation Rules:
^\d{8}$
^\d{8}$Endpoint Semantics:
Examples:
Specific period (closed interval):
start: 20240101
end: 20241231
→ January 1, 2024 through December 31, 2024
Open-ended from date:
start: 20240601
end: (empty)
→ June 1, 2024 onwards
Open-ended until date:
start: (empty)
end: 20241231
→ All dates up to December 31, 2024
Single day:
start: 20241127
end: 20241127
→ November 27, 2024 only
Last year:
start: 20230101
end: 20231231
Last 12 months (calculated):
start: 20231201
end: 20241130
Usage Patterns:
start: 20200101
end: 20201231
start: 20240101
end: (today's date)
start: (today's date)
end: 20250630
start: (empty)
end: (empty)
Note: Some services may require at least one endpoint
Timestamp interval specification with precision to seconds.
View TimePeriodType logical model
Structure:
Cardinality:
Data Format:
Validation Rules:
^\d{14}$^\d{14}$Precision:
Examples:
Specific time range:
start: 20241127090000
end: 20241127170000
→ Nov 27, 2024 9:00 AM to 5:00 PM
Open-ended from timestamp:
start: 20240615120000
end: (empty)
→ June 15, 2024 12:00 PM onwards
Precise moment (same start/end):
start: 20241127143052
end: 20241127143052
→ Nov 27, 2024 2:30:52 PM exactly
Last 24 hours:
start: 20241126143052
end: 20241127143052
Business hours today:
start: 20241127080000
end: 20241127170000
Usage Patterns:
documentTime: 20241015132547
start: 20230518093000
end: (empty - still valid)
start: 20241127090000
end: 20241127103000
Timezone Handling:
HSA-ID according to Inera AB definition. String value.
Rules:
Person identification using personal number, coordination number, or reserve number.
Structure:
Cardinality:
Identifier Types:
| Type | OID | Format | Example | Usage |
|---|---|---|---|---|
| Personal Number (Personnummer) | 1.2.752.129.2.1.3.1 | YYYYMMDDNNNN | 197001011234 | Citizens, residents |
| Coordination Number (Samordningsnummer) | 1.2.752.129.2.1.3.3 | YYYYMMDDNNNN | 197061611234 | Non-residents |
| SLL Reserve Number | 1.2.752.97.3.1.3 | System-specific | Varies | Emergency ID |
Validation Rules:
^(19|20)\d{10}$^(19|20)\d{2}(0[1-9]|1[0-2])(6[1-9]|[78]\d|9[01])\d{4}$Usage Examples:
Swedish Citizen:
id: 197001011234
type: 1.2.752.129.2.1.3.1
Non-resident with Coordination Number:
id: 197061611234
type: 1.2.752.129.2.1.3.3
Newborn (temporary):
id: 202411271234
type: 1.2.752.129.2.1.3.1
Implementation Notes:
// Personnummer validation
boolean isValid = value.matches("^(19|20)\\d{10}$")
&& luhnCheck(value.substring(2));
// Samordningsnummer validation
boolean isValid = value.matches("^(19|20)\\d{2}(0[1-9]|1[0-2])(6[1-9]|[78]\\d|9[01])\\d{4}$")
&& luhnCheck(value.substring(2));
Information about an organization unit (healthcare facility, department, etc.)
View OrgUnitType logical model
Structure:
Example:
orgUnitHSAId: SE2321000016-1234
orgUnitName: Medicinkliniken
orgUnitTelecom: 08-123456
orgUnitEmail: medicin@example.se
orgUnitAddress: Vårdvägen 1, 123 45 Stad
orgUnitLocation: Huvudsjukhuset
Multimedia object embedded or referenced.
View MultimediaType logical model
Structure:
Rules:
Examples:
Embedded Image:
mediaType: image/jpeg
value: /9j/4AAQSkZJRgABAQEAYABgAAD...
External PDF:
mediaType: application/pdf
reference: https://example.se/documents/12345.pdf
Result of a service operation.
View ResultType logical model
Structure:
| resultCode (1..1) - Operation result: OK | INFO | ERROR |
Result Codes:
| Code | Usage |
|---|---|
| OK | Successful operation, no issues to report |
| INFO | Successful operation with informational message for user |
| ERROR | Logical error occurred (see error handling section) |
Examples:
Success:
resultCode: OK
Success with info:
resultCode: INFO
resultText: "Resultat från 3 av 4 tillfrågade system. Ett system svarade inte inom tidsgräns."
Logical error:
resultCode: ERROR
resultText: "Referensen som skickats i hasMoreReference är ogiltig"
The JoL-header is a common header structure used for reading journal information.
Version: 2.2
The header provides:
Header
├── AccessControlHeader
│ ├── accountableHealthcareProvider (0..1)
│ ├── accountableCareUnit (0..1)
│ ├── patientId (1..1)
│ ├── careProcessId (0..1)
│ ├── blockComparisonTime (1..1)
│ └── approvedForPatient (1..1)
├── sourceSystemId (1..1)
├── record (1..1)
│ ├── id (1..1)
│ └── timestamp (1..1)
├── author (0..1)
│ ├── id (0..1)
│ ├── name (0..1)
│ ├── timestamp (1..1)
│ ├── byRole (0..1)
│ └── orgUnit (0..1)
└── signature (0..1)
├── id (0..1)
├── name (0..1)
├── timestamp (0..1)
└── byRole (0..1)
Contains information needed by consumer to determine if user has access rights.
Key Fields:
Purpose:
record.id - Unique, persistent identifier (UUID in root, extension empty)
record.timestamp - First creation time at producer
Healthcare professional responsible for the information.
Key Fields:
Digital signature information (when signed).
Key Fields:
Note: Per SOSFS 2016:40, unsigned journal entries can no longer be locked. Signature required for locking.
| Code System | OID | Usage |
|---|---|---|
| KV Befattning | 1.2.752.129.2.2.1.4 | Professional roles |
| KV Anteckningstyp | 1.2.752.129.2.2.2.11 | Document note types |
| KV Uppmärksamhetstyp | (subset of KV Informationstyp) | Alert types |
| KV Informationstyp | 1.2.752.129.2.2.2.1 | Information types |
| KV Samband | 1.2.752.129.2.2.2.4 | Relationship types |
| KV Allvarlighetsgrad | 1.2.752.129.2.2.3.3 | Severity grades |
| KV Visshetsgrad | 1.2.752.129.2.2.3.11 | Certainty degrees |
| ATC | 1.2.752.129.2.2.3.1.1 | Medication classification |
| Code System | Usage | Reference |
|---|---|---|
| ICD-10 | Diagnosis codes | Various OIDs per version |
| SNOMED CT | Clinical terminology | Various OIDs per version |
| ICF | Functional classification | 1.2.752.116.1.1.3 |
| System | OID | Format |
|---|---|---|
| Personnummer | 1.2.752.129.2.1.3.1 | 12 digits |
| Samordningsnummer | 1.2.752.129.2.1.3.3 | 12 digits |
| HSA-id | 1.2.752.129.2.1.4.1 | System-specific |
| Organisationsnummer | 1.2.752.29.4.3 | 10 digits |
| Component | GCD | GD | GAI | GFS |
|---|---|---|---|---|
| IIType | ✓ | ✓ | ✓ | ✓ |
| CVType | ✓ | ✓ | ✓ | ✓ |
| DatePeriodType | ✓ | - | - | ✓ |
| TimePeriodType | - | ✓ | ✓ | - |
| PersonIdType | ✓ | ✓ | ✓ | ✓ |
| OrgUnitType | ✓ | ✓ | ✓ | ✓ |
| MultimediaType | ✓ | - | - | - |
| ResultType | ✓ | ✓ | ✓ | ✓ |
| JoL-Header | ✓ (v2.2) | - | - | - |
| PatientSummaryHeader | - | ✓ (v1.0) | ✓ (v1.0) | ✓ (v1.0) |
Legend: GCD=GetCareDocumentation, GD=GetDiagnosis, GAI=GetAlertInformation, GFS=GetFunctionalStatus