-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
210 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
core/src/main/java/org/opencds/cqf/ruler/utility/dstu3/Parameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package org.opencds.cqf.ruler.utility.dstu3; | ||
|
||
import org.hl7.fhir.dstu3.model.IdType; | ||
import org.opencds.cqf.ruler.utility.Ids; | ||
|
||
public class Parameters { | ||
|
||
private Parameters() { | ||
} | ||
|
||
public static org.hl7.fhir.dstu3.model.Parameters newParameters(IdType theId, | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.dstu3.model.Parameters p = newParameters(parts); | ||
p.setId(theId); | ||
return p; | ||
} | ||
|
||
public static org.hl7.fhir.dstu3.model.Parameters newParameters(String theIdPart, | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent... parts) { | ||
return newParameters((IdType) Ids.newId(org.hl7.fhir.dstu3.model.Parameters.class, theIdPart), parts); | ||
} | ||
|
||
public static org.hl7.fhir.dstu3.model.Parameters newParameters( | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.dstu3.model.Parameters p = new org.hl7.fhir.dstu3.model.Parameters(); | ||
for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent c : parts) { | ||
p.addParameter(c); | ||
} | ||
|
||
return p; | ||
} | ||
|
||
public static org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent c = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent(); | ||
c.setName(name); | ||
for (org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent p : parts) { | ||
c.addPart(p); | ||
} | ||
|
||
return c; | ||
} | ||
|
||
public static org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.dstu3.model.Type value, org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent c = newPart(name, parts); | ||
c.setValue(value); | ||
return c; | ||
} | ||
|
||
public static org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.dstu3.model.Resource resource, | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent c = newPart(name, parts); | ||
c.setResource(resource); | ||
return c; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
core/src/main/java/org/opencds/cqf/ruler/utility/r4/Parameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package org.opencds.cqf.ruler.utility.r4; | ||
|
||
import org.hl7.fhir.r4.model.IdType; | ||
import org.opencds.cqf.ruler.utility.Ids; | ||
|
||
public class Parameters { | ||
|
||
private Parameters() { | ||
} | ||
|
||
public static org.hl7.fhir.r4.model.Parameters newParameters(IdType theId, | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r4.model.Parameters p = newParameters(parts); | ||
p.setId(theId); | ||
return p; | ||
} | ||
|
||
public static org.hl7.fhir.r4.model.Parameters newParameters(String theIdPart, | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent... parts) { | ||
return newParameters((IdType) Ids.newId(org.hl7.fhir.r4.model.Parameters.class, theIdPart), parts); | ||
} | ||
|
||
public static org.hl7.fhir.r4.model.Parameters newParameters( | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r4.model.Parameters p = new org.hl7.fhir.r4.model.Parameters(); | ||
for (org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent c : parts) { | ||
p.addParameter(c); | ||
} | ||
|
||
return p; | ||
} | ||
|
||
public static org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent c = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent(); | ||
c.setName(name); | ||
for (org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent p : parts) { | ||
c.addPart(p); | ||
} | ||
|
||
return c; | ||
} | ||
|
||
public static org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.r4.model.Type value, org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent c = newPart(name, parts); | ||
c.setValue(value); | ||
return c; | ||
} | ||
|
||
public static org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.r4.model.Resource resource, | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent c = newPart(name, parts); | ||
c.setResource(resource); | ||
return c; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
core/src/main/java/org/opencds/cqf/ruler/utility/r5/Parameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package org.opencds.cqf.ruler.utility.r5; | ||
|
||
import org.hl7.fhir.r5.model.IdType; | ||
import org.opencds.cqf.ruler.utility.Ids; | ||
|
||
public class Parameters { | ||
|
||
private Parameters() { | ||
} | ||
|
||
public static org.hl7.fhir.r5.model.Parameters newParameters(IdType theId, | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r5.model.Parameters p = newParameters(parts); | ||
p.setId(theId); | ||
return p; | ||
} | ||
|
||
public static org.hl7.fhir.r5.model.Parameters newParameters(String theIdPart, | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent... parts) { | ||
return newParameters((IdType) Ids.newId(org.hl7.fhir.r5.model.Parameters.class, theIdPart), parts); | ||
} | ||
|
||
public static org.hl7.fhir.r5.model.Parameters newParameters( | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r5.model.Parameters p = new org.hl7.fhir.r5.model.Parameters(); | ||
for (org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent c : parts) { | ||
p.addParameter(c); | ||
} | ||
|
||
return p; | ||
} | ||
|
||
public static org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent c = new org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent(); | ||
c.setName(name); | ||
for (org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent p : parts) { | ||
c.addPart(p); | ||
} | ||
|
||
return c; | ||
} | ||
|
||
public static org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.r5.model.DataType value, org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent c = newPart(name, parts); | ||
c.setValue(value); | ||
return c; | ||
} | ||
|
||
public static org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent newPart(String name, | ||
org.hl7.fhir.r5.model.Resource resource, | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent... parts) { | ||
org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent c = newPart(name, parts); | ||
c.setResource(resource); | ||
return c; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...java/org/opencds/cqf/ruler/test/Urls.java → .../opencds/cqf/ruler/test/utility/Urls.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters