test_class.declarator: anonymisationService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private AnonymisationService anonymisationService;
test_class.type: AnonymisationService
test_class.var_name: anonymisationService
test_class.file: pipeline/src/test/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/service/anonymisation/AnonymisationServiceTest.java
test_class.identifier: AnonymisationServiceTest
test_class.superclass: extends IntegrationTest
test_case.body: @Test
      public void shouldWorkWithShortNames() {
          Patient patient = new Patient();
          patient.addForeName("Christine");
          PatientAddress patientAddress1 = new PatientAddress();
          patientAddress1.setAddress("Kidderpore Avenue Hampstead, London");
          patientAddress1.setPostCode("cb4 2za");
          patient.addAddress(patientAddress1);
          patient.addPhoneNumber("50090051234");
          patient.addPhoneNumber("11090051234");
          String anonymisedText = anonymisationService.pseudonymisePersonPlainText(patient, "\n" +
                  "\n" +
                  "she was angry\n" +
                  "\n" +
                  "Ism MrK\n" +
                  "\n" +
                  "\n" +
                  "11122\n" +
                  "(0500) 9005 1234 " +
                  "Some random text that shouldn't be anonymised." +
                  "" +
                  "Address is Kidderpore Ave, (Hampstead, London.");
          System.out.println(anonymisedText);
          assertTrue(anonymisedText.contains("she was angry"));
      }
