Skip to content

Commit

Permalink
Merge pull request #167 from ielis/fix_pseudoexfoliation_example
Browse files Browse the repository at this point in the history
Fix SNOMEDCT issues in pseudoexfoliation phenopacket.
  • Loading branch information
ielis authored Apr 4, 2023
2 parents df57c6b + b9d769a commit c7dfb6f
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ public class Pseudoexfoliation implements PhenopacketExample {
public Pseudoexfoliation() {
// Metadaten
var authorAssertion = EvidenceBuilder.authorStatementEvidence("PMID:21532993", "Late-Onset Anterior Dislocation of a Posterior Chamber Intraocular Lens in a Patient Pseudoexfoliation Syndrome");

Resource snomed = Resource.newBuilder()
.setId("snomedct")
.setName("SNOMED CT")
.setNamespacePrefix("SNOMEDCT")
.setUrl("https://www.snomed.org/")
.setIriPrefix("https://browser.ihtsdotools.org/?perspective=full&edition=MAIN/2023-03-31&release=&languages=en&conceptId1=")
.setVersion("2023-03-31")
.build();

var metadata = MetaDataBuilder.builder("2021-05-14T10:35:00Z", "anonymous biocurator")
.addResource(Resources.uberonVersion("2022-08-19"))
.addResource(Resources.ncitVersion("22.07d"))
Expand All @@ -50,7 +60,7 @@ public Pseudoexfoliation() {
.addResource(Resources.loincVersion("2.73"))
.addResource(Resources.mondoVersion("2022-04-04"))
.addResource(Resources.drugCentralVersion("2022-08-22"))

.addResource(snomed)
.build();
Individual proband = IndividualBuilder.builder(PROBAND_ID).
ageAtLastEncounter("P70Y").
Expand Down Expand Up @@ -254,19 +264,19 @@ List<Measurement> getMeasurements() {
//IOP was successfully regulated OD after Nd:YAG iridotomy (direct postoperative IOP: 14 mm Hg).

// Anterior chamber depth was 3.93 mm. OS anterior chamber depth was 5.21 mm
OntologyClass acdod = ontologyClass("SCTID: 397312009", "Intraocular lens anterior chamber depth");
OntologyClass acdod = ontologyClass("SNOMEDCT:397312009", "Intraocular lens anterior chamber depth");
ReferenceRange ref2 = ReferenceRangeBuilder.of(acdod, 0, 10);

OntologyClass reAcDepth =
OntologyClassBuilder.ontologyClass("SCTID:397312009", "Intraocular lens anterior chamber depth");
OntologyClassBuilder.ontologyClass("SNOMEDCT:397312009", "Intraocular lens anterior chamber depth");
Value reAcdValue = ValueBuilder.of(Unit.millimeter(), 3.93, ref);//
var reAntChamberDepthMeasurement = MeasurementBuilder
.builder(reAcDepth, reAcdValue)
.timeObserved(p71Y1M1D)
.build();

OntologyClass leAcDepth =
OntologyClassBuilder.ontologyClass("SCTID:397312009", "Intraocular lens anterior chamber depth");
OntologyClassBuilder.ontologyClass("SNOMEDCT:397312009", "Intraocular lens anterior chamber depth");
Value leAcdValue = ValueBuilder.of(Unit.millimeter(), 5.21, ref);//
var leAntChamberDepthMeasurement = MeasurementBuilder
.builder(leAcDepth, leAcdValue)
Expand Down Expand Up @@ -355,7 +365,7 @@ List<PhenotypicFeature> getPhenotypicFeatures() {
.excluded()
.build();
PhenotypicFeature monovision = PhenotypicFeatureBuilder.
builder("SCTID:414775001", "monovision")// alternative to snomed?
builder("SNOMEDCT:414775001", "monovision")// alternative to snomed?
.excluded()
.build();
return List.of(emmetropia, myopia, iopi, excludedpupilabnormality, excludedPhacodonesis, monovision);
Expand Down

0 comments on commit c7dfb6f

Please sign in to comment.