Skip to content

Commit 2e93da8

Browse files
authored
Added identifier to patient_flat_view (#1389)
1 parent 20f8bb1 commit 2e93da8

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

docker/config/views/patient_flat_view.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@
6969
]
7070
}
7171
]
72+
},
73+
{
74+
"column": [
75+
{
76+
"path": "value",
77+
"name": "identifier_value"
78+
},
79+
{
80+
"path": "system",
81+
"name": "identifier_sys"
82+
}
83+
],
84+
"forEachOrNull": "identifier"
7285
}
7386
],
7487
"name": "patient_flat",

e2e-tests/controller-spark/controller_spark_sql_validation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function wait_for_completion() {
223223
function check_parquet() {
224224
local isIncremental=$1
225225
local output="${HOME_PATH}/${PARQUET_SUBDIR}"
226-
TOTAL_VIEW_PATIENTS=106
226+
TOTAL_VIEW_PATIENTS=528
227227

228228
if [[ "${isIncremental}" == "true" ]]
229229
then
@@ -232,7 +232,7 @@ function check_parquet() {
232232
# the second is for the merge step of the incremental run. The second
233233
# directory has one more patient, hence the new totals.
234234
TOTAL_TEST_PATIENTS=$((2*TOTAL_TEST_PATIENTS + 1))
235-
TOTAL_VIEW_PATIENTS=$((2*TOTAL_VIEW_PATIENTS + 1))
235+
TOTAL_VIEW_PATIENTS=1060
236236
TOTAL_TEST_ENCOUNTERS=$((2*TOTAL_TEST_ENCOUNTERS))
237237
TOTAL_TEST_OBS=$((2*TOTAL_TEST_OBS))
238238
fi

e2e-tests/pipeline_validation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function test_parquet_sink() {
200200
# This global variable is hardcoded to validate the View record count
201201
# which can greater than the number of Resources in the source FHIR
202202
# Server due to flattening
203-
PATIENT_VIEW_ROWCOUNT=106
203+
PATIENT_VIEW_ROWCOUNT=528
204204
OBS_VIEW_ROWCOUNT=${TOTAL_TEST_OBS}
205205
if [[ -n ${OPENMRS} ]]; then
206206
PATIENT_VIEW_ROWCOUNT=108

0 commit comments

Comments
 (0)