Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I denne sektion er datamodellen for MinSpærring beskrevet.

Conceptual Model for Consent Administration

A consent is registered as a ConsentItem. Given a ConsentItem, any attached WhatItem and/or WhoItem can be identified.

Table consentitem

Holds information concerning consent, cf.[Behov].

...

Field

...

Type

...

Use

...

Optionality

...

citizenCpr

...

String

...

Identity of the citizen (social security number) the consent concerns.

...

Mandatory

...

consentType

...

Integer

...

Type of consent, 0=negative, other than zero=positive.

...

Mandatory

...

whatItem

...

Foreign key

...

Reference to whatItem table. Null = all

...

whoItem

...

Foreign key

...

Reference to whoItem table. Null = all

...

validFrom

...

Timestamp

...

Time from which the consent is applicable.
Saved as UTC-timestamp.

...

Mandatory

...

validTo

...

Timestamp

...

Date and time where the consent expires.

Null = no expiration date.
Saved as UTC-timestamp.

...

creationTimestamp

...

Timestamp

...

Time of creation of consent.
Saved as UTC-Timestamp.

...

Mandatory

...

creatingSystemName

...

String

...

Name of the system through which the consent was created (as recorded in the HSUID-header on the Web service-call to the consent administration service)

...

Mandatory

...

createdBy

...

String

...

Identity of the user that created the consent (as recorded in the HSUID-header on the Web service call to consent service)

...

Mandatory

...

modifyTimestamp

...

Timestamp

...

Time at which the consent was most recently modified. Saved as UTC-timestamp.

...

modifyingSystemName

...

String

...

Name of the system through which the consent last was modified (as recorded in the HSUID-header on the Web service-call to consent service)

...

modifiedBy

...

String

...

Identity of the user that last modified the consent (as recorded in the HSUID-header on the Web service-call to consent service)

Table whatItem

Holds information concerning what the consent covers, cf. [Behov].

...

Field

...

Type

...

Use

...

Optionality

...

organizationIdentifier

...

String

...

Identity of the organisation (given as the SOR-code of the organisation) from which the information originated. Null = all organisations.

...

includeSubOrgs

...

Integer

...

Indicates whether the consent concerns information originating from the particular organisation (with the value 0) or the particular organisation and all organisations transitively subordinate to it (with the value 1).

...

Mandatory

Konceptuel model til MinSpærring Administration

En registrering i MinSpærring er registreret som et ConsentItem. For et givent ConsentItem kantilknyttet WhatItem og/eller WhoItem identificteres.

Tabel consentitem

Indeholder information om samtykke eller spærring.

Felt

Type

Brug

Optionelt

citizenCpr

Tekst

Identificerer borger (CPR) som registrering berører. 

Krævet

consentType

Tal

Type af registrering,  0=spærring, andet=samtykke.

Krævet

whatItem

Fremmednøgle

Reference til whatItem tabellen. Null = alle


whoItem

Fremmednøgle

Reference til whoItem tabellen. Null = alle


validFrom

Tidsstempel

Tidspunkt for hvornår registrering er gældende. Gemt som UTC-tidsstempel.

Krævet

validTo

Tidsstempel

Tidspunkt for hvornår registrering udløber.

Null = ingen udløbsdato.
Gemt som UTC-tidsstempel.


creationTimestamp

Tidsstempel

Tidspunkt for oprettelse af registrering. Gemt som UTC-tidsstempel.

Krævet

creatingSystemName

Tekst

Navnet på det system, gennem hvilket registreringen blev oprettet (som registreret i HSUID-headeren på kaldet til MinSpærring Administration.)

Krævet

createdBy

Tekst

Identiteten på den bruger, der oprettede registreringen (som registreret i HSUID-headeren på kaldet til MinSpærring Administration)

Krævet

modifyTimestamp

Tidsstempel

Det tidspunkt, hvor registreringen senest blev ændret. Gemt som UTC-tidsstempel.


modifyingSystemName

Tekst

