Skip to content

Commit

Permalink
Merge pull request #190 from MeasureAuthoringTool/MAT-6674/generateAn…
Browse files Browse the repository at this point in the history
…dSetCmsIdOnBackend

added new Generator model
  • Loading branch information
sb-prateekkeerthi authored Feb 8, 2024
2 parents aca12e6 + 1d6497b commit 52a7657
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>gov.cms.madie</groupId>
<artifactId>madie-java-models</artifactId>
<version>0.6.19-SNAPSHOT</version>
<version>0.6.20-SNAPSHOT</version>
<name>madie-java-models</name>
<description>Java based models for MADiE microservices</description>
<properties>
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/gov/cms/madie/models/measure/Generator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package gov.cms.madie.models.measure;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@Document
public class Generator {
@Id
private String id;

private int currentValue;
}
3 changes: 3 additions & 0 deletions src/main/java/gov/cms/madie/models/measure/MeasureSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;

import java.util.List;

Expand All @@ -17,6 +18,8 @@ public class MeasureSet {
@Id
private String id;

private int cmsId;

@NotBlank(
groups={Measure.ValidationOrder1.class},message="Measure Set Id is required")
private String measureSetId;
Expand Down

0 comments on commit 52a7657

Please sign in to comment.