Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gen postman collection #283

Merged
Merged
12 changes: 12 additions & 0 deletions src/main/java/org/opencds/cqf/tooling/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,18 @@
- The -cpg flag indicates whether to mark the value set as computable with CPG profile indicators
- The -force flag indicates that even if the value set has a compose, this should reinfer it
- The -skipversion flag indicates that code system versions that are present in the expansion should not be expressed in the inferred compose

- PostmanCollection
- command: mvn exec: java -Dexec.args="-PostmanCollection (-pathtobundledir | -ptbd) (-outputpath | -op) (-version | -v) [-host] [-path] [-protocol] [-name]"
- This tooling generates a postman collection based on the measure transaction bundle
- The operation expects -ptbd is a directory containing one or more directories each of them contains measure output bundle
- The -op is the output directory for collection
- The -v expects values like r4 or dstu3
- The -host is the FHIR Restful server base ex, "-host=cqm-sandbox.alphora.com"
- The -path is the server path after base ex, "-path=cqf-ruler-r4/fhir/"
- The -protocol can be http or https
- The -name is the name for the postman collection

*/

public class Main {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/opencds/cqf/tooling/OperationFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ static Operation createOperation(String operationName) {
return new ExecuteMeasureTestOperation();
case "SpreadsheetToCQL":
return new SpreadsheetToCQLOperation();
case "PostmanCollection":
return new PostmanCollectionOperation();
default:
throw new IllegalArgumentException("Invalid operation: " + operationName);
}
Expand Down
Loading