Navnet på det system, hvorigennem registreringen sidst blev ændret (som registreret i HSUID-headeren på kaldet til MinSpærring Administration.)


modifiedBy

Tekst

Identitet for den bruger, der sidst ændrede registreringen (som registreret i HSUID-headeren på kaldet til MinSpærring Administration)


Tabel whatItem

Indeholder information om hvad registreringen dækker.

Felt

Type

Brug

Optionelt

organizationIdentifier

Tekst

Identifikation på den organisation (angivet som SOR-koden for organisationen), hvorfra oplysningerne stammer. Null = alle organisationer


includeSubOrgs

Tal

Angiver, om registreringen vedrører oplysninger, der stammer fra den bestemte organisation (med værdien 0) eller den bestemte organisation og alle organisationer, der er underordnet den (med værdien 1).

Krævet

referralStart

Tidsstempel

Registreringen vedrører oplysninger om aktiviteter, der vedrører borgeren på eller senere end den angivne tidsstempel.

Null = Ingen start tid
Gemt som UTC-tidsstempel


referralEnd

Tidsstempel

Registreringen vedrører oplysninger om aktiviteter vedrørende borgeren før det registrerede tidsstempel.

Null = Ingen slut tid.
Gemmes som et UTC-tiddstempel.


Tabel whoItem

Indeholder information om hvem samtykket / spærringen er giver til / i mod.

Felt

Type

Use

Optionelt

healthProfessionalCpr

Tekst

Identiteten på den sundhedsfaglige person (CPR), som registreringen gælder for. En værdi på null betyder, at samtykke gælder for enhver sundhedsfaglig.


organizationIdentifier

Tekst

Identiteten på den organisation (SOR-koden) som registreringen gælder for. En værdi på null betyder alle organisationer.


includeSubOrgs

Tal

Angiver, om samtykke gælder for den bestemte organisation (med værdien 0) eller den bestemte organisation og alle organisationer, der er underordnet den (med værdien 1).


foreignHealthProfessionals

Tal

Angiver, om registreringen gælder sundhedsfaglige, der fungerer uden for dansk område.

En værdi på 1 angiver, at registreringen gælder for udenlandsk sundhedspersonale, mens en værdi på nul angiver, at det ikke gælder.

En registrering af consentType=1, der er forbundet med et whoItem med foreignHealthProfessionals sat til 1 angiver registreringen givet for epSos til at videregive sundhedsoplysninger til udenlandske sundhedspersonale. Hvilke oplysninger, der skal afsløres, bestemmes af epSos.

Krævet

...

referralStart

...

Timestamp

...

The consent concerns information on activities pertaining to the citizen on or later than the stated timestamp.

Null = no bounding start time.
Saved as UTC-timestamp.

...

referralEnd

...

Timestamp

...

The consent concerns information on activities pertaining to the citizen before or on the stated timestamp.

Null = no bounding end time.
Saved as UTC-timestamp.

Tabel whoItem

Holds information about whom a consent is given to / against, cf. [Behov].

Field

Type

Use

Optionality

healthProfessionalCpr

String

Identity of the health professional (social security number) for whom the consent applies to. A value of null means that the consent applies to any health professional.

organizationIdentifier

String

Identity of the organisation (the SOR-code) for which the consent applies to. A value of null means any organisation.

includeSubOrgs

Integer

Indicates whether the consent applies to the particular organisation (with the value 0) or the particular organisation and all organisations transitively subordinate to it (with the value 1).

foreignHealthProfessionals

Integer

States whether the consent applies to health professionals functioning outside Danish territory.

A value of 1 indicates that the consent applies to foreign health professionals, while a value of zero indicates that it does not apply.

A consentitem of consentType 1 associated with at whoItem with foreignHealthProfessionals set to 1 indicates consent provided for epSos to disclose health information to foreign health professionals. Which information to be disclosed is determined by epSos.

Mandatory

Examples

Below, examples are given on how selected fields in the table are filled-in for the possible combinations of consent specification, as specified in [Behov].

...