Simplifier logo

Confirmation

Are you sure?
Simplifier.net
SNIPPETS FEEDBACK LOG IN SIGN UP

Jurisdiction Sweden
Project NPCR_Anmälan_FHIR
Query
  • Default
    What is FQL?

    FQL is a query language that allows you to retrieve, filter and project data from any data source containing FHIR Resources. It brings the power of three existing languages together: SQL, JSON and FhirPath. It allows you to create tables and is useful for gaining insight and perform quality control.

  • FQL Query resources
    FQL Playground

    Try Firely Query Language in our playground by using this scope as data source.

  • FQL Documentation
  • FQL Language
    Syntax specification

    To learn more about FQL syntax choose this menu item.

  • YamlGen Generate resources
    YamlGen Playground

    Try YamlGen in our playground by using this scope as data source.

  • YamlGen Language
    YamlGen Syntax specification

    To learn more about YamlGen syntax choose this.

  • FHIRPath Inspect resource
    FHIRPath Playground

    Try out the FHIRPath playground and navigate inside this resource.

  • FHIRPath Documentation
    FHIRPath Documentation

    Find out what FHIRPath is or learn how to write FHIRPath scripts.

API
  • FHIR

    Get this resource using a FHIR client.

  • Embed

    Embed this resource in your own website. How?

Tools
  • Custom Example generation
    Custom Example generation beta

    Experiment with resource instance generation using YamlGen and based on this profile.

    This feature is in beta. You can help us improve it by giving feedback with the feedback button at the top of the screen.

Download
  • Download as XML
  • Download as JSON
  • Download snapshot as XML
  • Download snapshot as JSON
  • Copy to clipboard as XML
  • Copy to clipboard as JSON

NPCR_Specialist_Visit_Encounter

Profile for the first specialist visit (Datum för 1:a besök på specialistmottagning) in NPCR Anmälan, based on Section 7.2.1 of InformationsspecifikationNPCRdiagnostik v1.6 and NPCR Manual för inrapportörer.

Source variable covered:

  • D_specmottdatum (Datum för 1:a besök på specialistmottagning) → Encounter.period.start

Per NPCR Manual: "Ange datum för första besök på den mottagning som tar den första mellannålsbiopsin som säkerställer diagnosen prostatacancer. Om patienten är inneliggande, ange datum för inskrivning på vårdavdelning." This dual ambulatory/inpatient nature is reflected by leaving Encounter.class unconstrained (Must Support but not fixed).

Service contract: GetActivities NKRR rule (Info Spec §7.2.1): Search from provtagningsdatum − 6 months (183 days) backward; primary lookup by KVÅ code, fallback to NPCR Kvalitetsregisterkod. If a KVÅ code exists in the interval, use the first one. If both KVÅ and Kvalitetsregisterkod exist, prefer KVÅ. If only Kvalitetsregisterkod exists across multiple dates, leave blank for manual entry.

Information model note: NPCR Information Specification models this event as Aktivitet (activity), reflecting the NKRR-level abstraction inherited from HL7 v3 RIM where event-class information falls under the Act/Aktivitet category. FHIR provides a more granular event taxonomy: this Profile maps the NPCR Aktivitet to FHIR Encounter, because the clinical semantic — a patient's first contact with the specialist clinic, including potential inpatient admission — corresponds directly to FHIR's Encounter resource. The KVÅ code VJ125, used in NPCR Aktivitet to identify this event, is placed in Encounter.type, which carries the same semantic role as Procedure.code or Activity.code in FHIR.

Documentation finding (Info Spec §7.2.1): The attribute table lists kodsystem 1.2.752.129.2.2.3.23 (Kvalitetsregisterkod) for both VJ125 and 484. However, VJ125 follows the KMÅ-structure naming convention (2 letters + 3 digits) and is documented in RCC SVF Kodningsvägledning as "SVF prostatacancer - första besök i specialiserad vård" — a Socialstyrelsen KVÅ code. This Profile follows the NKRR rule narrative (KVÅ vs Kvalitetsregisterkod) rather than the attribute table literal, slicing Encounter.type into two codings: KVÅ (required) and Kvalitetsregisterkod (optional).

Out of scope: Variables D_SjhKlin, D_Sjhkod, D_KlinKod are reporting form metadata (auto-populated from INCA login HSA-id per NPCR Manual page 37) and not clinical encounter data.

  • type Profile on Encounter
  • FHIR R4
  • status Draft
  • version
    ...
  Missing canonical claim

The canonical from this resource does not match any claims.

Canonical claims are used to verify ownership of your canonical URLs.
 Canonical
  • Overview
  • Details
  • Mappings
  • Table
  • XML
  • JSON
  • Related
  • History
  • Issues
  • Narrative

Documentation:
https://simplifier.net/npcr-fhir/npcr_specialist_visit_encounter
Last updated on 2026-04-22 12:29

About

About Simplifier
About Firely
Learn more
Contact

Information

Documentation
Terms
Privacy
Vulnerability disclosure policy
Features
Pricing
Status

Follow us

Github
Twitter
Youtube

Links

FHIR DevDays
FHIR specification R5
FHIR specification R4B
FHIR specification R4
FHIR specification STU3
FHIR specification DSTU 2
FHIR Server

SIMPLIFIER.NET version 2026.2.1.0

Copyright © 2015-2026 Firely

HL7® and FHIR® are the registered trademarks of Health Level Seven International