Versions Compared

Key

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

...

Notificeringer i NAS

I forbindelse med skriveoperationer i BTR (oprettelse, opdateringer og sletninger) sker der en notificering via NAS. Se evt. NAS2 - Anvenderguide.

De enkelte notificeringer indholder ikke detaljer vedr. oprettelse, redigering eller sletning af borgerens  behandlingstestamentdata of livstestamentdata , men udelukkende oplysninger om det cprnummer, for hvilket opdateringen har fundet sted. Det er efterfølgende op til anvenderen at hente det opdaterede stamkort ud via snitfladerne.

Følgende er et eksempel på en opdateringsnotificering til behandlingstestamente:

Code Block
firstline1
titleEksempel på notifikation ved skrivning fra BTR
linenumberstrue
collapsetrue
<ns3:Notify xmlns:ns3="http://docs.oasis-open.org/wsn/b-2" xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns4="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns5="http://docs.oasis-open.org/wsn/t-1" xmlns:ns6="http://nsi.dk/advis/v10" xmlns:ns7="http://sundhedsdatastyrelsen.dk/behandlingstestamente/2022/08/01/">
	<ns3:NotificationMessage>
		<ns3:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">nas.topic.treatmentwillnotification</ns3:Topic>
		<ns3:Message>
			<ns6:NotifyContent id="0501792275" idType="http://nsi.dk/advis/v10/CPR">
				<ns7:TreatmentWillUpdated>
					<ns7:type>http://sundhedsdatastyrelsen.dk/MessageDefinition/Treatmentwill-notification</ns7:type>
					<ns7:date>2022-09-12</ns7:date> 
				    <ns7:version>1</ns7:version>
				</ns7:TreatmentWillUpdated></ns6:NotifyContent>
		</ns3:Message>
	</ns3:NotificationMessage>
</ns3:Notify>
Code Block
firstline

Følgende er et eksempel på en opdateringsmeddelelse til livstestamente:

1
Code Block
titleEksempel på notifikation ved skrivning fra BTR
linenumberstrue
LivingWillUpdatedNotification
collapsetrue
<ns3:Notify xmlns:ns3="http://docs.oasis-open.org/wsn/b-2" xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns4="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns5="http://docs.oasis-open.org/wsn/t-1" xmlns:ns6="http://nsi.dk/advis/v10" xmlns:ns7="http://sundhedsdatastyrelsen.dk/livstestamente/2022/08/01/">
	<ns3:NotificationMessage>
		<ns3:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">TESTNAS-TOPIC1<>nas.topic.livingwillnotification</ns3:Topic>
		<ns3:Message>
			<ns6:NotifyContent id="0501792275" idType="http://nsi.dk/advis/v10/CPR">
				<ns7:TreatmentWillUpdated>LivingWillUpdated>
					<ns7:date>2022-09-12</ns7:date>
					<ns7:type>http://sundhedsdatastyrelsen.dk/MessageDefinition/Treatmentwill-notification</ns7:type>
					<ns7:date>2022-09-12</ns7:date>
					<ns7:version>1</ns7:version>
				</ns7:TreatmentWillUpdated><LivingWillUpdated></ns6:NotifyContent>
		</ns3:Message>
	</ns3:NotificationMessage>
</ns3:Notify>

...


Notificeringer for Behandlingstestamenteregisteret

...

Code Block
firstline1
titleTreatmentWill UpdatedNotification
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
		   targetNamespace="http://sundhedsdatastyrelsen.dk/livstestamentebehandlingstestamente/2022/08/01/"
		   elementFormDefault="qualified">
	<xs:element name="TreatmentWillUpdated">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="date" type="xs:string" minOccurs="1" maxOccurs="1"/>
				<xs:element name="type" type="xs:string" minOccurs="1" maxOccurs="1"/>
				<xs:element name="version" type="xs:string" minOccurs="1" maxOccurs="1"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

...

Der anvendes følgende topic: http://sundhedsdatastyrelsen.dk/livstestamente/2022/08/01/:LivingWill.

Notificeringer følger nedenstående XDS:

Code Block
firstline1
titleLivingWillUpdatedNotification
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
		   targetNamespace="http://sundhedsdatastyrelsen.dk/livstestamente/2022/08/01/"
		   elementFormDefault="qualified">
	<xs:element name="LivingWillUpdated">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="datetype" type="xs:string" minOccurs="1" maxOccurs="1"/>
				<xs:element name="typedate" type="xs:string" minOccurs="1" maxOccurs="1"/>
				<xs:element name="version" type="xs:string" minOccurs="1" maxOccurs="1"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

...