-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from MeasureAuthoringTool/develop
Release 0.3.1
- Loading branch information
Showing
27 changed files
with
375 additions
and
22 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
src/main/java/gov/cms/madie/models/common/EndorserOrganization.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,22 @@ | ||
package gov.cms.madie.models.common; | ||
|
||
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 | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Document(collection = "endorserOrganization") | ||
public class EndorserOrganization { | ||
|
||
@Id | ||
private String id; | ||
|
||
private String endorserOrganization; | ||
|
||
} |
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 |
---|---|---|
|
@@ -20,4 +20,6 @@ public class Organization { | |
|
||
@Indexed(unique = true) | ||
private String oid; | ||
|
||
private String url; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/gov/cms/madie/models/common/ProgramUseContext.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,16 @@ | ||
package gov.cms.madie.models.common; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ProgramUseContext { | ||
private String codeSystem; | ||
private String code; | ||
private String display; | ||
} |
2 changes: 1 addition & 1 deletion
2
...gov/cms/madie/models/library/Version.java → .../gov/cms/madie/models/common/Version.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
14 changes: 9 additions & 5 deletions
14
src/main/java/gov/cms/madie/models/measure/Endorsement.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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
package gov.cms.madie.models.measure; | ||
|
||
import org.springframework.data.annotation.Id; | ||
|
||
import gov.cms.madie.models.validators.RequiredOnSelect; | ||
import javax.validation.constraints.Pattern; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Data | ||
@SuperBuilder(toBuilder = true) | ||
@NoArgsConstructor | ||
@RequiredOnSelect(selectedField = "endorser", requiredField = "endorsementId", message = "EndorsementId is required when endorser is not null") | ||
public class Endorsement { | ||
@Id private String id; | ||
private String endorser; | ||
private String endorsementId; | ||
|
||
private String endorser; | ||
private String endorserSystemId; | ||
@Pattern( | ||
regexp = "^[A-Za-z0-9]*$", message = "Endorsement Id is invalid") | ||
private String endorsementId; | ||
} |
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
10 changes: 10 additions & 0 deletions
10
src/main/java/gov/cms/madie/models/measure/MeasureErrorType.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,10 @@ | ||
package gov.cms.madie.models.measure; | ||
|
||
public enum MeasureErrorType { | ||
MISSING_ELM, | ||
ERRORS_ELM_JSON, | ||
MISMATCH_CQL_POPULATION_RETURN_TYPES, | ||
MISMATCH_CQL_RISK_ADJUSTMENT, | ||
MISMATCH_CQL_SUPPLEMENTAL_DATA, | ||
INVALID_TERMINOLOGY | ||
} |
17 changes: 12 additions & 5 deletions
17
src/main/java/gov/cms/madie/models/measure/MeasureMetaData.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 |
---|---|---|
@@ -1,28 +1,35 @@ | ||
package gov.cms.madie.models.measure; | ||
|
||
import gov.cms.madie.models.common.Organization; | ||
import javax.validation.Valid; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import java.util.List; | ||
|
||
@NoArgsConstructor | ||
@Data | ||
@Builder(toBuilder=true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class MeasureMetaData { | ||
private String steward; | ||
private List<String> developers; | ||
private Organization steward; | ||
private List<Organization> developers; | ||
private String description; | ||
private String copyright; | ||
private String disclaimer; | ||
private String rationale; | ||
private String guidance; | ||
private String clinicalRecommendation; | ||
|
||
private boolean draft; | ||
private List<Reference> references; | ||
@Valid | ||
private List<Endorsement> endorsements; | ||
private String riskAdjustment; | ||
private String definition; | ||
private boolean experimental; | ||
private String transmissionFormat; | ||
private String supplementalDataElements; | ||
|
||
} |
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
17 changes: 17 additions & 0 deletions
17
src/main/java/gov/cms/madie/models/measure/ReviewMetaData.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,17 @@ | ||
package gov.cms.madie.models.measure; | ||
|
||
import java.time.Instant; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder(toBuilder=true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ReviewMetaData { | ||
private Instant approvalDate; | ||
private Instant lastReviewDate; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/gov/cms/madie/models/measure/RiskAdjustment.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,15 @@ | ||
package gov.cms.madie.models.measure; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class RiskAdjustment extends SupplementalData { | ||
|
||
public RiskAdjustment() { | ||
super(); | ||
} | ||
|
||
public RiskAdjustment(String definition, String description) { | ||
super(definition, description); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/gov/cms/madie/models/measure/SupplementalData.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,18 @@ | ||
package gov.cms.madie.models.measure; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class SupplementalData { | ||
|
||
private String definition; | ||
|
||
private String description; | ||
|
||
} |
Oops, something went wrong.