From 9b5058de79622db0665e6a7c806f0724f907c202 Mon Sep 17 00:00:00 2001 From: lincmba Date: Fri, 10 Jan 2025 09:09:41 +0300 Subject: [PATCH] Add sample transcript --- .../speechtoform/TextToFormTest.kt | 2 +- .../quest/resources/sample_transcript.txt | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 android/quest/src/test/java/org/smartregister/fhircore/quest/resources/sample_transcript.txt diff --git a/android/quest/src/test/java/org/smartregister/fhircore/quest/audiointerface/speechtoform/TextToFormTest.kt b/android/quest/src/test/java/org/smartregister/fhircore/quest/audiointerface/speechtoform/TextToFormTest.kt index ddbb321a78..ff5b8a788f 100644 --- a/android/quest/src/test/java/org/smartregister/fhircore/quest/audiointerface/speechtoform/TextToFormTest.kt +++ b/android/quest/src/test/java/org/smartregister/fhircore/quest/audiointerface/speechtoform/TextToFormTest.kt @@ -63,7 +63,7 @@ class TextToFormTest { } private suspend fun testGenerateQuestionnaireResponseRealApi() { - val testFile = File("src/test/resources/sample_transcript.txt") + val testFile = File("org/smartregister/fhircore/quest/resources/sample_transcript.txt") require(testFile.exists()) { "Test transcript file not found at ${testFile.absolutePath}" } val mockQuestionnaire = Questionnaire() diff --git a/android/quest/src/test/java/org/smartregister/fhircore/quest/resources/sample_transcript.txt b/android/quest/src/test/java/org/smartregister/fhircore/quest/resources/sample_transcript.txt new file mode 100644 index 0000000000..26e83c5afc --- /dev/null +++ b/android/quest/src/test/java/org/smartregister/fhircore/quest/resources/sample_transcript.txt @@ -0,0 +1,39 @@ +let's start with your patient information. What is your NHS number? + +12345 + +And your full name, please? + +John Doe Smith + +What's your date of birth? + +March 15th, 1985. + +And your age? + +39. + +What is your gender? + +Male. + +What is your National ID number? + +I’m not sure that’s something I can give out. + +Is this for the patient portal? + +Yes. + +Then it’s fine. It’s 1234567890. + +And finally, your phone number? + +0123456789 + +Great, thanks. Now, regarding your location, we need to record some details. Your home address is at 34.0522 latitude and -118.2437 longitude. Is that correct? + +Yes, that's correct. The address is also associated with Location 678 in our records. I also have a care location, Location 910, and my workplace is at Location 1112. + +Excellent, thank you for confirming that information.