From af2c404b7fb72812a3b456588f7076bb5ed64d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannick=20B=C3=B6rner?= Date: Fri, 9 Apr 2021 12:15:18 +0200 Subject: [PATCH 1/2] Improve default replacement values --- Healex.HL7v2Anonymizer/appsettings.json | 122 ++++++++++++------------ 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/Healex.HL7v2Anonymizer/appsettings.json b/Healex.HL7v2Anonymizer/appsettings.json index 7e7454e..7fbd2b7 100644 --- a/Healex.HL7v2Anonymizer/appsettings.json +++ b/Healex.HL7v2Anonymizer/appsettings.json @@ -50,7 +50,7 @@ }, { "Path": "PID.7", - "Value": "Birthdate" + "Value": "20000101" }, { "Path": "PID.11.1", @@ -70,7 +70,7 @@ }, { "Path": "PID.11.5", - "Value": "Zip code" + "Value": "A104" }, { "Path": "PID.11.6", @@ -78,23 +78,23 @@ }, { "Path": "PID.13.1", - "Value": "Telephone number" + "Value": "1-800-273-8255" }, { "Path": "PID.13.4", - "Value": "Email address" + "Value": "foo@bar.xyz" }, { "Path": "PID.13.5", - "Value": "Country code" + "Value": "255" }, { "Path": "PID.13.6", - "Value": "Area/City code" + "Value": "026" }, { "Path": "PID.13.7", - "Value": "Phone number" + "Value": "867-5309" }, { "Path": "PID.13.11", @@ -102,31 +102,31 @@ }, { "Path": "PID.13.12", - "Value": "Phone number" + "Value": "867-5309" }, { "Path": "PID.14.1", - "Value": "Telephone number" + "Value": "1-800-273-8255" }, { "Path": "PID.14.4", - "Value": "Email address" + "Value": "foo@bar.xyz" }, { "Path": "PID.14.5", - "Value": "Country code" + "Value": "255" }, { "Path": "PID.14.6", - "Value": "Area/City code" + "Value": "026" }, { "Path": "PID.14.7", - "Value": "Phone number" + "Value": "867-5309" }, { "Path": "PID.14.12", - "Value": "Phone number" + "Value": "867-5309" }, { "Path": "PID.18.1", @@ -134,11 +134,11 @@ }, { "Path": "PID.20.1", - "Value": "Driver's license number" + "Value": "0112358" }, { "Path": "PID.29.1", - "Value": "DeathDate" + "Value": "20000101" } ] }, @@ -151,7 +151,7 @@ }, { "Path": "NK1.2.1", - "Value": "Familiy Name" + "Value": "Family Name" }, { "Path": "NK1.2.2", @@ -179,7 +179,7 @@ }, { "Path": "NK1.4.5", - "Value": "Zip or postal code" + "Value": "A104" }, { "Path": "NK1.4.6", @@ -187,43 +187,43 @@ }, { "Path": "NK1.5.1", - "Value": "Telephone Number" + "Value": "1-800-273-8255" }, { "Path": "NK1.5.4", - "Value": "Email Adress" + "Value": "foo@bar.xyz" }, { "Path": "NK1.5.5", - "Value": "Country Code" + "Value": "255" }, { "Path": "NK1.5.6", - "Value": "Area Code" + "Value": "026" }, { "Path": "NK1.5.7", - "Value": "Phone Number" + "Value": "1-800-273-8255" }, { "Path": "NK1.6.1", - "Value": "Telephone Number" + "Value": "1-800-273-8255" }, { "Path": "NK1.6.4", - "Value": "Email Adress" + "Value": "foo@bar.xyz" }, { "Path": "NK1.6.5", - "Value": "Country Code" + "Value": "255" }, { "Path": "NK1.6.6", - "Value": "Area Code" + "Value": "026" }, { "Path": "NK1.6.7", - "Value": "Phone Number" + "Value": "1-800-273-8255" }, { "Path": "NK1.10", @@ -239,7 +239,7 @@ }, { "Path": "NK1.16", - "Value": "Birthdate" + "Value": "20000101" }, { "Path": "NK1.26.1", @@ -267,23 +267,23 @@ }, { "Path": "NK1.31.1", - "Value": "Telephone Number" + "Value": "1-800-273-8255" }, { "Path": "NK1.31.4", - "Value": "Email Adress" + "Value": "foo@bar.xyz" }, { "Path": "NK1.31.5", - "Value": "Country Code" + "Value": "255" }, { "Path": "NK1.31.6", - "Value": "Area Code" + "Value": "026" }, { "Path": "NK1.31.7", - "Value": "Phone Number" + "Value": "1-800-273-8255" }, { "Path": "NK1.32.1", @@ -303,7 +303,7 @@ }, { "Path": "NK1.32.5", - "Value": "Zip or postal code" + "Value": "A104" }, { "Path": "NK1.32.6", @@ -344,7 +344,7 @@ }, { "Path": "IN1.11.4", - "Value": "Check digit" + "Value": "0112358" }, { "Path": "IN1.16.1", @@ -376,7 +376,7 @@ }, { "Path": "IN1.19.5", - "Value": "Zip or postal code" + "Value": "A104" }, { "Path": "IN1.19.6", @@ -400,7 +400,7 @@ }, { "Path": "IN1.44.5", - "Value": "Zip or postal code" + "Value": "A104" }, { "Path": "IN1.44.6", @@ -408,7 +408,7 @@ }, { "Path": "IN1.18", - "Value": "Birthdate" + "Value": "20000101" } ] }, @@ -445,7 +445,7 @@ }, { "Path": "IN2.6", - "Value": "Card Number" + "Value": "0112358" }, { "Path": "IN2.7.1", @@ -461,7 +461,7 @@ }, { "Path": "IN2.8", - "Value": "Medicaid case number" + "Value": "0112358" }, { "Path": "IN2.10", @@ -505,23 +505,23 @@ }, { "Path": "IN2.50.1", - "Value": "Telephone number" + "Value": "1-800-273-8255" }, { "Path": "IN2.50.4", - "Value": "Email address" + "Value": "foo@bar.xyz" }, { "Path": "IN2.50.5", - "Value": "Country code" + "Value": "255" }, { "Path": "IN2.50.6", - "Value": "Area/City code" + "Value": "026" }, { "Path": "IN2.50.7", - "Value": "Phone number" + "Value": "867-5309" }, { "Path": "IN2.52.1", @@ -537,63 +537,63 @@ }, { "Path": "IN2.53.1", - "Value": "Telephone number" + "Value": "1-800-273-8255" }, { "Path": "IN2.53.4", - "Value": "Email address" + "Value": "foo@bar.xyz" }, { "Path": "IN2.53.5", - "Value": "Country code" + "Value": "255" }, { "Path": "IN2.53.6", - "Value": "Area/City code" + "Value": "026" }, { "Path": "IN2.53.7", - "Value": "Phone number" + "Value": "867-5309" }, { "Path": "IN2.63.1", - "Value": "Telephone number" + "Value": "1-800-273-8255" }, { "Path": "IN2.63.4", - "Value": "Email address" + "Value": "foo@bar.xyz" }, { "Path": "IN2.63.5", - "Value": "Country code" + "Value": "255" }, { "Path": "IN2.63.6", - "Value": "Area/City code" + "Value": "026" }, { "Path": "IN2.63.7", - "Value": "Phone number" + "Value": "867-5309" }, { "Path": "IN2.64.1", - "Value": "Telephone number" + "Value": "1-800-273-8255" }, { "Path": "IN2.64.4", - "Value": "Email address" + "Value": "foo@bar.xyz" }, { "Path": "IN2.64.5", - "Value": "Country code" + "Value": "255" }, { "Path": "IN2.64.6", - "Value": "Area/City code" + "Value": "026" }, { "Path": "IN2.64.7", - "Value": "Phone number" + "Value": "867-5309" } ] } From bed6580cb3ded291b748d4aa41a87f05b6dab49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannick=20B=C3=B6rner?= Date: Fri, 9 Apr 2021 13:06:39 +0200 Subject: [PATCH 2/2] Replace 'Country' with 'DEU' --- Healex.HL7v2Anonymizer/appsettings.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Healex.HL7v2Anonymizer/appsettings.json b/Healex.HL7v2Anonymizer/appsettings.json index 7fbd2b7..8fc5947 100644 --- a/Healex.HL7v2Anonymizer/appsettings.json +++ b/Healex.HL7v2Anonymizer/appsettings.json @@ -74,7 +74,7 @@ }, { "Path": "PID.11.6", - "Value": "Country" + "Value": "DEU" }, { "Path": "PID.13.1", @@ -183,7 +183,7 @@ }, { "Path": "NK1.4.6", - "Value": "Country" + "Value": "DEU" }, { "Path": "NK1.5.1", @@ -307,7 +307,7 @@ }, { "Path": "NK1.32.6", - "Value": "Country" + "Value": "DEU" }, { "Path": "NK1.37", @@ -380,7 +380,7 @@ }, { "Path": "IN1.19.6", - "Value": "Country" + "Value": "DEU" }, { "Path": "IN1.44.1", @@ -404,7 +404,7 @@ }, { "Path": "IN1.44.6", - "Value": "Country" + "Value": "DEU" }, { "Path": "IN1.18",