Skip to content

Commit

Permalink
Fixes questionnaire response care plan reference lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
volsch committed Aug 18, 2019
1 parent bf11160 commit 46f10ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lastUpdated": "2018-11-19T21:31:14.644+01:00"
},
"questionnaire": "Questionnaire/MsWxkiY6tMS",
"partOf": {
"basedOn": {
"reference": "CarePlan/90"
},
"status": "in-progress",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected void transformInternal( @Nonnull FhirToDhisTransformerContext context,
{
final QuestionnaireResponse fhirQuestionnaireResponse = (QuestionnaireResponse) questionnaireResponse;
final Event event = (Event) scriptedEvent.getDhisResource();
final String enrollmentId = getAssignedDhisId( context, ruleInfo, scriptVariables, fhirQuestionnaireResponse.getPartOfFirstRep().getReferenceElement() );
final String enrollmentId = getAssignedDhisId( context, ruleInfo, scriptVariables, fhirQuestionnaireResponse.getBasedOnFirstRep().getReferenceElement() );

if ( enrollmentId == null )
{
Expand Down

0 comments on commit 46f10ab

Please sign in to comment.