Repository navigation
subjectmeasurement: a name found as a registered term round-trips by its name key - #301
Merged
Merged
Conversation
…its name key did-schema #240 (4fb28841) registers NCIT:C25150 "Age" ([age is NCIT Age]); the migrator now finds a v1 subjectmeasurement 'age' as that term (did2.convert.registeredTerm, by did2.schema.termNameKey) and writes the registry's label 'Age'. That turned V2 red in three tests: testSubjectMeasurementFoldsToObservationPlusAbsoluteReference ('Age' vs 'age'), testRawV1RoundTripMeasurement/testWriterShapesRoundTrip and testADifferentSourceIsReportedLost (lost: subjectmeasurement.measurement, v1 "age", rebuilt "Age"). [spelling is notation] (Jess Haley, 2026-10-26): equivalent spellings of one term are the same thing in the round trip. The inverse now adds a spec.same row for subjectmeasurement.measurement when the variable has a node, comparing by did2.schema.termNameKey (not any text: 'agex' is still lost). The migrator test expects the registered node and label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My did-schema change turned
V2red. Waltham-Data-Science/DID-schema#240 (merged as 4fb28841) registers NCIT:C25150 "Age" ([age is NCIT Age]). The migrator now finds a v1 subjectmeasurement namedageas that registered term, matching bydid2.schema.termNameKey(#294), and writes the registry's labelAge. Three tests onV2now fail; this PR's CI on #299 shows them:testMigratorsJMeasurementFilter/testSubjectMeasurementFoldsToObservationPlusAbsoluteReference:AgevsagetestRawV1RoundTripMeasurement/testWriterShapesRoundTrip: lostsubjectmeasurement.measurement, v1 "age", rebuilt "Age"testRawV1RoundTripMeasurement/testADifferentSourceIsReportedLost: same causeUnder [spelling is notation] (Jess Haley, 2026-10-26), equivalent spellings of one term are the same thing in the round trip. So:
+roundtrip/subjectmeasurement.m: when the rebuilt variable has a node, it adds aspec.samerow forsubjectmeasurement.measurement. The row compares the two names bydid2.schema.termNameKey. It does not accept any text: a v1 nameagexwould still be reported lost.Not run locally: there is no MATLAB here. CI is the first run.
Generated by Claude Code