-
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 #67 from MeasureAuthoringTool/MAT-6916
MAT-6916 Fetch And Udpate All Code Systems
- Loading branch information
Showing
11 changed files
with
349 additions
and
14 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
28 changes: 28 additions & 0 deletions
28
src/main/java/gov/cms/madie/terminology/models/CodeSystem.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,28 @@ | ||
package gov.cms.madie.terminology.models; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.Instant; | ||
import java.util.Date; | ||
|
||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.mongodb.core.mapping.Document; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor | ||
@Document | ||
public class CodeSystem { | ||
@Id String id; // title + version (both required fields) | ||
private String title; | ||
private String name; | ||
private String version; | ||
private String versionId; | ||
private String oid; // identifier[0].value oid of identifier List | ||
private Instant lastUpdated; // when queried | ||
private Date lastUpdatedUpstream; // when was resource last updated on vsac end | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/gov/cms/madie/terminology/repositories/CodeSystemRepository.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.terminology.repositories; | ||
|
||
import gov.cms.madie.terminology.models.CodeSystem; | ||
import org.springframework.data.mongodb.repository.MongoRepository; | ||
import java.util.Optional; | ||
|
||
public interface CodeSystemRepository extends MongoRepository<CodeSystem, String> { | ||
Optional<CodeSystem> findById(String id); | ||
|
||
} |
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
Oops, something went wrong.