Skip to content

Commit

Permalink
Revert "Fix itemConstraint profile"
Browse files Browse the repository at this point in the history
This reverts commit 87a3d36.
  • Loading branch information
ruscoder committed Dec 5, 2024
1 parent 500af67 commit df3ef2d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
"requirements": "Req first",
"severity": "error",
"human": "Human first",
"expression": { "language": "text/fhirpath", "expression": "false" }
"expression": "false"
},
{
"key": "second",
"requirements": "Req second",
"severity": "error",
"human": "Human second",
"expression": { "language": "text/fhirpath", "expression": "true" }
"expression": "true"
}

]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"url": "expression",
"valueExpression": { "language": "text/fhirpath", "expression": "false" }
"valueString": "false"
},
{
"url": "requirements",
Expand All @@ -46,7 +46,7 @@
},
{
"url": "expression",
"valueExpression": { "language": "text/fhirpath", "expression": "true" }
"valueString": "true"
},
{
"url": "requirements",
Expand Down
4 changes: 2 additions & 2 deletions sdc-qrf/src/converter/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const extensionTransformers: ExtensionTransformer = {
.valueString!,
expression: itemConstraintExtension.find(
(obj) => obj.url === 'expression',
)!.valueExpression!,
)!.valueString!,
};
}),
};
Expand Down Expand Up @@ -223,7 +223,7 @@ export const extensionTransformers: ExtensionTransformer = {
},
{
url: 'expression',
valueExpression: itemConstraint.expression,
valueString: itemConstraint.expression,
},
],
}));
Expand Down
2 changes: 1 addition & 1 deletion shared/src/contrib/aidbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14514,7 +14514,7 @@ export interface QuestionnaireItemChoiceColumn {

export interface QuestionnaireItemConstraint {
/** NOTE: from extension expression */
expression: Expression;
expression: string;
/** NOTE: from extension human */
human: string;
/** NOTE: from extension key */
Expand Down

0 comments on commit df3ef2d

Please sign in to comment.