Fejlbeskeder i SMDB Validate Business Rules Request- ValidateRequestRegist ration (Rules :1) Business Rules Fejlbesked Kommentar the municipality must have no more than one Kontaktforløb at a time Fejl 1: Anmodning En borger kan kun have ét igangværende kontaktforløb pr. myndighed Request- ValidateRequestRegist ration (Rules :2) Request- ValidateRequestRegist ration (Rules :3) ation (Rules :1) ation (Rules :2) ation (Rules :3) ation (Rules :4) (Rules :1) Within the municipality, Kontaktforløb must not overlap If there is a "Date of End Treatment", which is linked to this Request, the Date of Request must be lower or equal to "Date of End Treatment Only one Initiation per Kontaktforløb Date of Initiation" must be attached to a "Date of Request" Date of Initiation" must be the same date or later than the "Date of Request" that it is linked to. If there exists a "Date of End Treatment", which is linked to the same "Date of Request", the "Date of Initiation" cannot not be higher than this "Date of End Treatment. Each Attachment is linked to a specific "Date of Initiation"(and through this, a "Date of Request ). Fejl 2: Anmodning Inden for myndigheden må flere kontaktforløb på samme borger ikke overlappe Fejl 3: Anmodning Hvis der er en 'Dato for afslutttet behandling', som er tilknyttet en anmodning, skal 'Anmodningsdato' være identisk med eller komme før 'Dato for afsluttet behandling' Fejl 4: Iværksæt behandling Der kan kun være én 'Dato for iværksat behandling' pr. kontaktforløb Fejl 5: Iværksæt behandling En 'Dato for iværksat behandling' skal være tilknyttet en 'Anmodningsdato' Fejl 6: Iværksæt behandling 'Dato for iværksat behandling' skal være identisk med eller komme efter den 'Anmodningsdato', som den er knyttet til Fejl 7: Iværksæt behandling 'Dato for iværksat behandling' må ikke komme efter 'Dato for afsluttet behandling', hvis denne er tilknyttet samme 'Anmodningsdato' Fejl 8: Tilbudstilknytning Hver tilbudstilknytning er tilknyttet en specifik 'Dato for iværksat behandling' (og igennem denne, en 'Anmodningsdato'). Dette sker når man har en anmodning og en iværksættelse og man prøver at slette anmodningen.
(Rules:2) (Rules:3) (Rules:4) (Rules:5) (Rules:7) (Rules:6) (Rules:8) Date of Attachment (the start date of the attachment) must be equal to or higher than "Date of Initiation If there is an attachment on the Initiation, at least one "Date of Attachment" must be equal to "Date of Initiation Date of Attachment" must be less or equal to "Date of Detachment" (date of end of attachment) if it exists. Date of Detachment must be empty if there is no "Date of Attachment Date of Detachment" cannot not be empty if there is a "Date of End Treatment", which is linked to the same "Date of Request Date of Detachment" must be higher than or equal to "Date of Attachment. Date of Detachment" must be equal to or less than "Date of End Treatment" if it exists. Fejl 9: Tilbudstilknytning 'Tilbudsstartdato' skal være identisk med eller komme efter 'Dato for iværksat behandling' Fejl 10: Tilbudstilknytning Hvis der er tilknyttet tilbud ved iværksættelse af behandling, skal mindst én 'Tilbudsstartdato' være identisk med 'Dato for iværksat behandling' Fejl 11: Tilbudstilknytning 'Tilbudsstartdato' skal være identisk med eller ligge før 'Tilbudsslutdato', hvis denne er udfyldt Fejl 12: Tilbudstilknytning Der kan ikke være en 'Tilbudsslutdato', hvis der ikke er en 'Tilbudsstartdato' Fejl 13: Tilbudstilknytning Der skal være en 'Tilbudsslutdato', hvis der er en 'Dato for afsluttet behandling', som er tilknyttet samme 'Anmodningsdato' Fejl 14: Tilbudstilknytning 'Tilbudsslutdato' skal være identisk med eller komme efter 'Tilbudsstartdato' Fejl 15: Tilbudstilknytning 'Tilbudsslutdato' skal være identisk med eller komme før 'Dato for afsluttet behandling', hvis denne er udfyldt 2/6
(Rules:9) Within the same municipality, there can be any number of Attachment from the same Tilbud, linked to the same "Date of Initiation Fejl 16: Tilbudstilknytning Inden for samme myndighed, kan et tilbud knyttes flere gange til samme 'Dato for iværksat behandling' (Rules:10-B) nt (Rules:1) nt (Rules:1) nt (Rules:2) nt (Rules:3) nt (Rules:4) If "A-Date of Attachment" is before the "B-Date of Attachment" then "A- Date of Detachment" must be lower than "B- Date of Attachment"(Attachmen t from same Tilbud cannot overlap) Date of End Treatment should be linked to a "Date of Request" Only one End Treatment per Kontaktforløb If no "Date of Inititation" exists, which is linked to the same Date of Request, then the "Date of End Treatment" must be equal to or higher than "Date of Request". If a "Date of Initiation" exists, which is linked to the same "Date of Request" then the "Date of End Treatment" must be equal to or higher than "Date of Initiation. Date of End Treatment" cannot be before the latest "Date of Detachment" which is linked to the same Date of Request. Fejl 17: Tilbudstilknytning Tilbudsforløb fra ét tilbud må ikke overlappe Fejl 41: Afslut behandling Der kan ikke være en 'Dato for afsluttet behandling', hvis der ikke er en 'Anmodningsdato'. Fejl 18: Afslut behandling Der kan kun være én 'Dato for afsluttet behandling' pr. kontaktforløb Fejl 19: Afslut behandling Hvis der ikke er nogen 'Dato for iværksat behandling', som er tilknyttet samme 'Anmodningsdato', så skal 'Dato for afsluttet behandling' være identisk med eller komme efter 'Anmodningsdato' Fejl 20: Afslut behandling Hvis der er en 'Dato for iværksat behandling', som er tilknyttet samme 'Anmodningsdato', så skal 'Dato for afsluttet behandling' være identisk med eller komme efter 'Dato for iværksat behandling' Fejl 21: Afslut behandling 'Dato for afsluttet behandling' kan ikke komme før den sidste 'Tilbudsslutdato', der er tilknyttet den samme 'Anmodningsdato' 3/6
nt (Rules:5) nt (Rules:6) on (Rules :1) on (Rules :2) on (Rules :3) on (Rules :4) on (Rules :5) on (Rules :6) (Rules :1) Date of End Treatment" cannot exist if there are any Attachment without a "Date of Detachment", which is linked to the same "Date of Request. Lastest Date of Detachment has to be identical with the Date of End Treatment (if it s there) Not multiple unfinished admissions for the same authority for the same Tilbud Admission must not have negative duration Admissions may not overlap Date of Discharge" cannot be before the latest "Date of Service End" attached to the same "Date of Admission Cannot discharge while there are open services Date of Admission" cannot be later than the earliest "Date of Service Start" which is linked to the same "Date of Admission". (Only relevant when changing "Date of Admission ) Each Service must be attached to an existing "Date of Admission Fejl 22: Afslut behandling 'Dato for afsluttet behandling' kan ikke registreres, hvis der er tilbudforløb uden en 'Tilbudsslutdato', som er tilknyttet den samme 'Anmodningsdato' Fejl 23: Afslut behandling Den sidste 'Tilbudsslutdato' skal være identisk med 'Dato for afsluttet behandling' (hvis den er registreret) Fejl 24: Tilbudsforløb Et tilbud må ikke have flere åbne tilbudsforløb på den samme borger inden for samme myndighed Fejl 25: Tilbudsforløb Tilbudsforløb må ikke have en negativ varighed Fejl 26: Tilbudsforløb Tilbudsforløb må ikke overlappe Fejl 27: Tilbudsforløb 'Dato for afsluttet behandling' kan ikke komme før den sidste 'Ydelsesslutdato', der er tilknyttet den samme 'Tilbudsstartdato' Fejl 28: Tilbudsforløb Behandling kan ikke afsluttes, hvis der er åbne ydelsespakker Fejl 29: Tilbudsforløb 'Tilbudsstartdato' kan ikke komme efter den tidligste 'Ydelsesstartdato', der er tilknyttet den samme 'Tilbudsstartdato' (kun relevant ved ændring af 'Tilbudsstartdato') Fejl 30: Ydelser Hver ydelsespakke skal tilknyttes et eksisterende tilbudsforløb 4/6
(Rules :3) (Rules :4) (Rules :5) (Rules :6) ASI- ValidateAccessToASI (Rules:1) ASI- ValidateAccessToASI (Rules:2) HEPC- ValidateAccessToHepC (Rules:2) HEPC- ValidateAccessToHepC (Rules:3) A "Date of Service Start" cannot be later than the same "Date of Service End. A "Date of Service Start" cannot be earlier than the "Date of Admission" that it is linked to. If there is a "Date of Discharge" linked to the same "Date of Admission" as the Service, then the "Date of Service End" cannot be after the "Date of Discharge" A "Date of Service End" can not be empty if Date of Discharge is filled in. If the profile in use is from a Tilbud and there is no Date of Admission for this citizen for this Tilbud, then the form cannot be accessed. If the profile in use is from a Myndighed and there is no Request for this citizen for the Myndighed, then the form cannot be accessed. There must be an Initiation and an Attachment on the municipality that the user s profile belongs to. At least one of the conditions must be fulfilled:a. For "Initiation" the field "Risikoadfærd nogensinde" must be "Ja.b.The field "Behandlingstype" on Tilbudstilknytning cannot be "Stoffri Fejl 31: Ydelser En 'Ydelsesstartdato' kan ikke komme efter den tilknyttede 'Ydelsesslutdato' Fejl 32: Ydelser En 'Ydelsesstartdato' kan ikke komme før den 'Tilbudsstartdato', som den er knyttet til Fejl 33: Ydelser Hvis en 'Tilbudsslutdato' er tilknyttet den samme 'Tilbudsstartdato' som ydelsespakken, kan 'Ydelsesslutdato' ikke komme efter 'Tilbudsslutdato' Fejl 34: Ydelser 'Ydelsesslutdato' skal være udfyldt, hvis 'Tilbudsslutdato' er udfyldt Fejl 35: Adgang til ASI Tilbudsprofiler kan ikke tilgå skemaet, hvis der ikke er registreret nogen 'Tilbudsstartdato' for borgeren Fejl 36: Adgang til ASI Myndighedsprofiler kan ikke tilgå skemaet, hvis der ikke er registreret nogen 'Anmodningsdato' for borgeren. Fejl 37: Adgang til HEPC Der skal være en 'Dato for iværksat behandling' og en 'Tilbudsstartdato' fra den myndighed, som brugerens profil tilhører Fejl 38: Adgang til HEPC Skemaet kan kun tilgås hvis 'Risikoadfærd nogensinde' (fra iværksættelse) er 'Ja' ELLER hvis 'Behandlingstype' (fra tilbudstilknytning) ikke er 'Stoffri behandling' 5/6
behandling. ASI Initiation ASI Admission Admission There must be either an admission or request to allow access to ASI. However, this business rule could be used in other circumstances where it is also a requirement that there must be an admission or request. The Initiation date must be equal to or lower than the date today The ASI date must be equal to or lower than the date today. The admission date must be equal to or lower than the date today. Fejl 39: Manglende indskrivning eller anmodning Da der ikke er registreret hverken indskrivning eller anmodning for denne borger, er det ikke muligt at fortsætte. Fejl 42: Dato for iværksat behandling 'Dato for iværksat behandling' må ikke være senere end dags dato. Fejl 43: ASI svardato 'ASI svardato' må ikke være senere end dags dato. Fejl 44: Tilbudsstartdato 'Tilbudsstartdato' må ikke være senere end dags dato. Fejl 45: Tilbudssslutdato 'Tilbudsslutdato' må ikke være senere end dags dato. 6/6