PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # Kind of specimen CLOSED { a [fhir:SpecimenDefinition]; fhir:nodeRole [fhir:treeRoot]?; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:DomainResource.text @?; # Text summary of the resource, for # human interpretation fhir:DomainResource.contained @*; # Contained, inline Resources fhir:DomainResource.extension @*; # Additional content defined by # implementations fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored fhir:SpecimenDefinition.identifier @?; # Business identifier of a kind of # specimen fhir:SpecimenDefinition.typeCollected @?; # Kind of material to collect fhir:SpecimenDefinition.patientPreparation @*; # Patient preparation for collection fhir:SpecimenDefinition.timeAspect @?; # Time aspect for collection fhir:SpecimenDefinition.collection @*; # Specimen collection procedure fhir:SpecimenDefinition.typeTested @*; # Specimen in container intended for # testing by lab fhir:index xsd:integer? # Relative position in a list } # Specimen in container intended for testing by lab CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:SpecimenDefinition.typeTested.isDerived @?; # Primary or secondary specimen fhir:SpecimenDefinition.typeTested.type @?; # Type of intended specimen fhir:SpecimenDefinition.typeTested.preference @ AND {fhir:value @fhirvs:specimen-contained-preference}; # preferred | alternate fhir:SpecimenDefinition.typeTested.container @?; # The specimen's container fhir:SpecimenDefinition.typeTested.requirement @?; # Specimen requirements fhir:SpecimenDefinition.typeTested.retentionTime @?; # Specimen retention time fhir:SpecimenDefinition.typeTested.rejectionCriterion @*; # Rejection criterion fhir:SpecimenDefinition.typeTested.handling @*; # Specimen handling before testing fhir:index xsd:integer? # Relative position in a list } # The specimen's container CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:SpecimenDefinition.typeTested.container.material @?; # Container material fhir:SpecimenDefinition.typeTested.container.type @?; # Kind of container associated with # the kind of specimen fhir:SpecimenDefinition.typeTested.container.cap @?; # Color of container cap fhir:SpecimenDefinition.typeTested.container.description @?; # Container description fhir:SpecimenDefinition.typeTested.container.capacity @?; # Container capacity ( # Minimum volume fhir:SpecimenDefinition.typeTested.container.minimumVolumeQuantity @ | fhir:SpecimenDefinition.typeTested.container.minimumVolumeString @ )?; fhir:SpecimenDefinition.typeTested.container.additive @*; # Additive associated with container fhir:SpecimenDefinition.typeTested.container.preparation @?; # Specimen container preparation fhir:index xsd:integer? # Relative position in a list } # Specimen handling before testing CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:SpecimenDefinition.typeTested.handling.temperatureQualifier @?; # Temperature qualifier fhir:SpecimenDefinition.typeTested.handling.temperatureRange @?; # Temperature range fhir:SpecimenDefinition.typeTested.handling.maxDuration @?; # Maximum preservation time fhir:SpecimenDefinition.typeTested.handling.instruction @?; # Preservation instruction fhir:index xsd:integer? # Relative position in a list } # Additive associated with container CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized ( # Additive associated with container fhir:SpecimenDefinition.typeTested.container.additive.additiveCodeableConcept @ | fhir:SpecimenDefinition.typeTested.container.additive.additiveReference @ ); fhir:index xsd:integer? # Relative position in a list } #---------------------- Data Types ------------------- # Metadata about a resource CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Meta.versionId @?; # Version specific identifier fhir:Meta.lastUpdated @?; # When the resource version last # changed fhir:Meta.source @?; # Identifies where the resource # comes from fhir:Meta.profile @*; # Profiles this resource claims to # conform to fhir:Meta.security @*; # Security Labels applied to this # resource fhir:Meta.tag @*; # Tags applied to this resource fhir:index xsd:integer? # Relative position in a list } # Primitive Type code CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value code?; # Primitive value for code fhir:index xsd:integer? # Relative position in a list } # Primitive Type string CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value string MAXLENGTH 1048576?; # Primitive value for string fhir:index xsd:integer? # Relative position in a list } # A reference from one resource to another CLOSED { fhir:link IRI?; fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Reference.reference @?; # Literal reference, Relative, # internal or absolute URL fhir:Reference.type @?; # Type the reference refers to (e.g. # "Patient") fhir:Reference.identifier @?; # Logical reference, when literal # reference is not known fhir:Reference.display @?; # Text alternative for the resource fhir:index xsd:integer? # Relative position in a list } # Base Resource {a .+; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:index xsd:integer? } # A fixed quantity (no comparator) CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Quantity.value @?; # Numerical value (with implicit # precision) fhir:Quantity.unit @?; # Unit representation fhir:Quantity.system @?; # System that defines coded unit form fhir:Quantity.code @?; # Coded form of the unit fhir:index xsd:integer? # Relative position in a list } # A length of time CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Quantity.value @?; # Numerical value (with implicit # precision) fhir:Quantity.comparator @ AND {fhir:value @fhirvs:quantity-comparator}?; # < | <= | >= | > - how to # understand the value fhir:Quantity.unit @?; # Unit representation fhir:Quantity.system @?; # System that defines coded unit form fhir:Quantity.code @?; # Coded form of the unit fhir:index xsd:integer? # Relative position in a list } # Set of values bounded by low and high CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Range.low @?; # Low limit fhir:Range.high @?; # High limit fhir:index xsd:integer? # Relative position in a list } # Primitive Type uri CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value uri?; # Primitive value for uri fhir:index xsd:integer? # Relative position in a list } # Optional Extensions Element CLOSED { fhir:Element.id id?; fhir:Element.extension @*; fhir:Extension.url uri; ( fhir:Extension.valueBase64Binary @ | fhir:Extension.valueBoolean @ | fhir:Extension.valueCanonical @ | fhir:Extension.valueCode @ | fhir:Extension.valueDate @ | fhir:Extension.valueDateTime @ | fhir:Extension.valueDecimal @ | fhir:Extension.valueId @ | fhir:Extension.valueInstant @ | fhir:Extension.valueInteger @ | fhir:Extension.valueMarkdown @ | fhir:Extension.valueOid @ | fhir:Extension.valuePositiveInt @ | fhir:Extension.valueString @ | fhir:Extension.valueTime @