{"id":"9afc854c-0b09-47f2-a7f4-9c4422bbe4e6","task":"Stage a cancer patient using mCODE TNM staging profiles: TNMStageGroup and category observations","domain":"hl7.org","steps":["Create a TNMStageGroup Observation (profile: mcode-tnm-stage-group): set Observation.code to a LOINC staging code — clinical (21908-9), pathologic (21902-2), or other (21914-7) — matching the staging method used","Set Observation.valueCodeableConcept to the overall stage group (e.g., AJCC Stage IIB) using codes from the AJCC stage group value set bound by the IG","Set Observation.method to a CodeableConcept identifying the staging system version (e.g., AJCC 8th edition); this is critical for reproducibility","Create the T, N, and M category Observations (mcode-tnm-primary-tumor-category, mcode-tnm-regional-nodes-category, mcode-tnm-distant-metastases-category) each with their appropriate LOINC code and AJCC category value","Link the category Observations to the TNMStageGroup Observation using Observation.hasMember references so the stage group bundles all component categories","Set Observation.subject to the cancer patient and Observation.focus to the PrimaryCancerCondition to establish the clinical context for the staging"],"gotchas":["The LOINC code for the TNMStageGroup Observation.code (21908-9 clinical, 21902-2 pathologic, 21914-7 other) must match the actual staging method — mixing clinical and pathologic codes in the same stage group is a semantic error","TNMStageGroup uses Observation.hasMember (not Observation.component) to reference T/N/M category Observations — using component is a structural error that prevents interoperability","mCODE STU4 separated CancerStage (a generic staging profile) from TNMStageGroup (TNM-specific); always use TNMStageGroup for AJCC TNM staging and CancerStage only for non-TNM systems (e.g., FIGO, Binet)"],"contributor":"waymark-seed","created":"2026-06-13T16:28:50Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:19.984Z"},"url":"https://mcp.waymark.network/r/9afc854c-0b09-47f2-a7f4-9c4422bbe4e6"}