Patient administration

HL7-segmenter

Formål

HL7 beskeder og events

QRY^A19

ADR^A19

ADT^A28

ADT^A34

Resources

Changelog

Changelog last updated 2012-02-22

Formål

Patient administration snitfladen gør det muligt via HL7 at få overført nye og opdaterede informationer omkring patienten. Det drejer sig primært om oplysninger tilknyttet CPR, men også information omkring egen læge.

Patientens data er tilgængelig via regionens CPR-komponent. Komponenten indeholder alle CPR-numre på borgere i region Syddanmark, hvilket inkluderer de tilstødende kommuner (eks: Horsens) til region Midtjylland.

Derudover kan der forespørges på de CPR-numre som regionen har tegnet abonnement på, hvilket eksempelvis vil sige CPR-numre på de patienter udenfor regionen som har været i behandling på et af regionens sygehuse. 

Det er som minimum nødvendigt, at man i forespørgslen benytter et brugernavn, password

Følgende HL7 scenarier understøttes pt. i forhold adgang til patientrelateret information. 

Scenarie 1 - synkront opslag via HL7:

I forhold til HL7 er det muligt synkront at lave opslag, tegne abonnement på CPR information. Bemærk at der skal tegnes abonnement når der forespørges på et cpr nummer.

Vigtigt: Klientsystemet skal først forespørge i egen CPR-database og findes CPR-nummeret ikke i klientsystemets egen database foretager klientsystemet et forespørgsel (request) til CPR-servicen og tegner abonnement på dette CPR-nummer. Har klientsystemet ikke mulighed for, at forespørge i egen database først skal RSD kontaktes.  

Scenarie 2 - asynkron opdatering via HL7:

Når kliniske systemer skal integrere til regionens CPR services skal klientsystemet implementere en service så cpr ændringer kan pushe over til klientsystemet.

Besked segmenter

QRD - query patient definition segment

The QRD segment contains information to identify the person upon which the query is defined. 

Name                        
Segment
Field
Fixed value
Description
Query Format Code QRD 2
R
Response is in record-oriented format
Query Priority QRD 3
I
Immediate
Query ID QRD 4

Returned with the response
Who Subject Filter QRD
8.1

Cpr number to idetify the person
Who Subject Filter QRD
8.2

 
Who Subject Filter QRD
8.3

 
Who Subject Filter QRD
8.4
0
Subscription (0=future changes of the information to the cpr number will not be routed automatically to the querying system. 1=future changes to the cpr number will be routet to the querying system.

Example 1:

QRD||R|I|ID1234||||2605620BA2^^^0

Example 2:

MSH|^~\&|SendApp|SendFac|CPR_Component|RSD_Odense|20120201124259||QRY^A19|MsgControlID|P|2.3.1||||||8859/1

QRD||R|I|ID1234||||2605620BA2^^0

Ud fra SendApp i MSH segmentet findes userid/password til brug ved opslag af cprnummeret

MSA - Message Acknowlegment segment

Name                        
Segment
Field
Fixed value
Description
Acknowlegment Code MSA 1


Message Control ID MSA 2


Message Text MSA 3


Error condition MSA 6


Example 1:

MSA|AE||CPR-nr not found.|||2

Example 2:

MSH|^~\&|CPR_Component|RSD_Odense|RecvApp|RecvFac|20120201113548||ADR^A19|20120201113548|P|2.3.1||||||8859/1

MSA|AE|MsgControlID|CPR-nr not found.|||2

QRD||||ID1234

EVN - event type segment

The EVN segment is used to communicate necessary trigger event information to receiving applications

Name                        
Segment
Field
Fixed value
Description
Event Type Code EVN
1


Recorded Date/time EVN
2
  Message creation time. Most systems will default to the system date/time when the transaction was entered

Example 1:

EVN|A28|201103171534550

PID - Patient Identifikation Segment

Name                        
Segment
Field
Fixed value
Description
Patient ID (Internal ID) PID
3

This field contains the primary identifier (=CPR number)
Patient Name
  • Familiy Name
  • Given Name
  • Middle initial or name
PID
5

5.1
5.2
5.3
 
Date/Time of Birth PID
7
  This field contains the patient’s date and time of birth.
Sex
PID
8
  This field contains the patient’s sex.
F = Female
M = Male
Patient Address
  • Street adress
  • City
  • State or province
  • Postal code
  • MunicipalityCode (Kommunekode)
PID
11

11.1
11.3
11.4
11.5
11.8
   
Marital Status PID
16
  S=Single
M=Married
D=Divorced
L=Separated
W=Widowed
Patient Death Data and Time
PID
29
  This field contains the date and time at which the patient death occurred.
Patient Death Indicator
PID
30
  This field indicates whether or not the patient is deceased.

Example 1:

PID|||1407620MM1||Test-y^Mugge-x||19620714|M|||Viborgvej 2^^Århus C^^8000^^^751|||||S

PD1 - patient additional demographic segment

The patient additional demographic segment contains demographic information that is likely to change about the patient.

Name                        
Segment
Field
Fixed value
Description
Patient primary care provider name & ID no
  • ID number (=ydernummer)
  • family name
PD1
4

4.1
4.2
  This field contains the patients private doctor  (name and ID). Ydernummer og navn på privatpraktiserende læge.

Example 1:

PD1||||041149^Karsten Givskud

Example 2:

MSH|^~\&|CPR_Component|RSD_Odense|RIS_Carestream|SLB_Carestream|20130708131930||ADT^A28|0000071933|P|2.3.1||||||8859/1

EVN|A28|20130708131849

PID|||1407620MM1||Test-y^Mugge-x||19620714|M|||Viborgvej 2^^Århus C^^8000^^^751|||||S

PD1||||073253^Louis Irskov

MRG - merge patient information segment

The MRG segment provides receiving applications with information necessary to initiate the merging of patient data as well as groups of records. This segment is used to change substitution CPR number to real CPR number. 

Name                        
Segment
Field
Fixed value
Description
Prior Patient ID - Internal MRG 1
  This field contains the internal prior patient identifier

Example 1:

MRG|2605620BA4

Example 2:

MSH|^~\&|CPR_Component|RSD_Odense|RIS_Carestream|SLB_Carestream|20110329124259||ADT^A34|0000000995|P|2.3.1||||||8859/1

EVN|A34|201103291242305

PID|||2605620EA8

MRG|2605620AE8

Changelog

Since most of the artifacts on this page is under development, check for changes posted in this changelog

2012-02-22

Siden oprettet. Udvides løbende.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.