test_case.class_method_signature: AnonymisationServiceTest.shouldWorkWithShortNames()
test_case.full_signature: @Test public void shouldWorkWithShortNames()
test_case.identifier: shouldWorkWithShortNames
test_case.invocations: addForeName setAddress setPostCode addAddress addPhoneNumber addPhoneNumber pseudonymisePersonPlainText println assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldWorkWithShortNames()
focal_class.declarator: logger = Logger.getLogger(AnonymisationService.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger.getLogger(AnonymisationService.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: namePseudonymiser
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private NamePseudonymiser namePseudonymiser;
focal_class.type: NamePseudonymiser
focal_class.var_name: namePseudonymiser
focal_class.declarator: phonePseudonymiser
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private PhonePseudonymiser phonePseudonymiser;
focal_class.type: PhonePseudonymiser
focal_class.var_name: phonePseudonymiser
focal_class.declarator: dateOfBirthPseudonymiser
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private DateOfBirthPseudonymiser dateOfBirthPseudonymiser;
focal_class.type: DateOfBirthPseudonymiser
focal_class.var_name: dateOfBirthPseudonymiser
focal_class.declarator: nhsNumberPseudonymiser
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private NHSNumberPseudonymiser nhsNumberPseudonymiser;
focal_class.type: NHSNumberPseudonymiser
focal_class.var_name: nhsNumberPseudonymiser
focal_class.declarator: addressPseudonymiser
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private AddressPseudonymiser addressPseudonymiser;
focal_class.type: AddressPseudonymiser
focal_class.var_name: addressPseudonymiser
focal_class.file: pipeline/src/main/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/service/anonymisation/AnonymisationService.java
focal_class.identifier: AnonymisationService
focal_class.class_method_signature: AnonymisationService.pseudonymisePersonHTML(Patient patient, String text)
focal_class.full_signature: public String pseudonymisePersonHTML(Patient patient, String text)
focal_class.identifier: pseudonymisePersonHTML
focal_class.modifiers: public
focal_class.parameters: (Patient patient, String text)
focal_class.return: String
focal_class.signature: String pseudonymisePersonHTML(Patient patient, String text)
focal_class.class_method_signature: AnonymisationService.pseudonymisePersonPlainText(Patient patient, String text)
focal_class.full_signature: public String pseudonymisePersonPlainText(Patient patient, String text)
focal_class.identifier: pseudonymisePersonPlainText
focal_class.modifiers: public
focal_class.parameters: (Patient patient, String text)
focal_class.return: String
focal_class.signature: String pseudonymisePersonPlainText(Patient patient, String text)
focal_class.class_method_signature: AnonymisationService.pseudonymiseAll(Patient patient, String text)
focal_class.full_signature: private String pseudonymiseAll(Patient patient, String text)
focal_class.identifier: pseudonymiseAll
focal_class.modifiers: private
focal_class.parameters: (Patient patient, String text)
focal_class.return: String
focal_class.signature: String pseudonymiseAll(Patient patient, String text)
focal_class.class_method_signature: AnonymisationService.traverseAndAnonymise(Node node, Patient patient)
focal_class.full_signature: private void traverseAndAnonymise(Node node, Patient patient)
focal_class.identifier: traverseAndAnonymise
focal_class.modifiers: private
focal_class.parameters: (Node node, Patient patient)
focal_class.return: void
focal_class.signature: void traverseAndAnonymise(Node node, Patient patient)
focal_class.class_method_signature: AnonymisationService.setNamePseudonymiser(NamePseudonymiser namePseudonymiser)
focal_class.full_signature: public void setNamePseudonymiser(NamePseudonymiser namePseudonymiser)
focal_class.identifier: setNamePseudonymiser
focal_class.modifiers: public
focal_class.parameters: (NamePseudonymiser namePseudonymiser)
focal_class.return: void
focal_class.signature: void setNamePseudonymiser(NamePseudonymiser namePseudonymiser)
focal_class.class_method_signature: AnonymisationService.setPhonePseudonymiser(PhonePseudonymiser phonePseudonymiser)
focal_class.full_signature: public void setPhonePseudonymiser(PhonePseudonymiser phonePseudonymiser)
focal_class.identifier: setPhonePseudonymiser
focal_class.modifiers: public
focal_class.parameters: (PhonePseudonymiser phonePseudonymiser)
focal_class.return: void
focal_class.signature: void setPhonePseudonymiser(PhonePseudonymiser phonePseudonymiser)
focal_class.class_method_signature: AnonymisationService.setDateOfBirthPseudonymiser(DateOfBirthPseudonymiser dateOfBirthPseudonymiser)
focal_class.full_signature: public void setDateOfBirthPseudonymiser(DateOfBirthPseudonymiser dateOfBirthPseudonymiser)
focal_class.identifier: setDateOfBirthPseudonymiser
focal_class.modifiers: public
focal_class.parameters: (DateOfBirthPseudonymiser dateOfBirthPseudonymiser)
focal_class.return: void
focal_class.signature: void setDateOfBirthPseudonymiser(DateOfBirthPseudonymiser dateOfBirthPseudonymiser)
focal_class.class_method_signature: AnonymisationService.setNhsNumberPseudonymiser(NHSNumberPseudonymiser nhsNumberPseudonymiser)
focal_class.full_signature: public void setNhsNumberPseudonymiser(NHSNumberPseudonymiser nhsNumberPseudonymiser)
focal_class.identifier: setNhsNumberPseudonymiser
focal_class.modifiers: public
focal_class.parameters: (NHSNumberPseudonymiser nhsNumberPseudonymiser)
focal_class.return: void
focal_class.signature: void setNhsNumberPseudonymiser(NHSNumberPseudonymiser nhsNumberPseudonymiser)
focal_class.class_method_signature: AnonymisationService.setAddressPseudonymiser(AddressPseudonymiser addressPseudonymiser)
focal_class.full_signature: public void setAddressPseudonymiser(AddressPseudonymiser addressPseudonymiser)
focal_class.identifier: setAddressPseudonymiser
focal_class.modifiers: public
focal_class.parameters: (AddressPseudonymiser addressPseudonymiser)
focal_class.return: void
focal_class.signature: void setAddressPseudonymiser(AddressPseudonymiser addressPseudonymiser)
focal_method.body: public String pseudonymisePersonPlainText(Patient patient, String text) {
          return pseudonymiseAll(patient, text);
      }
focal_method.class_method_signature: AnonymisationService.pseudonymisePersonPlainText(Patient patient, String text)
focal_method.full_signature: public String pseudonymisePersonPlainText(Patient patient, String text)
focal_method.identifier: pseudonymisePersonPlainText
focal_method.invocations: pseudonymiseAll
focal_method.modifiers: public
focal_method.parameters: (Patient patient, String text)
focal_method.return: String
focal_method.signature: String pseudonymisePersonPlainText(Patient patient, String text)