Skip to content

Commit

Permalink
Updating resources to fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MJ1998 committed Jun 8, 2024
1 parent 03f7e1e commit a52bc97
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,10 @@ object PlanDefinition : Loadable() {
assertEquals(count, generatedCarePlan.contained.size)
}

fun hasOperationOutcome() {
fun hasRequestGroup() {
assertTrue(
generatedCarePlan.getContained().stream().anyMatch { r ->
r.resourceType.equals(ResourceType.OperationOutcome)
r.resourceType.equals(ResourceType.RequestGroup)
},
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"status": "draft",
"intent": "proposal",
"subject": {
"reference": "helloworld-patient-1"
"reference": "Patient/helloworld-patient-1"
},
"encounter": {
"reference": "helloworld-patient-1-encounter-1"
"reference": "Encounter/helloworld-patient-1-encounter-1"
},
"action": [
{
Expand All @@ -40,10 +40,10 @@
"status": "draft",
"intent": "proposal",
"subject": {
"reference": "helloworld-patient-1"
"reference": "Patient/helloworld-patient-1"
},
"encounter": {
"reference": "helloworld-patient-1-encounter-1"
"reference": "Encounter/helloworld-patient-1-encounter-1"
},
"activity": [
{
Expand Down
1 change: 1 addition & 0 deletions workflow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ android {
"META-INF/sun-jaxb.episode",
"META-INF/*.kotlin_module",
"readme.html",
"META-INF/INDEX.LIST",
),
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 Google LLC
* Copyright 2022-2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -181,7 +181,7 @@ class PlanDefinitionProcessorAndroidTest {
.withRepositoryPath("/plan-definition/base-repo")
.withParameters(parameters)
.apply()
.hasOperationOutcome()
.hasRequestGroup()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 Google LLC
* Copyright 2022-2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -176,7 +176,7 @@ class PlanDefinitionProcessorJavaTest {
.withRepositoryPath("/plan-definition/base-repo")
.withParameters(parameters)
.apply()
.hasOperationOutcome()
.hasRequestGroup()
}

@Test
Expand Down

0 comments on commit a52bc97

Please sign in to comment.