1.5.3 - release
SHINNYHRSN - Local Development build (v1.5.3) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Draft as of 2025-07-23 |
TTL representation of the SHINNYBundleProfile resource profile.
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:StructureDefinition ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "SHINNYBundleProfile"] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition SHINNYBundleProfile</b></p><a name=\"SHINNYBundleProfile\"> </a><a name=\"hcSHINNYBundleProfile\"> </a><a name=\"SHINNYBundleProfile-en-US\"> </a><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description & Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-SHINNYBundleProfile-definitions.html#Bundle\">Bundle</a><a name=\"Bundle\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;\" href=\"http://hl7.org/fhir/R4/conformance-rules.html#constraints\" title=\"This element has or is affected by constraints ( SHINNY-Patient-MRN, SHINNY-Patient-MA, SHINNY-Patient-SSN, SHINNY-Patient-Address, SHINNY-Patient-DOB, SHINNY-Patient-Gender, SHINNY-Patient-GenderId, SHINNY-Patient-Race-Ethnicity, SHINNY-Patient-Communication, SHINNY-Patient-MiddleName, SHINNY-Patient-Pronouns, shinny-sexual-orientation, SHINNY-Bundle-Obs-hasMember-RI, SHINNY-Encounter-Class, SHINNY-Encounter-Type, Encounter-PeriodStart, Encounter-PeriodEnd, SHINNY-Obs-Encounter, SHINNY-Obs-Patient, SHINNY-Obs-Code, SHINNY-Obs-Category, SHINNY-Screening-Patient, ObservationScreenRes-Langauge, ObservationScreenRes-CategoryDisplay, ObservationScreenRes-CodeCode, ObservationScreenRes-CodeDisplay, ObservationScreenRes-Interpretation, SHINNY-Screening-Consent, Assessment-ConditionID, Assessment-ConditionSNOMED, Assessment-ConditionICD10, Assessment-ApprovalQuestionnaire, Assessment-OutreachQuestionnaire, Assessment-AdminQuestionnaire, Assessment-ServiceDupQuestionnaire, SHINNY-Assessment-Encounter, SHINNY-Assessment-Patient, ServiceRequest-Quantity, ServiceRequest-CategoryCode, ServiceRequest-OccurrencePeriod, ServiceRequest-AuthoredOn, SHINNYServiceRequestSDOHCategory, Task-StatusReason, Task-Repetitions, Task-EndPeriod, Task-StartPeriod, Referral-ApprovalQuestionnaire, Referral-HRSNOutreachQuestionnaire, Referral-SCNOutreachQuestionnaire, SHINNY-Bundle-Required-Resources, SHINNY-Bundle-Required, SHINNY-Bundle-Patient-Org-RI, SHINNY-Bundle-Patient-Encounter-RI, SHINNY-Bundle-Obs-derivedFrom-RI, SHINNY-Bundle-Obs-Patient-RI, SHINNY-Bundle-Obs-Encounter-RI, Screening-Crosswalk-44250-9, Screening-Crosswalk-44255-8, Screening-Crosswalk-68516-4, Screening-Crosswalk-68517-2, Screening-Crosswalk-68524-8, Screening-Crosswalk-69858-9, Screening-Crosswalk-69861-3, Screening-Crosswalk-71802-3, Screening-Crosswalk-76513-1, Screening-Crosswalk-88122-7, Screening-Crosswalk-88123-5, Screening-Crosswalk-89555-7, Screening-Crosswalk-93030-5, Screening-Crosswalk-93038-8, Screening-Crosswalk-93159-2, Screening-Crosswalk-95530-2, Screening-Crosswalk-95615-1, Screening-Crosswalk-95616-9, Screening-Crosswalk-95617-7, Screening-Crosswalk-95618-5, Screening-Crosswalk-96778-6, Screening-Crosswalk-96779-4, Screening-Crosswalk-96780-2, Screening-Crosswalk-96781-0, Screening-Crosswalk-96782-8, Screening-Crosswalk-96842-0, Screening-Crosswalk-97027-7, SHINNY-Consent-Category, Consent-ProvisionType, SHINNY-Bundle-screening-consent, Goal-StatusDate, Goal-AchievementStatus, Location-Address, Location-Type, Organization-Address, Organization-ID, Organization-Type, SHINNY-Resources-Profile-Check )\">C</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Contains a collection of resources</span><br/><span style=\"font-weight:bold\">SHINNY-Patient-MRN: </span>Every bundle should always have only 1 MR (i.e MRN) Object within patient.identifier, system.contains('facility') and value (MRN) is provided<br/><span style=\"font-weight:bold\">SHINNY-Patient-MA: </span>Every bundle should always have only 1 Medicaid CIN (i.e MA) Object within patient.identifier AND the CIN is always in the format of 2 letters, 5 numbers, and 1 letter, e.g., 'AB12345C'<br/><span style=\"font-weight:bold\">SHINNY-Patient-SSN: </span>Every bundle should always have only 1 SSN (i.e SS) Object within patient.identifier<br/><span style=\"font-weight:bold\">SHINNY-Patient-Address: </span>All elements of address should be present<br/><span style=\"font-weight:bold\">SHINNY-Patient-DOB: </span>birthDate should be a valid date<br/><span style=\"font-weight:bold\">SHINNY-Patient-Gender: </span>Gender should be present<br/><span style=\"font-weight:bold\">SHINNY-Patient-GenderId: </span>Gender Id should be present<br/><span style=\"font-weight:bold\">SHINNY-Patient-Race-Ethnicity: </span>Race & Ethnicity should be present<br/><span style=\"font-weight:bold\">SHINNY-Patient-Communication: </span>Communication should exist<br/><span style=\"font-weight:bold\">SHINNY-Patient-MiddleName: </span>MiddleName should be present<br/><span style=\"font-weight:bold\">SHINNY-Patient-Pronouns: </span>Pronouns should be present<br/><span style=\"font-weight:bold\">shinny-sexual-orientation: </span>If there is no component or hasMember element then either a value[x] or a data absent reason must be present<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Obs-hasMember-RI: </span>Checks for RI between Observation & child Observations<br/><span style=\"font-weight:bold\">SHINNY-Encounter-Class: </span>Ensure that the Encounter resource has a class code; Ensure that the Encounter resource has a class code system<br/><span style=\"font-weight:bold\">SHINNY-Encounter-Type: </span>Ensure that the Encounter resource has a status code<br/><span style=\"font-weight:bold\">Encounter-PeriodStart: </span>Ensure that all Encounters include a value for period.start.<br/><span style=\"font-weight:bold\">Encounter-PeriodEnd: </span>Ensure that all finished Encounters include a value for period.end.<br/><span style=\"font-weight:bold\">SHINNY-Obs-Encounter: </span>SDOH Observations should have an Encounter<br/><span style=\"font-weight:bold\">SHINNY-Obs-Patient: </span>SDOH Observations should have a Patient<br/><span style=\"font-weight:bold\">SHINNY-Obs-Code: </span>Ensure that all Observation resources have screening code; Ensure that all Observation resources have screening code system<br/><span style=\"font-weight:bold\">SHINNY-Obs-Category: </span>Ensure that all Observation categories have an SDOH code<br/><span style=\"font-weight:bold\">SHINNY-Screening-Patient: </span>SDOH Screening Observations should have an Patient<br/><span style=\"font-weight:bold\">ObservationScreenRes-Langauge: </span>Ensure that all Observation Screening Responses have a language.<br/><span style=\"font-weight:bold\">ObservationScreenRes-CategoryDisplay: </span>Ensure that all Observation Screening Responses have a category display.<br/><span style=\"font-weight:bold\">ObservationScreenRes-CodeCode: </span>Ensure that all Observation Screening Responses have a code code.<br/><span style=\"font-weight:bold\">ObservationScreenRes-CodeDisplay: </span>Ensure that all Observation Screening Responses have a code dispay.<br/><span style=\"font-weight:bold\">ObservationScreenRes-Interpretation: </span>Ensure that specific Observation Screening Responses have an interpretation.<br/><span style=\"font-weight:bold\">SHINNY-Screening-Consent: </span>All screening bundles must include a consent<br/><span style=\"font-weight:bold\">Assessment-ConditionID: </span>Ensure that all final assessments have a Condition identifier.<br/><span style=\"font-weight:bold\">Assessment-ConditionSNOMED: </span>Ensure that all final assessments have a Condition category SNOMED term.<br/><span style=\"font-weight:bold\">Assessment-ConditionICD10: </span>Ensure that all final assessments have a Condition ICD-10 term.<br/><span style=\"font-weight:bold\">Assessment-ApprovalQuestionnaire: </span>Ensure that all Assessment Questionnaire bundles have a response to PatientAssessmentApproval.<br/><span style=\"font-weight:bold\">Assessment-OutreachQuestionnaire: </span>Ensure that all Assessment Questionnaire bundles with patient approval contain a Patient Assessment Outreach Date and a Patient Assessment Status.<br/><span style=\"font-weight:bold\">Assessment-AdminQuestionnaire: </span>Ensure that all Assessment Questionnaire bundles have a response to the service duplication indicators.<br/><span style=\"font-weight:bold\">Assessment-ServiceDupQuestionnaire: </span>Ensure that all Assessment Questionnaire bundles have a response to the service duplication indicators.<br/><span style=\"font-weight:bold\">SHINNY-Assessment-Encounter: </span>Assessment-Encounter should exist<br/><span style=\"font-weight:bold\">SHINNY-Assessment-Patient: </span>Assessment-Subject should exist<br/><span style=\"font-weight:bold\">ServiceRequest-Quantity: </span>Ensure that all Service Requests have a quantity.<br/><span style=\"font-weight:bold\">ServiceRequest-CategoryCode: </span>Ensure that all Service Requests have a category code.<br/><span style=\"font-weight:bold\">ServiceRequest-OccurrencePeriod: </span>Ensure that all Service Requests have an occurrence period start and end, or occurrence datetime.<br/><span style=\"font-weight:bold\">ServiceRequest-AuthoredOn: </span>Ensure that all Service Requests have a authored on date.<br/><span style=\"font-weight:bold\">SHINNYServiceRequestSDOHCategory: </span>Ensure that all Service Request categories have an SDOH code<br/><span style=\"font-weight:bold\">Task-StatusReason: </span>Ensure that all tasks exists, have a statusReason If the Task.status is rejected, cancelled, completed, or failed.<br/><span style=\"font-weight:bold\">Task-Repetitions: </span>Ensure that all Tasks have a value for repetitions.<br/><span style=\"font-weight:bold\">Task-EndPeriod: </span>Ensure that all completed Tasks have an end execution period.<br/><span style=\"font-weight:bold\">Task-StartPeriod: </span>Ensure that all Tasks have a starting execution period.<br/><span style=\"font-weight:bold\">Referral-ApprovalQuestionnaire: </span>Ensure that all Referral Questionnaire bundles have a response to PatientReferralApproval.<br/><span style=\"font-weight:bold\">Referral-HRSNOutreachQuestionnaire: </span>Ensure that all approved Referral Questionnaire bundles have a response to HRSNServiceProviderReferralOutreachDate.<br/><span style=\"font-weight:bold\">Referral-SCNOutreachQuestionnaire: </span>Ensure that all approved Referral Questionnaire bundles have a response to SCNReferralOutreachDate.<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Required-Resources: </span>Every bundle should always have one and only one 'Patient' & 'Encounter' and atleast one Org<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Required: </span>Every submitted resource should be part of a bundle.<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Patient-Org-RI: </span>Checks for RI between Patient & Assigning Org<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Patient-Encounter-RI: </span>Checks for RI between Patient & Encounter<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Obs-derivedFrom-RI: </span>Checks for RI between Observation & child Observation<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Obs-Patient-RI: </span>Checks for RI between Obs & Patient<br/><span style=\"font-weight:bold\">SHINNY-Bundle-Obs-Encounter-RI: </span>Checks for RI between Screening Obs & Encounter<br/><span style=\"font-weight:bold\">Screening-Crosswalk-44250-9: </span>If the ObservationScreeningResponse LOINC question code is 44250-9 then answer codes must be one of the following:\nLA6568-5\nLA6569-3\nLA6570-1\nLA6571-9<br/><span style=\"font-weight:bold\">Screening-Crosswalk-44255-8: </span>If the ObservationScreeningResponse LOINC question code is 44255-8 then answer codes must be one of the following:\nLA6568-5\nLA6569-3\nLA6570-1\nLA6571-9<br/><span style=\"font-weight:bold\">Screening-Crosswalk-68516-4: </span>If the ObservationScreeningResponse LOINC question code is 68516-4 then answer codes must be one of the following:\nLA6111-4\nLA13942-0\nLA19282-5\nLA28855-7\nLA28858-1\nLA28854-0\nLA28853-2\nLA28891-2\nLA32059-0\nLA32060-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-68517-2: </span>If the ObservationScreeningResponse LOINC question code is 68517-2 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2<br/><span style=\"font-weight:bold\">Screening-Crosswalk-68524-8: </span>If the ObservationScreeningResponse LOINC question code is 68524-8 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2<br/><span style=\"font-weight:bold\">Screening-Crosswalk-69858-9: </span>If the ObservationScreeningResponse LOINC question code is 69858-9 then answer codes must be one of the following:\nLA33-6\nLA32-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-69861-3: </span>If the ObservationScreeningResponse LOINC question code is 69861-3 then answer codes must be one of the following:\nLA33-6\nLA32-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-71802-3: </span>If the ObservationScreeningResponse LOINC question code is 71802-3 then answer codes must be one of the following: LA31993-1, LA31994-9, LA31995-6<br/><span style=\"font-weight:bold\">Screening-Crosswalk-76513-1: </span>If the ObservationScreeningResponse LOINC question code is 76513-1 then answer codes must be one of the following:\nLA15832-1\nLA22683-9\nLA31980-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-88122-7: </span>If the ObservationScreeningResponse LOINC question code is 88122-7 then answer codes must be one of the following:\nLA28397-0\nLA6729-3\nLA28398-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-88123-5: </span>If the ObservationScreeningResponse LOINC question code is 88123-5 then answer codes must be one of the following:\nLA28397-0\nLA6729-3\nLA28398-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-89555-7: </span>If the ObservationScreeningResponse LOINC question code is 89555-7 then answer codes must be one of the following:\nLA6111-4\nLA6112-2\nLA6113-0\nLA6114-8\nLA6115-5\nLA10137-0\nLA10138-8\nLA10139-6<br/><span style=\"font-weight:bold\">Screening-Crosswalk-93030-5: </span>If the ObservationScreeningResponse LOINC question code is 93030-5 then answer codes must be one of the following:\nLA33-6\nLA32-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-93038-8: </span>If the ObservationScreeningResponse LOINC question code is 93038-8 then answer codes must be one of the following:\nLA6568-5\nLA13863-8\nLA13909-9\nLA13902-4\nLA13914-9\nLA30122-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-93159-2: </span>If the ObservationScreeningResponse LOINC question code is 93159-2 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA10044-8\nLA9933-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-95530-2: </span>If the ObservationScreeningResponse LOINC question code is 95530-2 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2<br/><span style=\"font-weight:bold\">Screening-Crosswalk-95615-1: </span>If the ObservationScreeningResponse LOINC question code is 95615-1 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9<br/><span style=\"font-weight:bold\">Screening-Crosswalk-95616-9: </span>If the ObservationScreeningResponse LOINC question code is 95616-9 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9<br/><span style=\"font-weight:bold\">Screening-Crosswalk-95617-7: </span>If the ObservationScreeningResponse LOINC question code is 95617-7 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9<br/><span style=\"font-weight:bold\">Screening-Crosswalk-95618-5: </span>If the ObservationScreeningResponse LOINC question code is 95618-5 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9<br/><span style=\"font-weight:bold\">Screening-Crosswalk-96778-6: </span>If the ObservationScreeningResponse LOINC question code is 96778-6 then answer codes must be one of the following:\nLA31996-4\nLA28580-1\nLA31997-2\nLA31998-0\nLA31999-8\nLA32000-4\nLA32001-2\nLA9-3<br/><span style=\"font-weight:bold\">Screening-Crosswalk-96779-4: </span>If the ObservationScreeningResponse LOINC question code is 96779-4 then answer codes must be one of the following:\nLA33-6\nLA32-8\nLA32002-0<br/><span style=\"font-weight:bold\">Screening-Crosswalk-96780-2: </span>If the ObservationScreeningResponse LOINC question code is 96780-2 then answer codes must be one of the following:\nLA31981-6\nLA31982-4\nLA31983-2<br/><span style=\"font-weight:bold\">Screening-Crosswalk-96781-0: </span>If the ObservationScreeningResponse LOINC question code is 96781-0 then answer codes must be one of the following:\nLA31976-6\nLA31977-4\nLA31978-2\nLA31979-0<br/><span style=\"font-weight:bold\">Screening-Crosswalk-96782-8: </span>If the ObservationScreeningResponse LOINC question code is 96782-8 then answer codes must be one of the following:\nLA33-6\nLA32-8<br/><span style=\"font-weight:bold\">Screening-Crosswalk-96842-0: </span>If the ObservationScreeningResponse LOINC question code is 96842-0 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2<br/><span style=\"font-weight:bold\">Screening-Crosswalk-97027-7: </span>If the ObservationScreeningResponse LOINC question code is 97027-7 then answer codes must be one of the following:\nLA33-6\nLA32-8<br/><span style=\"font-weight:bold\">SHINNY-Consent-Category: </span>Patient Consent category code is 59284-0<br/><span style=\"font-weight:bold\">Consent-ProvisionType: </span>Ensure that all Consents include a value for provision type.<br/><span style=\"font-weight:bold\">SHINNY-Bundle-screening-consent: </span>Ensures all bundles with a screening included also includes the consent profile.<br/><span style=\"font-weight:bold\">Goal-StatusDate: </span>Ensure that all Goals include a value for statusDate.<br/><span style=\"font-weight:bold\">Goal-AchievementStatus: </span>Ensure that all Goals include a value for achivementStatus.<br/><span style=\"font-weight:bold\">Location-Address: </span>Ensure that all Location resources include all address elements.<br/><span style=\"font-weight:bold\">Location-Type: </span>Ensure that all Location resources include a value for type.<br/><span style=\"font-weight:bold\">Organization-Address: </span>Ensure that all Organization resources include all address elements.<br/><span style=\"font-weight:bold\">Organization-ID: </span>Ensure that all Organization resources include a value for one of the following id types: NPI, TAX, or MA.<br/><span style=\"font-weight:bold\">Organization-Type: </span>Ensure that all Organization resources include a value for type.<br/><span style=\"font-weight:bold\">SHINNY-Resources-Profile-Check: </span>SHINNY-Resources-Profile-Check</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-SHINNYBundleProfile-definitions.html#Bundle.id\">id</a><a name=\"Bundle.id\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#id\">id</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Logical id of this artifact</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-SHINNYBundleProfile-definitions.html#Bundle.meta\">meta</a><a name=\"Bundle.meta\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"StructureDefinition-SHINNYMeta.html\" title=\"Meta\">SHINNYMeta</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Metadata about the resource</span></td></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral ] ; # fhir:url [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI] ; # fhir:version [ fhir:v "1.5.3"] ; # fhir:name [ fhir:v "SHINNYBundleProfile"] ; # fhir:title [ fhir:v "SHINNY SDOH Bundle Profile"] ; # fhir:status [ fhir:v "draft"] ; # fhir:experimental [ fhir:v false] ; # fhir:date [ fhir:v "2025-07-23T17:01:14-04:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "shinny"] ; # fhir:contact ( [ fhir:name [ fhir:v "shinny" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://shinny.org/us/ny/hrsn/index.html" ] ] ) ] ) ; # fhir:description [ fhir:v "* SHINNY HRSN: Needed for submission of all FHIR profiles.\n* Profiled off of the [base FHIR](https://www.hl7.org/fhir/bundle.html): A container for a collection of resources."] ; # fhir:fhirVersion [ fhir:v "4.0.1"] ; # fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:uri [ fhir:v "http://hl7.org/v2"^^xsd:anyURI ] ; fhir:name [ fhir:v "HL7 v2 Mapping" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:uri [ fhir:v "http://hl7.org/v3"^^xsd:anyURI ] ; fhir:name [ fhir:v "RIM Mapping" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:uri [ fhir:v "http://hl7.org/v3/cda"^^xsd:anyURI ] ; fhir:name [ fhir:v "CDA (R2)" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:uri [ fhir:v "http://hl7.org/fhir/fivews"^^xsd:anyURI ] ; fhir:name [ fhir:v "FiveWs Pattern Mapping" ] ] ) ; # fhir:kind [ fhir:v "resource"] ; # fhir:abstract [ fhir:v false] ; # fhir:type [ fhir:v "Bundle"^^xsd:anyURI] ; # fhir:baseDefinition [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ; # fhir:derivation [ fhir:v "constraint"] ; # fhir:snapshot [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "4.0.1" ] ] ) ; ( fhir:element [ fhir:id [ fhir:v "Bundle" ] ; fhir:path [ fhir:v "Bundle" ] ; fhir:short [ fhir:v "Contains a collection of resources" ] ; fhir:definition [ fhir:v "A container for a collection of resources." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Bundle" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:constraint [ fhir:key [ fhir:v "bdl-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "total only when a search or history" ] ; fhir:expression [ fhir:v "total.empty() or (type = 'searchset') or (type = 'history')" ] ; fhir:xpath [ fhir:v "not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "entry.search only when a search" ] ; fhir:expression [ fhir:v "entry.search.empty() or (type = 'searchset')" ] ; fhir:xpath [ fhir:v "not(f:entry/f:search) or (f:type/@value = 'searchset')" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-3" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "entry.request mandatory for batch/transaction/history, otherwise prohibited" ] ; fhir:expression [ fhir:v "entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))" ] ; fhir:xpath [ fhir:v "not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-4" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited" ] ; fhir:expression [ fhir:v "entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))" ] ; fhir:xpath [ fhir:v "not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-7" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)" ] ; fhir:expression [ fhir:v "(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()" ] ; fhir:xpath [ fhir:v "(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-9" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A document must have an identifier with a system and a value" ] ; fhir:expression [ fhir:v "type = 'document' implies (identifier.system.exists() and identifier.value.exists())" ] ; fhir:xpath [ fhir:v "not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-10" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A document must have a date" ] ; fhir:expression [ fhir:v "type = 'document' implies (timestamp.hasValue())" ] ; fhir:xpath [ fhir:v "not(f:type/@value = 'document') or exists(f:timestamp/@value)" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-11" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A document must have a Composition as the first resource" ] ; fhir:expression [ fhir:v "type = 'document' implies entry.first().resource.is(Composition)" ] ; fhir:xpath [ fhir:v "not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-12" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A message must have a MessageHeader as the first resource" ] ; fhir:expression [ fhir:v "type = 'message' implies entry.first().resource.is(MessageHeader)" ] ; fhir:xpath [ fhir:v "not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-MRN" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every bundle should always have only 1 MR (i.e MRN) Object within patient.identifier, system.contains('facility') and value (MRN) is provided" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).identifier.where(type.coding.code='MR' and value.trim().length() > 0).count() = 1" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-MA" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every bundle should always have only 1 Medicaid CIN (i.e MA) Object within patient.identifier AND the CIN is always in the format of 2 letters, 5 numbers, and 1 letter, e.g., 'AB12345C'" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).identifier.where(type.coding.code='MA' and value.trim().length() > 0).count() = 1\n and\n entry.select(resource as Patient).identifier.where(\n value.trim().length() = 8\n and\n type.coding.code='MA'\n and\n value.substring(0,1).matches('^[a-zA-Z]+$')\n and\n value.substring(1,1).matches('^[a-zA-Z]+$')\n and\n value.substring(2,1).matches('^[0-9]*$')\n and\n value.substring(3,1).matches('^[0-9]*$')\n and\n value.substring(4,1).matches('^[0-9]*$')\n and\n value.substring(5,1).matches('^[0-9]*$')\n and\n value.substring(6,1).matches('^[0-9]*$')\n and\n value.substring(7,1).matches('^[a-zA-Z]+$')\n ).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-SSN" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Every bundle should always have only 1 SSN (i.e SS) Object within patient.identifier" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).identifier.where(type.coding.code='SS' and value.trim().length() > 0).count() <= 1" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Address" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "All elements of address should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).\n address.where(line.count() > 0\n and city.trim().length() > 0\n and state.trim().length() > 0\n and postalCode.trim().length() > 0\n and district.trim().length() > 0).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-DOB" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "birthDate should be a valid date" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).birthDate.trim().length() = 10 and entry.select(resource as Patient).birthDate.trim().split('-').count() = 3" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Gender" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Gender should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).where(gender.exists() and gender.trim().length()).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-GenderId" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Gender Id should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex').count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Race-Ethnicity" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Race & Ethnicity should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-race').extension.where(url='ombCategory' and value.system = 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor').exists().not()\nimplies\nentry.select(resource as Patient).\n extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-race').exists()\n and entry.select(resource as Patient).\n extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Communication" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Communication should exist" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).communication.exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-MiddleName" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "MiddleName should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).name\n .extension.where(url.contains('middle-name'))\n .value.trim().length()>0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Pronouns" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Pronouns should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).extension.where(url='http://shinny.org/us/ny/hrsn/ValueSet/SHINNYPersonalPronounsVS').exists()\n implies\n entry.select(resource as Patient).extension.where(url='http://shinny.org/us/ny/hrsn/ValueSet/SHINNYPersonalPronounsVS' and value.select($this as CodeableConcept).coding.code.exists()).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "shinny-sexual-orientation" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If there is no component or hasMember element then either a value[x] or a data absent reason must be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shin-ny-observation-sexual-orientation')).exists()\n implies\n entry.select(resource as Observation).where(meta.profile.contains('shin-ny-observation-sexual-orientation'))\n .where(value.exists() or dataAbsentReason.exists())\n .count()=1" ] ; fhir:xpath [ fhir:v "true" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-hasMember-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Observation & child Observations" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .exists(hasMember.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n implies\n\n entry.select(resource as Observation)\n .where(hasMember.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n .hasMember.select(reference.split('/')[1])\n .union(\n entry.select(resource as Observation)\n .where(hasMember.exists().not()\n and meta.profile.contains('shinny-observation-screening-response')).id)\n .count() =\n entry.select(resource as Observation)\n .where(hasMember.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n .hasMember.reference\n .count()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Encounter-Class" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that the Encounter resource has a class code; Ensure that the Encounter resource has a class code system" ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter).class\n .all(code.exists() and system.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Encounter-Type" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that the Encounter resource has a status code" ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter).type.coding\n .all(code.exists() and system.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Encounter-PeriodStart" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Encounters include a value for period.start." ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter)\n .all(period.start.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Encounter-PeriodEnd" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all finished Encounters include a value for period.end." ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter)\n .where(status.contains('finished'))\n .all(period.end.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Encounter" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "SDOH Observations should have an Encounter" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-screening-response'))\n .all(encounter.reference.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Patient" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "SDOH Observations should have a Patient" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation'))\n .all(subject.reference.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Code" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation resources have screening code; Ensure that all Observation resources have screening code system" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(\n code.coding.system.exists().not()\n or\n code.coding.code.not().exists().not())\n .count() = 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Category" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all Observation categories have an SDOH code" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .all(category.coding.system\n .exists($this.contains('SDOHCC-CodeSystemTemporaryCodes')))" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Screening-Patient" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "SDOH Screening Observations should have an Patient" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening') and hasMember.exists())\n .all(subject.reference.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-Langauge" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a language." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response') )\n .all(language.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-CategoryDisplay" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a category display." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response') )\n .category.coding.where( system.contains('/CodeSystem/observation-category').not() ).\n all(display.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-CodeCode" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a code code." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .code.coding\n .all(code.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-CodeDisplay" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a code dispay." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .code.coding\n .all(display.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-Interpretation" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that specific Observation Screening Responses have an interpretation." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .where(derivedFrom.exists().not())\n .all(interpretation.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Screening-Consent" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All screening bundles must include a consent" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-screening-response')).exists()\n implies\n entry.select(resource as Consent).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ConditionID" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all final assessments have a Condition identifier." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment') and status = 'final').exists()\n implies entry.select(resource as Observation)\n .where( meta.profile.contains('shinny-observation-assessment') and status = 'final' ).count()\n = entry.select(resource as Condition).id.count()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ConditionSNOMED" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all final assessments have a Condition category SNOMED term." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment') and status='final').exists()\n implies\n entry.select(resource as Condition).count() \n = entry.select(resource as Condition).select(code.coding)\n .where(system.contains('http://snomed.info/sct'))\n .count()\n and\n entry.select(resource as Condition).count() !=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ConditionICD10" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all final assessments have a Condition ICD-10 term." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment') and status='final').exists()\n implies\n entry.select(resource as Condition).count() \n = entry.select(resource as Condition).select(code.coding)\n .where(system.contains('http://hl7.org/fhir/sid/icd-10-cm'))\n .count()\n and\n entry.select(resource as Condition).count() !=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ApprovalQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles have a response to PatientAssessmentApproval." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n or\n (QuestionnaireResponse|repeat('No'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-OutreachQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles with patient approval contain a Patient Assessment Outreach Date and a Patient Assessment Status." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|PatientAssessmentOutreachDate)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|PatientAssessmentOutreachStatus)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-AdminQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles have a response to the service duplication indicators." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|EnhancedPopulationCheck)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ServiceDuplicationCheck)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ClinicalCriteriaCheck)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ServiceDupQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles have a response to the service duplication indicators." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentHousingProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentNutritionalEducationProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentNutritionalServicesProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentFoodServiceProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentSNAPProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentWICProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentTANFProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentTransportationProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|MedicationRequiringRefrigerationIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|BreastMilkRequiringRefrigerationIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ADLs/IADLsIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|MedicalRespiteRequirementsIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ChildcareAssistanceIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Assessment-Encounter" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Assessment-Encounter should exist" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment')).exists()\n implies\n entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment'))\n .where(encounter.reference.exists().not())\n .count()=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Assessment-Patient" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Assessment-Subject should exist" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment')).exists()\n implies\n entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment'))\n .where(subject.reference.exists().not())\n .count()=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-Quantity" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have a quantity." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\nimplies\nentry.select(resource as ServiceRequest)\n .all(quantity.value.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-CategoryCode" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have a category code." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\n implies\n entry.select(resource as ServiceRequest).(\n all(category.exists())\n and category.all(coding.exists())\n and category.coding.all(code.exists())\n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-OccurrencePeriod" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have an occurrence period start and end, or occurrence datetime." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\n implies\n entry.select(resource as ServiceRequest).count() = \n (\n entry.select(resource as ServiceRequest).where(occurrence is Period).select(occurrence)\n .where(start and end).count()\n +\n entry.select(resource as ServiceRequest).where(occurrence is dateTime).count()\n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-AuthoredOn" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have a authored on date." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\n implies\n entry.select(resource as ServiceRequest).all(authoredOn.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNYServiceRequestSDOHCategory" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all Service Request categories have an SDOH code" ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest)\n .where(meta.profile.contains('SHINNYSDOHServiceRequest'))\n .all(category.coding.system\n .exists($this.contains('SDOHCC-CodeSystemTemporaryCodes')))" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-StatusReason" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all tasks exists, have a statusReason If the Task.status is rejected, cancelled, completed, or failed." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).where(status = 'rejected' or status = 'cancelled' or status = 'completed' or status = 'failed').exists()\n implies\n entry.select(resource as Task).where(status = 'rejected' or status = 'cancelled' or status = 'completed' or status = 'failed')\n .all(statusReason.text.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-Repetitions" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Tasks have a value for repetitions." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).exists()\n implies\n entry.select(resource as Task).all(restriction.repetitions.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-EndPeriod" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all completed Tasks have an end execution period." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).where(status = 'completed').exists()\n implies\n entry.select(resource as Task).where(status = 'completed').all(executionPeriod.end.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-StartPeriod" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Tasks have a starting execution period." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).exists()\n implies\n entry.select(resource as Task).all(executionPeriod.start.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Referral-ApprovalQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Referral Questionnaire bundles have a response to PatientReferralApproval." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n or\n (QuestionnaireResponse|repeat('No'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Referral-HRSNOutreachQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all approved Referral Questionnaire bundles have a response to HRSNServiceProviderReferralOutreachDate." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|HRSNServiceProviderReferralOutreachDate)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Referral-SCNOutreachQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all approved Referral Questionnaire bundles have a response to SCNReferralOutreachDate." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|SCNReferralOutreachDate)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Required-Resources" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every bundle should always have one and only one 'Patient' & 'Encounter' and atleast one Org" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).count() = 1\n and entry.select(resource as Encounter).count() > 0\n and entry.select(resource as Organization).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Required" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every submitted resource should be part of a bundle." ] ; fhir:expression [ fhir:v "select($this as Bundle).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Patient-Org-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Patient & Assigning Org" ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).id\n contains\n entry.select(resource as Patient)\n .identifier.where(type.coding.code='MR')\n .assigner.reference.split('/')[1]" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Patient-Encounter-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Patient & Encounter" ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter)\n .select($this.subject.reference.split('/')[1])\n contains entry.select(resource as Patient).id" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-derivedFrom-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Observation & child Observation" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(derivedFrom.exists() and\n (meta.where(profile.lower().contains('shinny-observation'))\n or meta.where(profile.lower().contains('sdohcc-observation'))))\n .derivedFrom.select(reference.split('/')[1])\n .intersect(\n entry.select(resource as Observation).where(derivedFrom.empty().not() and\n (meta.where(profile.lower().contains('shin-ny-observation-screening-response'))\n or meta.where(profile.lower().contains('sdohcc-observationscreeningresponse')))).id)\n .count() =\n entry.select(resource as Observation)\n .where(derivedFrom.exists() and\n (meta.where(profile.lower().contains('shin-ny-observation-screening-response'))\n or $this.meta.where(profile.lower().contains('sdohcc-observationscreeningresponse'))))\n .derivedFrom.reference\n .count()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-Patient-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Obs & Patient" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(encounter.reference.exists() and meta.profile.contains('shinny-observation')).count()>1\n implies\n entry.select(resource as Observation)\n .where(encounter.reference.exists() and meta.profile.contains('shinny-observation'))\n .encounter.reference.distinct()\n .contains(entry.select(resource as Encounter).id)" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-Encounter-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Screening Obs & Encounter" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .exists(encounter.reference.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n implies \n entry.select(resource as Observation)\n .where(encounter.reference.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n .select(encounter.reference.split('/')[1]).distinct()\n = entry.select(resource as Encounter).id" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-44250-9" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 44250-9 then answer codes must be one of the following:\nLA6568-5\nLA6569-3\nLA6570-1\nLA6571-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '44250-9').exists()\n implies\n entry.select(resource as Observation).where(code.coding.code contains '44250-9').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '44250-9')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6568-5' or\n code='LA6569-3' or\n code='LA6570-1' or\n code='LA6571-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-44255-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 44255-8 then answer codes must be one of the following:\nLA6568-5\nLA6569-3\nLA6570-1\nLA6571-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '44255-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '44255-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '44255-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6568-5' or\n code='LA6569-3' or\n code='LA6570-1' or\n code='LA6571-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-68516-4" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 68516-4 then answer codes must be one of the following:\nLA6111-4\nLA13942-0\nLA19282-5\nLA28855-7\nLA28858-1\nLA28854-0\nLA28853-2\nLA28891-2\nLA32059-0\nLA32060-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '68516-4').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '68516-4').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '68516-4')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6111-4' or\n code='LA13942-0' or\n code='LA19282-5' or\n code='LA28855-7' or\n code='LA28858-1' or\n code='LA28854-0' or\n code='LA28853-2' or\n code='LA28891-2' or\n code='LA32059-0' or\n code='LA32060-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-68517-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 68517-2 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '68517-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '68517-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '68517-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-68524-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 68524-8 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '68524-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '68524-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '68524-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-69858-9" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 69858-9 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '69858-9').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '69858-9').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '69858-9')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-69861-3" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 69861-3 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '69861-3').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '69861-3').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '69861-3')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-71802-3" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 71802-3 then answer codes must be one of the following: LA31993-1, LA31994-9, LA31995-6" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '71802-3').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '71802-3').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '71802-3')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31993-1' or\n code='LA31994-9' or\n code='LA31995-6').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-76513-1" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 76513-1 then answer codes must be one of the following:\nLA15832-1\nLA22683-9\nLA31980-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '76513-1').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '76513-1').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '76513-1')\n .value.select($this as CodeableConcept).coding\n .where(code='LA15832-1' or\n code='LA22683-9' or\n code='LA31980-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-88122-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 88122-7 then answer codes must be one of the following:\nLA28397-0\nLA6729-3\nLA28398-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '88122-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '88122-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '88122-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA28397-0' or\n code='LA6729-3' or\n code='LA28398-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-88123-5" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 88123-5 then answer codes must be one of the following:\nLA28397-0\nLA6729-3\nLA28398-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '88123-5').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '88123-5').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '88123-5')\n .value.select($this as CodeableConcept).coding\n .where(code='LA28397-0' or\n code='LA6729-3' or\n code='LA28398-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-89555-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 89555-7 then answer codes must be one of the following:\nLA6111-4\nLA6112-2\nLA6113-0\nLA6114-8\nLA6115-5\nLA10137-0\nLA10138-8\nLA10139-6" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '89555-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '89555-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '89555-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6111-4' or\n code='LA6112-2' or\n code='LA6113-0' or\n code='LA6114-8' or\n code='LA6115-5' or\n code='LA10137-0' or\n code='LA10138-8' or\n code='LA10139-6').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-93030-5" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 93030-5 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '93030-5').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '93030-5').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '93030-5')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-93038-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 93038-8 then answer codes must be one of the following:\nLA6568-5\nLA13863-8\nLA13909-9\nLA13902-4\nLA13914-9\nLA30122-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '93038-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '93038-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '93038-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6568-5' or\n code='LA13863-8' or\n code='LA13909-9' or\n code='LA13902-4' or\n code='LA13914-9' or\n code='LA30122-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-93159-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 93159-2 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA10044-8\nLA9933-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '93159-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '93159-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '93159-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA10044-8' or\n code='LA9933-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95530-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95530-2 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95530-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95530-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95530-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95615-1" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95615-1 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95615-1').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95615-1').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95615-1')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95616-9" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95616-9 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95616-9').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95616-9').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95616-9')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95617-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95617-7 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95617-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95617-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95617-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95618-5" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95618-5 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95618-5').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95618-5').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95618-5')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96778-6" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96778-6 then answer codes must be one of the following:\nLA31996-4\nLA28580-1\nLA31997-2\nLA31998-0\nLA31999-8\nLA32000-4\nLA32001-2\nLA9-3" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96778-6').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96778-6').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96778-6')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31996-4' or\n code='LA28580-1' or\n code='LA31997-2' or\n code='LA31998-0' or\n code='LA31999-8' or\n code='LA32000-4' or\n code='LA32001-2' or\n code='LA9-3').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96779-4" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96779-4 then answer codes must be one of the following:\nLA33-6\nLA32-8\nLA32002-0" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96779-4').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96779-4').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96779-4')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8' or\n code='LA32002-0').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96780-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96780-2 then answer codes must be one of the following:\nLA31981-6\nLA31982-4\nLA31983-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96780-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96780-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96780-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31981-6' or\n code='LA31982-4' or\n code='LA31983-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96781-0" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96781-0 then answer codes must be one of the following:\nLA31976-6\nLA31977-4\nLA31978-2\nLA31979-0" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96781-0').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96781-0').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96781-0')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31976-6' or\n code='LA31977-4' or\n code='LA31978-2' or\n code='LA31978-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96782-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96782-8 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96782-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96782-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96782-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96842-0" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96842-0 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96842-0').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96842-0').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96842-0')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-97027-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 97027-7 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '97027-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '97027-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '97027-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Consent-Category" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Patient Consent category code is 59284-0" ] ; fhir:expression [ fhir:v "entry.select(resource as Consent).exists() implies entry.select(resource as Consent).category.coding.where(code='59284-0').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Consent-ProvisionType" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Consents include a value for provision type." ] ; fhir:expression [ fhir:v "entry.select(resource as Consent)\n .all(provision.type.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-screening-consent" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensures all bundles with a screening included also includes the consent profile." ] ; fhir:expression [ fhir:v "\n(\n(select($this as Bundle).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile'.upper()).count() > 0)\nand\n\n(\nentry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening')).count() > 0\n )\n)\nimplies\nentry.select(resource as Consent).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Goal-StatusDate" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Goals include a value for statusDate." ] ; fhir:expression [ fhir:v "entry.select(resource as Goal).exists()\n implies\n entry.select(resource as Goal).all(statusDate.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Goal-AchievementStatus" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Goals include a value for achivementStatus." ] ; fhir:expression [ fhir:v "entry.select(resource as Goal).exists()\n implies\n entry.select(resource as Goal).all(achievementStatus.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Location-Address" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Location resources include all address elements." ] ; fhir:expression [ fhir:v "entry.select(resource as Location).\n address.where(line.count() > 0\n and city.trim().length() > 0\n and state.trim().length() > 0\n and postalCode.trim().length() > 0\n and district.trim().length() > 0).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Location-Type" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Location resources include a value for type." ] ; fhir:expression [ fhir:v "entry.select(resource as Location).exists()\n implies\n entry.select(resource as Location).all(type.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Organization-Address" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Organization resources include all address elements." ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).\n address.where(line.count() > 0\n and city.trim().length() > 0\n and state.trim().length() > 0\n and postalCode.trim().length() > 0\n and district.trim().length() > 0).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Organization-ID" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all Organization resources include a value for one of the following id types: NPI, TAX, or MA." ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).exists()\n implies\n entry.select(resource as Organization).where(identifier.type.coding.code='NPI' or\n identifier.type.coding.code='TAX' or\n identifier.type.coding.code='MA').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Organization-Type" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Organization resources include a value for type." ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).exists()\n implies\n entry.select(resource as Organization).all(type.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Resources-Profile-Check" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "SHINNY-Resources-Profile-Check" ] ; fhir:expression [ fhir:v "\n(\nselect($this as Bundle).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile'.upper()).count() = 0\n\nand\n\n(\nentry.select(resource as Patient).exists()\nimplies\nentry.select(resource as Patient).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-patient'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Encounter).exists()\nimplies\nentry.select(resource as Encounter).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-encounter'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Observation).exists()\nimplies\nentry.select(resource as Observation).meta.where(profile.upper().startsWith('http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-observation'.upper()).not()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as ServiceRequest).exists()\nimplies\nentry.select(resource as ServiceRequest).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYSDOHServiceRequest'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Task).exists()\nimplies\nentry.select(resource as Task).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYSDOHTaskForReferralManagement'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Consent).exists()\nimplies\nentry.select(resource as Consent).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-Consent'.upper()).count() = 0\n)\n).allTrue()\n" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "Entity. Role, or Act" ] ] [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "N/A" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "ClinicalDocument, if bundle.type = document" ] ] ) ] [ fhir:id [ fhir:v "Bundle.id" ] ; fhir:path [ fhir:v "Bundle.id" ] ; fhir:short [ fhir:v "Logical id of this artifact" ] ; fhir:definition [ fhir:v "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ; fhir:comment [ fhir:v "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.id" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "id"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:mustSupport [ fhir:v true ] ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.meta" ] ; fhir:path [ fhir:v "Bundle.meta" ] ; fhir:short [ fhir:v "Metadata about the resource" ] ; fhir:definition [ fhir:v "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.meta" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Meta"^^xsd:anyURI ] ; ( fhir:profile [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYMeta"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYMeta> ] ) ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:mustSupport [ fhir:v true ] ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.implicitRules" ] ; fhir:path [ fhir:v "Bundle.implicitRules" ] ; fhir:short [ fhir:v "A set of rules under which this content was created" ] ; fhir:definition [ fhir:v "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ] ; fhir:comment [ fhir:v "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.implicitRules" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "uri"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v true ] ; fhir:isModifierReason [ fhir:v "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.language" ] ; fhir:path [ fhir:v "Bundle.language" ] ; fhir:short [ fhir:v "Language of the resource content" ] ; fhir:definition [ fhir:v "The base language in which the resource is written." ] ; fhir:comment [ fhir:v "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.language" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "code"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; fhir:binding [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ] ; fhir:value [ a fhir:canonical ; fhir:v "http://hl7.org/fhir/ValueSet/all-languages"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/ValueSet/all-languages> ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Language" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "A human language." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/languages"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/ValueSet/languages> ] ] ] [ fhir:id [ fhir:v "Bundle.identifier" ] ; fhir:path [ fhir:v "Bundle.identifier" ] ; fhir:short [ fhir:v "Persistent identifier for the bundle" ] ; fhir:definition [ fhir:v "A persistent identifier for the bundle that won't change as a bundle is copied from server to server." ] ; fhir:comment [ fhir:v "Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.identifier" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Identifier"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ; ( fhir:mapping [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.identifier" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "ClinicalDocument.id" ] ] ) ] [ fhir:id [ fhir:v "Bundle.type" ] ; fhir:path [ fhir:v "Bundle.type" ] ; fhir:short [ fhir:v "document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection" ] ; fhir:definition [ fhir:v "Indicates the purpose of this bundle - how it is intended to be used." ] ; fhir:comment [ fhir:v "It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.type" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "code"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ; fhir:binding [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "BundleType" ] ] ) ; fhir:strength [ fhir:v "required" ] ; fhir:description [ fhir:v "Indicates the purpose of a bundle - how it is intended to be used." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/ValueSet/bundle-type|4.0.1> ] ] ; ( fhir:mapping [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.class" ] ] ) ] [ fhir:id [ fhir:v "Bundle.timestamp" ] ; fhir:path [ fhir:v "Bundle.timestamp" ] ; fhir:short [ fhir:v "When the bundle was assembled" ] ; fhir:definition [ fhir:v "The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle." ] ; fhir:comment [ fhir:v "For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. \n\nUsage:\n\n* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time\n* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message\n* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates\n* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query\n* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning\n\nThe timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.timestamp" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "instant"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ; ( fhir:mapping [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.init" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "ClinicalDocument.effectiveTime" ] ] ) ] [ fhir:id [ fhir:v "Bundle.total" ] ; fhir:path [ fhir:v "Bundle.total" ] ; fhir:short [ fhir:v "If search, the total number of matches" ] ; fhir:definition [ fhir:v "If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle." ] ; fhir:comment [ fhir:v "Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.total" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "unsignedInt"^^xsd:anyURI ] ] ) ; ( fhir:condition [ fhir:v "bdl-1" ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.link" ] ; fhir:path [ fhir:v "Bundle.link" ] ; fhir:short [ fhir:v "Links related to this Bundle" ] ; fhir:definition [ fhir:v "A series of links that provide context to this bundle." ] ; fhir:comment [ fhir:v "Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). \n\nBundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.\n\nThis specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.link" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.link.id" ] ; fhir:path [ fhir:v "Bundle.link.id" ] ; ( fhir:representation [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "string"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.link.extension" ] ; fhir:path [ fhir:v "Bundle.link.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.link.modifierExtension" ] ; fhir:path [ fhir:v "Bundle.link.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v true ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v true ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Bundle.link.relation" ] ; fhir:path [ fhir:v "Bundle.link.relation" ] ; fhir:short [ fhir:v "See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1" ] ; fhir:definition [ fhir:v "A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.link.relation" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "string"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.link.url" ] ; fhir:path [ fhir:v "Bundle.link.url" ] ; fhir:short [ fhir:v "Reference details for the link" ] ; fhir:definition [ fhir:v "The reference details for the link." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.link.url" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "uri"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry" ] ; fhir:path [ fhir:v "Bundle.entry" ] ; fhir:short [ fhir:v "Entry in the bundle - will have a resource or information" ] ; fhir:definition [ fhir:v "An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ] ] ) ; fhir:orderMeaning [ fhir:v "For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type" ] ; ( fhir:constraint [ fhir:key [ fhir:v "bdl-5" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "must be a resource unless there's a request or response" ] ; fhir:expression [ fhir:v "resource.exists() or request.exists() or response.exists()" ] ; fhir:xpath [ fhir:v "exists(f:resource) or exists(f:request) or exists(f:response)" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "bdl-8" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "fullUrl cannot be a version specific reference" ] ; fhir:expression [ fhir:v "fullUrl.contains('/_history/').not()" ] ; fhir:xpath [ fhir:v "not(exists(f:fullUrl[contains(string(@value), '/_history/')]))" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ] [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.id" ] ; fhir:path [ fhir:v "Bundle.entry.id" ] ; ( fhir:representation [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "string"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.extension" ] ; fhir:path [ fhir:v "Bundle.entry.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.modifierExtension" ] ; fhir:path [ fhir:v "Bundle.entry.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v true ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v true ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.link" ] ; fhir:path [ fhir:v "Bundle.entry.link" ] ; fhir:short [ fhir:v "Links related to this entry" ] ; fhir:definition [ fhir:v "A series of links that provide context to this entry." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.link" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; fhir:contentReference [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"^^xsd:anyURI ] ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.fullUrl" ] ; fhir:path [ fhir:v "Bundle.entry.fullUrl" ] ; fhir:short [ fhir:v "URI for resource (Absolute URL server address or URI for UUID/OID)" ] ; fhir:definition [ fhir:v "The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: \n* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)\n* Results from operations might involve resources that are not identified." ] ; fhir:comment [ fhir:v "fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.\n\nNote that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.fullUrl" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "uri"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.resource" ] ; fhir:path [ fhir:v "Bundle.entry.resource" ] ; fhir:short [ fhir:v "A resource in the bundle" ] ; fhir:definition [ fhir:v "The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.resource" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Resource"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.search" ] ; fhir:path [ fhir:v "Bundle.entry.search" ] ; fhir:short [ fhir:v "Search related information" ] ; fhir:definition [ fhir:v "Information about the search process that lead to the creation of this entry." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.search" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ] ] ) ; ( fhir:condition [ fhir:v "bdl-2" ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.search.id" ] ; fhir:path [ fhir:v "Bundle.entry.search.id" ] ; ( fhir:representation [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "string"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.search.extension" ] ; fhir:path [ fhir:v "Bundle.entry.search.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.search.modifierExtension" ] ; fhir:path [ fhir:v "Bundle.entry.search.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v true ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v true ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.search.mode" ] ; fhir:path [ fhir:v "Bundle.entry.search.mode" ] ; fhir:short [ fhir:v "match | include | outcome - why this is in the result set" ] ; fhir:definition [ fhir:v "Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process." ] ; fhir:comment [ fhir:v "There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.search.mode" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "code"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ; fhir:binding [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SearchEntryMode" ] ] ) ; fhir:strength [ fhir:v "required" ] ; fhir:description [ fhir:v "Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1> ] ] ] [ fhir:id [ fhir:v "Bundle.entry.search.score" ] ; fhir:path [ fhir:v "Bundle.entry.search.score" ] ; fhir:short [ fhir:v "Search ranking (between 0 and 1)" ] ; fhir:definition [ fhir:v "When searching, the server's search ranking score for the entry." ] ; fhir:comment [ fhir:v "Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.\n\nSee [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.search.score" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "decimal"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.request" ] ; fhir:path [ fhir:v "Bundle.entry.request" ] ; fhir:short [ fhir:v "Additional execution information (transaction/batch/history)" ] ; fhir:definition [ fhir:v "Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.request" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ] ] ) ; ( fhir:condition [ fhir:v "bdl-3" ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.request.id" ] ; fhir:path [ fhir:v "Bundle.entry.request.id" ] ; ( fhir:representation [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "string"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.request.extension" ] ; fhir:path [ fhir:v "Bundle.entry.request.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.request.modifierExtension" ] ; fhir:path [ fhir:v "Bundle.entry.request.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v true ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v true ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.request.method" ] ; fhir:path [ fhir:v "Bundle.entry.request.method" ] ; fhir:short [ fhir:v "GET | HEAD | POST | PUT | DELETE | PATCH" ] ; fhir:definition [ fhir:v "In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.request.method" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "code"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ; fhir:binding [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "HTTPVerb" ] ] ) ; fhir:strength [ fhir:v "required" ] ; fhir:description [ fhir:v "HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/http-verb|4.0.1"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/ValueSet/http-verb|4.0.1> ] ] ] [ fhir:id [ fhir:v "Bundle.entry.request.url" ] ; fhir:path [ fhir:v "Bundle.entry.request.url" ] ; fhir:short [ fhir:v "URL for HTTP equivalent of this entry" ] ; fhir:definition [ fhir:v "The URL for this entry, relative to the root (the address to which the request is posted)." ] ; fhir:comment [ fhir:v "E.g. for a Patient Create, the method would be \"POST\" and the URL would be \"Patient\". For a Patient Update, the method would be PUT and the URL would be \"Patient/[id]\"." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.request.url" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "uri"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.request.ifNoneMatch" ] ; fhir:path [ fhir:v "Bundle.entry.request.ifNoneMatch" ] ; fhir:short [ fhir:v "For managing cache currency" ] ; fhir:definition [ fhir:v "If the ETag values match, return a 304 Not Modified status. See the API documentation for [\"Conditional Read\"](http://hl7.org/fhir/R4/http.html#cread)." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.request.ifNoneMatch" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "string"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.request.ifModifiedSince" ] ; fhir:path [ fhir:v "Bundle.entry.request.ifModifiedSince" ] ; fhir:short [ fhir:v "For managing cache currency" ] ; fhir:definition [ fhir:v "Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http://hl7.org/fhir/R4/http.html#cread)." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.request.ifModifiedSince" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "instant"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.request.ifMatch" ] ; fhir:path [ fhir:v "Bundle.entry.request.ifMatch" ] ; fhir:short [ fhir:v "For managing update contention" ] ; fhir:definition [ fhir:v "Only perform the operation if the Etag value matches. For more information, see the API section [\"Managing Resource Contention\"](http://hl7.org/fhir/R4/http.html#concurrency)." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.request.ifMatch" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "string"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.request.ifNoneExist" ] ; fhir:path [ fhir:v "Bundle.entry.request.ifNoneExist" ] ; fhir:short [ fhir:v "For conditional creates" ] ; fhir:definition [ fhir:v "Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [\"Conditional Create\"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the \"?\" (not including the \"?\")." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.request.ifNoneExist" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "string"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.response" ] ; fhir:path [ fhir:v "Bundle.entry.response" ] ; fhir:short [ fhir:v "Results of execution (transaction/batch/history)" ] ; fhir:definition [ fhir:v "Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.response" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ] ] ) ; ( fhir:condition [ fhir:v "bdl-4" ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.response.id" ] ; fhir:path [ fhir:v "Bundle.entry.response.id" ] ; ( fhir:representation [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "string"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.response.extension" ] ; fhir:path [ fhir:v "Bundle.entry.response.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.response.modifierExtension" ] ; fhir:path [ fhir:v "Bundle.entry.response.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ; ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Extension> ] ] ) ; fhir:isModifier [ fhir:v true ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v true ] ; ( fhir:mapping [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Bundle.entry.response.status" ] ; fhir:path [ fhir:v "Bundle.entry.response.status" ] ; fhir:short [ fhir:v "Status response code (text optional)" ] ; fhir:definition [ fhir:v "The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.response.status" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "string"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.response.location" ] ; fhir:path [ fhir:v "Bundle.entry.response.location" ] ; fhir:short [ fhir:v "The location (if the operation returns a location)" ] ; fhir:definition [ fhir:v "The location header created by processing this operation, populated if the operation returns a location." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.response.location" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "uri"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.response.etag" ] ; fhir:path [ fhir:v "Bundle.entry.response.etag" ] ; fhir:short [ fhir:v "The Etag for the resource (if relevant)" ] ; fhir:definition [ fhir:v "The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))." ] ; fhir:comment [ fhir:v "Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.response.etag" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "string"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.response.lastModified" ] ; fhir:path [ fhir:v "Bundle.entry.response.lastModified" ] ; fhir:short [ fhir:v "Server's date time modified" ] ; fhir:definition [ fhir:v "The date/time that the resource was modified on the server." ] ; fhir:comment [ fhir:v "This has to match the same time in the meta header (meta.lastUpdated) if a resource is included." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.response.lastModified" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "instant"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.entry.response.outcome" ] ; fhir:path [ fhir:v "Bundle.entry.response.outcome" ] ; fhir:short [ fhir:v "OperationOutcome with hints and warnings (for batch/transaction)" ] ; fhir:definition [ fhir:v "An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction." ] ; fhir:comment [ fhir:v "For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.\n\nThis outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.entry.response.outcome" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Resource"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.signature" ] ; fhir:path [ fhir:v "Bundle.signature" ] ; fhir:short [ fhir:v "Digital Signature" ] ; fhir:definition [ fhir:v "Digital Signature - base64 encoded. XML-DSig or a JWT." ] ; fhir:comment [ fhir:v "The signature could be created by the \"author\" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific." ] ; fhir:requirements [ fhir:v "A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Bundle.signature" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; ( fhir:type [ fhir:code [ fhir:v "Signature"^^xsd:anyURI ] ] ) ; ( fhir:constraint [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Element> ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ] ) ] ; # fhir:differential [ ( fhir:element [ fhir:id [ fhir:v "Bundle" ] ; fhir:path [ fhir:v "Bundle" ] ; ( fhir:constraint [ fhir:key [ fhir:v "SHINNY-Patient-MRN" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every bundle should always have only 1 MR (i.e MRN) Object within patient.identifier, system.contains('facility') and value (MRN) is provided" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).identifier.where(type.coding.code='MR' and value.trim().length() > 0).count() = 1" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-MA" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every bundle should always have only 1 Medicaid CIN (i.e MA) Object within patient.identifier AND the CIN is always in the format of 2 letters, 5 numbers, and 1 letter, e.g., 'AB12345C'" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).identifier.where(type.coding.code='MA' and value.trim().length() > 0).count() = 1\n and\n entry.select(resource as Patient).identifier.where(\n value.trim().length() = 8\n and\n type.coding.code='MA'\n and\n value.substring(0,1).matches('^[a-zA-Z]+$')\n and\n value.substring(1,1).matches('^[a-zA-Z]+$')\n and\n value.substring(2,1).matches('^[0-9]*$')\n and\n value.substring(3,1).matches('^[0-9]*$')\n and\n value.substring(4,1).matches('^[0-9]*$')\n and\n value.substring(5,1).matches('^[0-9]*$')\n and\n value.substring(6,1).matches('^[0-9]*$')\n and\n value.substring(7,1).matches('^[a-zA-Z]+$')\n ).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-SSN" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Every bundle should always have only 1 SSN (i.e SS) Object within patient.identifier" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).identifier.where(type.coding.code='SS' and value.trim().length() > 0).count() <= 1" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Address" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "All elements of address should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).\n address.where(line.count() > 0\n and city.trim().length() > 0\n and state.trim().length() > 0\n and postalCode.trim().length() > 0\n and district.trim().length() > 0).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-DOB" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "birthDate should be a valid date" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).birthDate.trim().length() = 10 and entry.select(resource as Patient).birthDate.trim().split('-').count() = 3" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Gender" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Gender should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).where(gender.exists() and gender.trim().length()).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-GenderId" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Gender Id should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex').count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Race-Ethnicity" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Race & Ethnicity should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-race').extension.where(url='ombCategory' and value.system = 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor').exists().not()\nimplies\nentry.select(resource as Patient).\n extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-race').exists()\n and entry.select(resource as Patient).\n extension.where(url='http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Communication" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Communication should exist" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).communication.exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-MiddleName" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "MiddleName should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).name\n .extension.where(url.contains('middle-name'))\n .value.trim().length()>0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Patient-Pronouns" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Pronouns should be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).extension.where(url='http://shinny.org/us/ny/hrsn/ValueSet/SHINNYPersonalPronounsVS').exists()\n implies\n entry.select(resource as Patient).extension.where(url='http://shinny.org/us/ny/hrsn/ValueSet/SHINNYPersonalPronounsVS' and value.select($this as CodeableConcept).coding.code.exists()).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "shinny-sexual-orientation" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If there is no component or hasMember element then either a value[x] or a data absent reason must be present" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shin-ny-observation-sexual-orientation')).exists()\n implies\n entry.select(resource as Observation).where(meta.profile.contains('shin-ny-observation-sexual-orientation'))\n .where(value.exists() or dataAbsentReason.exists())\n .count()=1" ] ; fhir:xpath [ fhir:v "true" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-hasMember-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Observation & child Observations" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .exists(hasMember.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n implies\n\n entry.select(resource as Observation)\n .where(hasMember.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n .hasMember.select(reference.split('/')[1])\n .union(\n entry.select(resource as Observation)\n .where(hasMember.exists().not()\n and meta.profile.contains('shinny-observation-screening-response')).id)\n .count() =\n entry.select(resource as Observation)\n .where(hasMember.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n .hasMember.reference\n .count()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Encounter-Class" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that the Encounter resource has a class code; Ensure that the Encounter resource has a class code system" ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter).class\n .all(code.exists() and system.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Encounter-Type" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that the Encounter resource has a status code" ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter).type.coding\n .all(code.exists() and system.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Encounter-PeriodStart" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Encounters include a value for period.start." ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter)\n .all(period.start.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Encounter-PeriodEnd" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all finished Encounters include a value for period.end." ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter)\n .where(status.contains('finished'))\n .all(period.end.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Encounter" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "SDOH Observations should have an Encounter" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-screening-response'))\n .all(encounter.reference.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Patient" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "SDOH Observations should have a Patient" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation'))\n .all(subject.reference.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Code" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation resources have screening code; Ensure that all Observation resources have screening code system" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(\n code.coding.system.exists().not()\n or\n code.coding.code.not().exists().not())\n .count() = 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Obs-Category" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all Observation categories have an SDOH code" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .all(category.coding.system\n .exists($this.contains('SDOHCC-CodeSystemTemporaryCodes')))" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Screening-Patient" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "SDOH Screening Observations should have an Patient" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening') and hasMember.exists())\n .all(subject.reference.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-Langauge" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a language." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response') )\n .all(language.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-CategoryDisplay" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a category display." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response') )\n .category.coding.where( system.contains('/CodeSystem/observation-category').not() ).\n all(display.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-CodeCode" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a code code." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .code.coding\n .all(code.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-CodeDisplay" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Observation Screening Responses have a code dispay." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .code.coding\n .all(display.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ObservationScreenRes-Interpretation" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that specific Observation Screening Responses have an interpretation." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening-response'))\n .where(derivedFrom.exists().not())\n .all(interpretation.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Screening-Consent" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All screening bundles must include a consent" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-screening-response')).exists()\n implies\n entry.select(resource as Consent).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ConditionID" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all final assessments have a Condition identifier." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment') and status = 'final').exists()\n implies entry.select(resource as Observation)\n .where( meta.profile.contains('shinny-observation-assessment') and status = 'final' ).count()\n = entry.select(resource as Condition).id.count()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ConditionSNOMED" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all final assessments have a Condition category SNOMED term." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment') and status='final').exists()\n implies\n entry.select(resource as Condition).count() \n = entry.select(resource as Condition).select(code.coding)\n .where(system.contains('http://snomed.info/sct'))\n .count()\n and\n entry.select(resource as Condition).count() !=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ConditionICD10" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all final assessments have a Condition ICD-10 term." ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment') and status='final').exists()\n implies\n entry.select(resource as Condition).count() \n = entry.select(resource as Condition).select(code.coding)\n .where(system.contains('http://hl7.org/fhir/sid/icd-10-cm'))\n .count()\n and\n entry.select(resource as Condition).count() !=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ApprovalQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles have a response to PatientAssessmentApproval." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n or\n (QuestionnaireResponse|repeat('No'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-OutreachQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles with patient approval contain a Patient Assessment Outreach Date and a Patient Assessment Status." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|PatientAssessmentOutreachDate)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|PatientAssessmentOutreachStatus)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-AdminQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles have a response to the service duplication indicators." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|EnhancedPopulationCheck)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ServiceDuplicationCheck)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ClinicalCriteriaCheck)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Assessment-ServiceDupQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Assessment Questionnaire bundles have a response to the service duplication indicators." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientAssessmentApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentHousingProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentNutritionalEducationProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentNutritionalServicesProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentFoodServiceProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentSNAPProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentWICProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentTANFProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|CurrentTransportationProgramRecipientIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|MedicationRequiringRefrigerationIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|BreastMilkRequiringRefrigerationIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ADLs/IADLsIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|MedicalRespiteRequirementsIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|ChildcareAssistanceIndicator)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Assessment-Encounter" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Assessment-Encounter should exist" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment')).exists()\n implies\n entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment'))\n .where(encounter.reference.exists().not())\n .count()=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Assessment-Patient" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Assessment-Subject should exist" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment')).exists()\n implies\n entry.select(resource as Observation).where(meta.profile.contains('shinny-observation-assessment'))\n .where(subject.reference.exists().not())\n .count()=0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-Quantity" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have a quantity." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\nimplies\nentry.select(resource as ServiceRequest)\n .all(quantity.value.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-CategoryCode" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have a category code." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\n implies\n entry.select(resource as ServiceRequest).(\n all(category.exists())\n and category.all(coding.exists())\n and category.coding.all(code.exists())\n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-OccurrencePeriod" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have an occurrence period start and end, or occurrence datetime." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\n implies\n entry.select(resource as ServiceRequest).count() = \n (\n entry.select(resource as ServiceRequest).where(occurrence is Period).select(occurrence)\n .where(start and end).count()\n +\n entry.select(resource as ServiceRequest).where(occurrence is dateTime).count()\n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "ServiceRequest-AuthoredOn" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Service Requests have a authored on date." ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest).exists()\n implies\n entry.select(resource as ServiceRequest).all(authoredOn.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNYServiceRequestSDOHCategory" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all Service Request categories have an SDOH code" ] ; fhir:expression [ fhir:v "entry.select(resource as ServiceRequest)\n .where(meta.profile.contains('SHINNYSDOHServiceRequest'))\n .all(category.coding.system\n .exists($this.contains('SDOHCC-CodeSystemTemporaryCodes')))" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-StatusReason" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all tasks exists, have a statusReason If the Task.status is rejected, cancelled, completed, or failed." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).where(status = 'rejected' or status = 'cancelled' or status = 'completed' or status = 'failed').exists()\n implies\n entry.select(resource as Task).where(status = 'rejected' or status = 'cancelled' or status = 'completed' or status = 'failed')\n .all(statusReason.text.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-Repetitions" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Tasks have a value for repetitions." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).exists()\n implies\n entry.select(resource as Task).all(restriction.repetitions.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-EndPeriod" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all completed Tasks have an end execution period." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).where(status = 'completed').exists()\n implies\n entry.select(resource as Task).where(status = 'completed').all(executionPeriod.end.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Task-StartPeriod" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Tasks have a starting execution period." ] ; fhir:expression [ fhir:v "entry.select(resource as Task).exists()\n implies\n entry.select(resource as Task).all(executionPeriod.start.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Referral-ApprovalQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Referral Questionnaire bundles have a response to PatientReferralApproval." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n or\n (QuestionnaireResponse|repeat('No'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Referral-HRSNOutreachQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all approved Referral Questionnaire bundles have a response to HRSNServiceProviderReferralOutreachDate." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|HRSNServiceProviderReferralOutreachDate)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Referral-SCNOutreachQuestionnaire" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all approved Referral Questionnaire bundles have a response to SCNReferralOutreachDate." ] ; fhir:expression [ fhir:v "entry.select(resource as QuestionnaireResponse).exists()\n implies\n entry.select(resource as QuestionnaireResponse).exists (\n\n (QuestionnaireResponse|repeat('Yes'|PatientReferralApproval)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n and\n (QuestionnaireResponse|repeat(''|SCNReferralOutreachDate)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()\n \n )" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Required-Resources" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every bundle should always have one and only one 'Patient' & 'Encounter' and atleast one Org" ] ; fhir:expression [ fhir:v "entry.select(resource as Patient).count() = 1\n and entry.select(resource as Encounter).count() > 0\n and entry.select(resource as Organization).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Required" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Every submitted resource should be part of a bundle." ] ; fhir:expression [ fhir:v "select($this as Bundle).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Patient-Org-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Patient & Assigning Org" ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).id\n contains\n entry.select(resource as Patient)\n .identifier.where(type.coding.code='MR')\n .assigner.reference.split('/')[1]" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Patient-Encounter-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Patient & Encounter" ] ; fhir:expression [ fhir:v "entry.select(resource as Encounter)\n .select($this.subject.reference.split('/')[1])\n contains entry.select(resource as Patient).id" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-derivedFrom-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Observation & child Observation" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(derivedFrom.exists() and\n (meta.where(profile.lower().contains('shinny-observation'))\n or meta.where(profile.lower().contains('sdohcc-observation'))))\n .derivedFrom.select(reference.split('/')[1])\n .intersect(\n entry.select(resource as Observation).where(derivedFrom.empty().not() and\n (meta.where(profile.lower().contains('shin-ny-observation-screening-response'))\n or meta.where(profile.lower().contains('sdohcc-observationscreeningresponse')))).id)\n .count() =\n entry.select(resource as Observation)\n .where(derivedFrom.exists() and\n (meta.where(profile.lower().contains('shin-ny-observation-screening-response'))\n or $this.meta.where(profile.lower().contains('sdohcc-observationscreeningresponse'))))\n .derivedFrom.reference\n .count()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-Patient-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Obs & Patient" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .where(encounter.reference.exists() and meta.profile.contains('shinny-observation')).count()>1\n implies\n entry.select(resource as Observation)\n .where(encounter.reference.exists() and meta.profile.contains('shinny-observation'))\n .encounter.reference.distinct()\n .contains(entry.select(resource as Encounter).id)" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-Obs-Encounter-RI" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Checks for RI between Screening Obs & Encounter" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation)\n .exists(encounter.reference.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n implies \n entry.select(resource as Observation)\n .where(encounter.reference.exists()\n and meta.profile.contains('shinny-observation-screening-response'))\n .select(encounter.reference.split('/')[1]).distinct()\n = entry.select(resource as Encounter).id" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-44250-9" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 44250-9 then answer codes must be one of the following:\nLA6568-5\nLA6569-3\nLA6570-1\nLA6571-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '44250-9').exists()\n implies\n entry.select(resource as Observation).where(code.coding.code contains '44250-9').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '44250-9')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6568-5' or\n code='LA6569-3' or\n code='LA6570-1' or\n code='LA6571-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-44255-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 44255-8 then answer codes must be one of the following:\nLA6568-5\nLA6569-3\nLA6570-1\nLA6571-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '44255-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '44255-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '44255-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6568-5' or\n code='LA6569-3' or\n code='LA6570-1' or\n code='LA6571-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-68516-4" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 68516-4 then answer codes must be one of the following:\nLA6111-4\nLA13942-0\nLA19282-5\nLA28855-7\nLA28858-1\nLA28854-0\nLA28853-2\nLA28891-2\nLA32059-0\nLA32060-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '68516-4').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '68516-4').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '68516-4')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6111-4' or\n code='LA13942-0' or\n code='LA19282-5' or\n code='LA28855-7' or\n code='LA28858-1' or\n code='LA28854-0' or\n code='LA28853-2' or\n code='LA28891-2' or\n code='LA32059-0' or\n code='LA32060-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-68517-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 68517-2 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '68517-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '68517-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '68517-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-68524-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 68524-8 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '68524-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '68524-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '68524-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-69858-9" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 69858-9 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '69858-9').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '69858-9').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '69858-9')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-69861-3" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 69861-3 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '69861-3').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '69861-3').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '69861-3')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-71802-3" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 71802-3 then answer codes must be one of the following: LA31993-1, LA31994-9, LA31995-6" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '71802-3').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '71802-3').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '71802-3')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31993-1' or\n code='LA31994-9' or\n code='LA31995-6').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-76513-1" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 76513-1 then answer codes must be one of the following:\nLA15832-1\nLA22683-9\nLA31980-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '76513-1').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '76513-1').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '76513-1')\n .value.select($this as CodeableConcept).coding\n .where(code='LA15832-1' or\n code='LA22683-9' or\n code='LA31980-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-88122-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 88122-7 then answer codes must be one of the following:\nLA28397-0\nLA6729-3\nLA28398-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '88122-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '88122-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '88122-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA28397-0' or\n code='LA6729-3' or\n code='LA28398-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-88123-5" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 88123-5 then answer codes must be one of the following:\nLA28397-0\nLA6729-3\nLA28398-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '88123-5').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '88123-5').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '88123-5')\n .value.select($this as CodeableConcept).coding\n .where(code='LA28397-0' or\n code='LA6729-3' or\n code='LA28398-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-89555-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 89555-7 then answer codes must be one of the following:\nLA6111-4\nLA6112-2\nLA6113-0\nLA6114-8\nLA6115-5\nLA10137-0\nLA10138-8\nLA10139-6" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '89555-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '89555-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '89555-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6111-4' or\n code='LA6112-2' or\n code='LA6113-0' or\n code='LA6114-8' or\n code='LA6115-5' or\n code='LA10137-0' or\n code='LA10138-8' or\n code='LA10139-6').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-93030-5" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 93030-5 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '93030-5').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '93030-5').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '93030-5')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-93038-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 93038-8 then answer codes must be one of the following:\nLA6568-5\nLA13863-8\nLA13909-9\nLA13902-4\nLA13914-9\nLA30122-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '93038-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '93038-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '93038-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6568-5' or\n code='LA13863-8' or\n code='LA13909-9' or\n code='LA13902-4' or\n code='LA13914-9' or\n code='LA30122-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-93159-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 93159-2 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA10044-8\nLA9933-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '93159-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '93159-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '93159-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA10044-8' or\n code='LA9933-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95530-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95530-2 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95530-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95530-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95530-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95615-1" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95615-1 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95615-1').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95615-1').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95615-1')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95616-9" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95616-9 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95616-9').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95616-9').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95616-9')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95617-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95617-7 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95617-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95617-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95617-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-95618-5" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 95618-5 then answer codes must be one of the following:\nLA6270-8\nLA10066-1\nLA10082-8\nLA16644-9\nLA6482-9" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '95618-5').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '95618-5').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '95618-5')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA10066-1' or\n code='LA10082-8' or\n code='LA16644-9' or\n code='LA6482-9').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96778-6" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96778-6 then answer codes must be one of the following:\nLA31996-4\nLA28580-1\nLA31997-2\nLA31998-0\nLA31999-8\nLA32000-4\nLA32001-2\nLA9-3" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96778-6').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96778-6').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96778-6')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31996-4' or\n code='LA28580-1' or\n code='LA31997-2' or\n code='LA31998-0' or\n code='LA31999-8' or\n code='LA32000-4' or\n code='LA32001-2' or\n code='LA9-3').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96779-4" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96779-4 then answer codes must be one of the following:\nLA33-6\nLA32-8\nLA32002-0" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96779-4').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96779-4').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96779-4')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8' or\n code='LA32002-0').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96780-2" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96780-2 then answer codes must be one of the following:\nLA31981-6\nLA31982-4\nLA31983-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96780-2').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96780-2').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96780-2')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31981-6' or\n code='LA31982-4' or\n code='LA31983-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96781-0" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96781-0 then answer codes must be one of the following:\nLA31976-6\nLA31977-4\nLA31978-2\nLA31979-0" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96781-0').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96781-0').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96781-0')\n .value.select($this as CodeableConcept).coding\n .where(code='LA31976-6' or\n code='LA31977-4' or\n code='LA31978-2' or\n code='LA31978-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96782-8" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96782-8 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96782-8').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96782-8').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96782-8')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-96842-0" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 96842-0 then answer codes must be one of the following:\nLA6270-8\nLA26460-8\nLA18876-5\nLA18891-4\nLA18934-2" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '96842-0').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '96842-0').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '96842-0')\n .value.select($this as CodeableConcept).coding\n .where(code='LA6270-8' or\n code='LA26460-8' or\n code='LA18876-5' or\n code='LA18891-4' or\n code='LA18934-2').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Screening-Crosswalk-97027-7" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "If the ObservationScreeningResponse LOINC question code is 97027-7 then answer codes must be one of the following:\nLA33-6\nLA32-8" ] ; fhir:expression [ fhir:v "entry.select(resource as Observation).where(code.coding.code contains '97027-7').exists() implies\n entry.select(resource as Observation).where(code.coding.code contains '97027-7').dataAbsentReason.exists()\n or\n entry.select(resource as Observation).where(code.coding.code contains '97027-7')\n .value.select($this as CodeableConcept).coding\n .where(code='LA33-6' or\n code='LA32-8').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Consent-Category" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Patient Consent category code is 59284-0" ] ; fhir:expression [ fhir:v "entry.select(resource as Consent).exists() implies entry.select(resource as Consent).category.coding.where(code='59284-0').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Consent-ProvisionType" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Consents include a value for provision type." ] ; fhir:expression [ fhir:v "entry.select(resource as Consent)\n .all(provision.type.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Bundle-screening-consent" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensures all bundles with a screening included also includes the consent profile." ] ; fhir:expression [ fhir:v "\n(\n(select($this as Bundle).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile'.upper()).count() > 0)\nand\n\n(\nentry.select(resource as Observation)\n .where(meta.profile.contains('shinny-observation-screening')).count() > 0\n )\n)\nimplies\nentry.select(resource as Consent).exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Goal-StatusDate" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Goals include a value for statusDate." ] ; fhir:expression [ fhir:v "entry.select(resource as Goal).exists()\n implies\n entry.select(resource as Goal).all(statusDate.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Goal-AchievementStatus" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Goals include a value for achivementStatus." ] ; fhir:expression [ fhir:v "entry.select(resource as Goal).exists()\n implies\n entry.select(resource as Goal).all(achievementStatus.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Location-Address" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Location resources include all address elements." ] ; fhir:expression [ fhir:v "entry.select(resource as Location).\n address.where(line.count() > 0\n and city.trim().length() > 0\n and state.trim().length() > 0\n and postalCode.trim().length() > 0\n and district.trim().length() > 0).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Location-Type" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Location resources include a value for type." ] ; fhir:expression [ fhir:v "entry.select(resource as Location).exists()\n implies\n entry.select(resource as Location).all(type.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Organization-Address" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Organization resources include all address elements." ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).\n address.where(line.count() > 0\n and city.trim().length() > 0\n and state.trim().length() > 0\n and postalCode.trim().length() > 0\n and district.trim().length() > 0).count() > 0" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Organization-ID" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Ensure that all Organization resources include a value for one of the following id types: NPI, TAX, or MA." ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).exists()\n implies\n entry.select(resource as Organization).where(identifier.type.coding.code='NPI' or\n identifier.type.coding.code='TAX' or\n identifier.type.coding.code='MA').exists()" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "Organization-Type" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "Ensure that all Organization resources include a value for type." ] ; fhir:expression [ fhir:v "entry.select(resource as Organization).exists()\n implies\n entry.select(resource as Organization).all(type.exists())" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] [ fhir:key [ fhir:v "SHINNY-Resources-Profile-Check" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "SHINNY-Resources-Profile-Check" ] ; fhir:expression [ fhir:v "\n(\nselect($this as Bundle).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile'.upper()).count() = 0\n\nand\n\n(\nentry.select(resource as Patient).exists()\nimplies\nentry.select(resource as Patient).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-patient'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Encounter).exists()\nimplies\nentry.select(resource as Encounter).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-encounter'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Observation).exists()\nimplies\nentry.select(resource as Observation).meta.where(profile.upper().startsWith('http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-observation'.upper()).not()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as ServiceRequest).exists()\nimplies\nentry.select(resource as ServiceRequest).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYSDOHServiceRequest'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Task).exists()\nimplies\nentry.select(resource as Task).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYSDOHTaskForReferralManagement'.upper()).count() = 0\n)\n\nand\n\n(\nentry.select(resource as Consent).exists()\nimplies\nentry.select(resource as Consent).where(meta.profile.upper() != 'http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-Consent'.upper()).count() = 0\n)\n).allTrue()\n" ] ; fhir:xpath [ fhir:v "true()" ] ; fhir:source [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile> ] ] ) ] [ fhir:id [ fhir:v "Bundle.id" ] ; fhir:path [ fhir:v "Bundle.id" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:mustSupport [ fhir:v true ] ] [ fhir:id [ fhir:v "Bundle.meta" ] ; fhir:path [ fhir:v "Bundle.meta" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; ( fhir:type [ fhir:code [ fhir:v "Meta"^^xsd:anyURI ] ; ( fhir:profile [ fhir:v "http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYMeta"^^xsd:anyURI ; fhir:link <http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYMeta> ] ) ] ) ; fhir:mustSupport [ fhir:v true ] ] ) ] . #
IG © 2024+ shinny. Package us.ny.hrsn#1.5.3 based on FHIR 4.0.1. Generated 2025-07-23
Links: Table of Contents |
QA Report