Skip to content

Commit

Permalink
Test case changes for Observation non-primitive value extraction. (#1833
Browse files Browse the repository at this point in the history
)

* ValueCoding extraction issue fix

* Removed unused line

* Changed parameter type to resource type.

* used forchached for iparser

* Changed link ids in test case

---------

Co-authored-by: Omar Ismail <[email protected]>
Co-authored-by: Jing Tang <[email protected]>
  • Loading branch information
3 people committed Mar 8, 2023
1 parent 9ee9c81 commit 848754f
Showing 1 changed file with 6 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ class ResourceMapperTest {
"resourceType": "Questionnaire",
"item": [
{
"linkId": "9",
"linkId": "observation",
"type": "group",
"extension": [
{
Expand All @@ -512,36 +512,16 @@ class ResourceMapperTest {
],
"item": [
{
"linkId": "9.1",
"linkId": "observation-value",
"type": "group",
"definition": "https://hl7.org/fhir/StructureDefinition/Observation#Observation.valueCodeableConcept",
"item": [
{
"linkId": "9.1.1",
"linkId": "observation-value-coding",
"type": "choice",
"definition": "https://hl7.org/fhir/StructureDefinition/Observation#Observation.valueCodeableConcept.coding"
}
]
},
{
"linkId": "9.1.3",
"type": "choice",
"definition": "https://hl7.org/fhir/StructureDefinition/Observation#Observation.code",
"extension": [
{
"url": "https://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
"valueBoolean": true
}
],
"initial": [
{
"valueCoding": {
"code": "8888",
"display": "dummy",
"system": "dummy"
}
}
]
}
]
}
Expand All @@ -556,13 +536,13 @@ class ResourceMapperTest {
"resourceType": "QuestionnaireResponse",
"item": [
{
"linkId": "9",
"linkId": "observation",
"item": [
{
"linkId": "9.1",
"linkId": "observation-value",
"item": [
{
"linkId": "9.1.1",
"linkId": "observation-value-coding",
"answer": [
{
"valueCoding": {
Expand All @@ -574,18 +554,6 @@ class ResourceMapperTest {
]
}
]
},
{
"linkId": "9.1.3",
"answer": [
{
"valueCoding": {
"system": "dummy",
"code": "8888",
"display": "dummy"
}
}
]
}
]
}
Expand Down

0 comments on commit 848754f

Please sign in to comment.