Profile Comparison between http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sexual-orientation vs http://hl7.org/fhir/us/military-service/StructureDefinition/military-service-episode

Left:US Core Observation Sexual Orientation Profile (http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sexual-orientation)
Right:Military Service Episode (http://hl7.org/fhir/us/military-service/StructureDefinition/military-service-episode)

Messages

ErrorStructureDefinition.urlValues for url differ: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sexual-orientation' vs 'http://hl7.org/fhir/us/military-service/StructureDefinition/military-service-episode'
ErrorStructureDefinition.versionValues for version differ: '8.0.0' vs '1.0.0'
InformationStructureDefinition.nameValues for name differ: 'USCoreObservationSexualOrientationProfile' vs 'MilitaryServiceEpisode'
InformationStructureDefinition.titleValues for title differ: 'US Core Observation Sexual Orientation Profile' vs 'Military Service Episode'
InformationStructureDefinition.dateValues for date differ: '2023-10-17' vs '2025-10-06T13:13:59+00:00'
InformationStructureDefinition.publisherValues for publisher differ: 'HL7 International / Cross-Group Projects' vs 'Cross Group Projects WG'
InformationObservation.idElement minimum cardinalities differ: '0' vs '1'
InformationObservation.languageExample/preferred bindings differ at Observation.language using binding from USCoreObservationSexualOrientationProfile
InformationObservation.identifierElement maximum cardinalities differ: '2147483647' vs '1'
InformationObservation.basedOnElement maximum cardinalities differ: '2147483647' vs '0'
InformationObservation.partOfElement maximum cardinalities differ: '2147483647' vs '0'
InformationObservation.categoryExample/preferred bindings differ at Observation.category using binding from USCoreObservationSexualOrientationProfile
InformationStructureDefinition.shortValues for short differ: 'Sexual Orientation' vs 'Type of observation (code / type)'
InformationObservation.focusElement maximum cardinalities differ: '2147483647' vs '0'
InformationObservation.encounterElement maximum cardinalities differ: '1' vs '0'
InformationStructureDefinition.definitionValues for definition differ: 'This records the time during which the patient had identified their emotional, romantic, sexual, or affectional attraction to another person.' vs 'The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the 'physiologically relevant time'. This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.'
WarningObservation.effective[x]Elements differ in definition for mustSupport: 'true' vs 'false'
InformationObservation.effective[x]Element minimum cardinalities differ: '0' vs '1'
InformationObservation.issuedElement maximum cardinalities differ: '1' vs '0'
InformationObservation.performerElement maximum cardinalities differ: '2147483647' vs '0'
InformationObservation.dataAbsentReasonElement maximum cardinalities differ: '1' vs '0'
InformationObservation.interpretationElement maximum cardinalities differ: '2147483647' vs '0'
InformationObservation.bodySiteElement maximum cardinalities differ: '1' vs '0'
InformationObservation.methodElement maximum cardinalities differ: '1' vs '0'
InformationObservation.specimenElement maximum cardinalities differ: '1' vs '0'
InformationObservation.deviceElement maximum cardinalities differ: '1' vs '0'
InformationObservation.referenceRangeElement maximum cardinalities differ: '2147483647' vs '0'
InformationObservation.referenceRange.typeExample/preferred bindings differ at Observation.referenceRange.type using binding from USCoreObservationSexualOrientationProfile
InformationObservation.derivedFromElement maximum cardinalities differ: '2147483647' vs '0'
WarningObservation.componentElements differ in definition for mustSupport: 'false' vs 'true'
InformationObservation.componentElement minimum cardinalities differ: '0' vs '1'
InformationObservation.component.referenceRange.typeExample/preferred bindings differ at Observation.component.referenceRange.type using binding from USCoreObservationSexualOrientationProfile

Metadata

NameValueComments
.abstractfalse
    .baseDefinitionhttp://hl7.org/fhir/StructureDefinition/Observation
      .copyrightUsed by permission of HL7 International, all rights reserved Creative Commons License
      • Removed the item 'Used by permission of HL7 International, all rights reserved Creative Commons License'
      .date2023-10-172025-10-06T13:13:59+00:00
      • Values Differ
      .descriptionThe US Core Observation Sexual Orientation Profile inherits from the FHIR [Observation](https://hl7.org/fhir/R4/observation.html) resource; refer to refer to it for scope and usage definitions. This Profile sets minimum expectations for the Observation resource to record, search, and fetch sexual orientation observations associated with a patient. It specifies which core elements, extensions, vocabularies, and value sets **SHALL** be present in the resource and constrains how the elements are used. Providing the floor for standards development for specific use cases promotes interoperability and adoption.Military Service Episode describes a patient/veterans overall experiences of a militiary employment. The profile references military deployments and occupations as well as military branche, seperation and discharge status. A patient/Veteran may have zero or more military service episodes. The episode documents the time spent in the military organization, the dischage status and reason, and a collection of deployment episodes
      • Values Differ
      .experimentalfalse
      • Removed the item 'false'
      .fhirVersion4.0.1
        .jurisdiction
          ..jurisdiction[0]urn:iso:std:iso:3166#US
            .kindresource
              .nameUSCoreObservationSexualOrientationProfileMilitaryServiceEpisode
              • Values Differ
              .publisherHL7 International / Cross-Group ProjectsCross Group Projects WG
              • Values Differ
              .purpose
                .statusactive
                  .titleUS Core Observation Sexual Orientation ProfileMilitary Service Episode
                  • Values Differ
                  .typeObservation
                    .urlhttp://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sexual-orientationhttp://hl7.org/fhir/us/military-service/StructureDefinition/military-service-episode
                    • Values Differ
                    .version8.0.01.0.0
                    • Values Differ

                    Structure

                    NameL FlagsL Card.L TypeL Description & ConstraintsR FlagsR Card.R TypeR Description & ConstraintsCommentsdoco
                    .. Observation C0..*ObservationMeasurements and simple assertions
                    Constraints: us-core-2
                    C0..*ObservationMeasurements and simple assertions
                      ... id Σ0..1idLogical id of this artifactΣ1..1idLogical id of this artifact
                      • Element minimum cardinalities differ: '0' vs '1'
                      ... meta Σ0..1MetaMetadata about the resourceΣ0..1MetaMetadata about the resource
                        ... implicitRules ?!Σ0..1uriA set of rules under which this content was created?!Σ0..1uriA set of rules under which this content was created
                          ... language 0..1codeLanguage of the resource content
                          Binding: ?? (preferred): A human language.
                          Additional BindingsPurpose
                          ??Max Binding
                          0..1codeLanguage of the resource content
                          Binding: ?? (preferred): A human language.
                          Additional BindingsPurpose
                          ??Max Binding
                          • Example/preferred bindings differ at Observation.language using binding from USCoreObservationSexualOrientationProfile
                          ... text 0..1NarrativeText summary of the resource, for human interpretation
                          This profile does not constrain the narrative in regard to content, language, or traceability to data elements
                          0..1NarrativeText summary of the resource, for human interpretation
                          This profile does not constrain the narrative in regard to content, language, or traceability to data elements
                            ... contained 0..*ResourceContained, inline Resources
                            0..*ResourceContained, inline Resources
                              ... extension 0..*ExtensionAdditional content defined by implementations
                              0..*ExtensionAdditional content defined by implementations
                                ... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
                                ?!0..*ExtensionExtensions that cannot be ignored
                                  ... identifier Σ0..*IdentifierBusiness Identifier for observation
                                  Σ0..1IdentifierBusiness Identifier for observation
                                  • Element maximum cardinalities differ: '2147483647' vs '1'
                                  ... basedOn Σ0..*Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest)Fulfills plan, proposal or order
                                  Σ0..0
                                  • Element maximum cardinalities differ: '2147483647' vs '0'
                                  ... partOf Σ0..*Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Immunization | ImagingStudy)Part of referenced event
                                  Σ0..0
                                  • Element maximum cardinalities differ: '2147483647' vs '0'
                                  ... status ?!SΣ1..1coderegistered | preliminary | final | amended +
                                  Binding: ?? (required)
                                  ?!SΣ1..1coderegistered | preliminary | final | amended +
                                  Binding: ?? (required): Codes providing the status of an observation.
                                    ... category 0..*CodeableConceptClassification of type of observation
                                    Binding: ?? (preferred): Codes for high level observation categories.
                                    0..*CodeableConceptClassification of type of observation
                                    Binding: ?? (preferred): Codes for high level observation categories.
                                    • Example/preferred bindings differ at Observation.category using binding from USCoreObservationSexualOrientationProfile
                                    .... id 0..1stringUnique id for inter-element referencing
                                    • Added this element
                                    .... Slices for extension 0..*ExtensionAdditional content defined by implementations
                                    Slice: Unordered, Open by value:url
                                    • Added this element
                                    .... coding Σ0..*CodingCode defined by a terminology system

                                    Required Pattern: {"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"social-history"}
                                    • Added this element
                                    .... text Σ0..1stringPlain text representation of the concept
                                    • Added this element
                                    ... code SΣ1..1CodeableConceptSexual Orientation
                                    Binding: ?? (example): Codes identifying names of simple observations.
                                    Required Pattern: {"coding":[{"system":"http://loinc.org","code":"76690-7"}]}
                                    SΣ1..1CodeableConceptType of observation (code / type)
                                    Binding: ?? (example): Codes identifying names of simple observations.
                                    Required Pattern: {"coding":[{"system":"http://loinc.org","code":"87511-2"}]}
                                      ... subject SΣ1..1Reference(US Core Patient Profile(5.0.1))Who and/or what the observation is aboutSΣ1..1Reference(US Veteran)Who and/or what the observation is about
                                        ... focus Σ0..*Reference(Resource)What the observation is about, when it is not about the subject of record
                                        Σ0..0
                                        • Element maximum cardinalities differ: '2147483647' vs '0'
                                        ... encounter Σ0..1Reference(Encounter)Healthcare event during which this observation is madeΣ0..0
                                        • Element maximum cardinalities differ: '1' vs '0'
                                        ... effective[x] SΣ0..1dateTime S, Period, Timing, instantClinically relevant time/time-period for observationΣ1..1PeriodClinically relevant time/time-period for observation
                                        Slice: Unordered, Closed by type:$this
                                        • Elements differ in definition for mustSupport: 'true' vs 'false'
                                        • Element minimum cardinalities differ: '0' vs '1'
                                        ... issued Σ0..1instantDate/Time this version was made availableΣ0..0
                                        • Element maximum cardinalities differ: '1' vs '0'
                                        ... performer Σ0..*Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | RelatedPerson)Who is responsible for the observation
                                        Σ0..0
                                        • Element maximum cardinalities differ: '2147483647' vs '0'
                                        ... Slices for value[x] ΣC0..1Quantity, CodeableConcept, string, boolean, integer, Range, Ratio, SampledData, time, dateTime, PeriodActual result
                                        Slice: Unordered, Open by type:$this
                                        ΣC0..1Quantity, CodeableConcept, string, boolean, integer, Range, Ratio, SampledData, time, dateTime, PeriodActual result
                                          ... dataAbsentReason C0..1CodeableConceptWhy the result is missing
                                          Binding: ?? (extensible): Codes specifying why the result (Observation.value[x]) is missing.
                                          C0..0
                                          • Element maximum cardinalities differ: '1' vs '0'
                                          ... interpretation 0..*CodeableConceptHigh, low, normal, etc.
                                          Binding: ?? (extensible): Codes identifying interpretations of observations.
                                          0..0
                                          • Element maximum cardinalities differ: '2147483647' vs '0'
                                          ... note 0..*AnnotationComments about the observation
                                          0..*AnnotationComments about the observation
                                            ... bodySite 0..1CodeableConceptObserved body part
                                            Binding: ?? (example): Codes describing anatomical locations. May include laterality.
                                            0..0
                                            • Element maximum cardinalities differ: '1' vs '0'
                                            ... method 0..1CodeableConceptHow it was done
                                            Binding: ?? (example): Methods for simple observations.
                                            0..0
                                            • Element maximum cardinalities differ: '1' vs '0'
                                            ... specimen 0..1Reference(Specimen)Specimen used for this observation0..0
                                            • Element maximum cardinalities differ: '1' vs '0'
                                            ... device 0..1Reference(Device | DeviceMetric)(Measurement) Device0..0
                                            • Element maximum cardinalities differ: '1' vs '0'
                                            ... referenceRange C0..*BackboneElementProvides guide for interpretation
                                            C0..0
                                            • Element maximum cardinalities differ: '2147483647' vs '0'
                                            .... id 0..1stringUnique id for inter-element referencing0..1stringUnique id for inter-element referencing
                                              .... extension 0..*ExtensionAdditional content defined by implementations
                                              0..*ExtensionAdditional content defined by implementations
                                                .... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
                                                ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
                                                  .... low C0..1??Low Range, if relevantC0..1??Low Range, if relevant
                                                    .... high C0..1??High Range, if relevantC0..1??High Range, if relevant
                                                      .... type 0..1CodeableConceptReference range qualifier
                                                      Binding: ?? (preferred): Code for the meaning of a reference range.
                                                      0..1CodeableConceptReference range qualifier
                                                      Binding: ?? (preferred): Code for the meaning of a reference range.
                                                      • Example/preferred bindings differ at Observation.referenceRange.type using binding from USCoreObservationSexualOrientationProfile
                                                      .... appliesTo 0..*CodeableConceptReference range population
                                                      Binding: ?? (example): Codes identifying the population the reference range applies to.
                                                      0..*CodeableConceptReference range population
                                                      Binding: ?? (example): Codes identifying the population the reference range applies to.
                                                        .... age 0..1RangeApplicable age range, if relevant0..1RangeApplicable age range, if relevant
                                                          .... text 0..1stringText based reference range in an observation0..1stringText based reference range in an observation
                                                            ... hasMember Σ0..*Reference(Observation | QuestionnaireResponse | MolecularSequence)Related resource that belongs to the Observation group
                                                            Σ0..*Reference(Observation | QuestionnaireResponse | MolecularSequence)Related resource that belongs to the Observation group
                                                            Slice: Unordered, Open by profile:$this.resolve()
                                                              ... derivedFrom Σ0..*Reference(DocumentReference | ImagingStudy | Media | QuestionnaireResponse | Observation | MolecularSequence)Related measurements the observation is made from
                                                              Σ0..0
                                                              • Element maximum cardinalities differ: '2147483647' vs '0'
                                                              ... component Σ0..*BackboneElementComponent results
                                                              SΣ1..*BackboneElementComponent results
                                                              Slice: Unordered, Open by pattern:code
                                                              • Elements differ in definition for mustSupport: 'false' vs 'true'
                                                              • Element minimum cardinalities differ: '0' vs '1'
                                                              .... id 0..1stringUnique id for inter-element referencing0..1stringUnique id for inter-element referencing
                                                                .... extension 0..*ExtensionAdditional content defined by implementations
                                                                0..*ExtensionAdditional content defined by implementations
                                                                  .... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
                                                                  ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
                                                                    .... code Σ1..1CodeableConceptType of component observation (code / type)
                                                                    Binding: ?? (example): Codes identifying names of simple observations.
                                                                    Σ1..1CodeableConceptType of component observation (code / type)
                                                                    Binding: ?? (example): Codes identifying names of simple observations.
                                                                      .... value[x] Σ0..1Quantity, CodeableConcept, string, boolean, integer, Range, Ratio, SampledData, time, dateTime, PeriodActual component resultΣ0..1Quantity, CodeableConcept, string, boolean, integer, Range, Ratio, SampledData, time, dateTime, PeriodActual component result
                                                                        .... dataAbsentReason C0..1CodeableConceptWhy the component result is missing
                                                                        Binding: ?? (extensible): Codes specifying why the result (Observation.value[x]) is missing.
                                                                        C0..1CodeableConceptWhy the component result is missing
                                                                        Binding: ?? (extensible): Codes specifying why the result (Observation.value[x]) is missing.
                                                                          .... interpretation 0..*CodeableConceptHigh, low, normal, etc.
                                                                          Binding: ?? (extensible): Codes identifying interpretations of observations.
                                                                          0..*CodeableConceptHigh, low, normal, etc.
                                                                          Binding: ?? (extensible): Codes identifying interpretations of observations.
                                                                            .... referenceRange 0..*See referenceRange (Observation)Provides guide for interpretation of component result
                                                                            0..*See referenceRange (Observation)Provides guide for interpretation of component result
                                                                              ..... id 0..1stringUnique id for inter-element referencing0..1stringUnique id for inter-element referencing
                                                                                ..... extension 0..*ExtensionAdditional content defined by implementations
                                                                                0..*ExtensionAdditional content defined by implementations
                                                                                  ..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
                                                                                  ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
                                                                                    ..... low C0..1??Low Range, if relevantC0..1??Low Range, if relevant
                                                                                      ..... high C0..1??High Range, if relevantC0..1??High Range, if relevant
                                                                                        ..... type 0..1CodeableConceptReference range qualifier
                                                                                        Binding: ?? (preferred): Code for the meaning of a reference range.
                                                                                        0..1CodeableConceptReference range qualifier
                                                                                        Binding: ?? (preferred): Code for the meaning of a reference range.
                                                                                        • Example/preferred bindings differ at Observation.component.referenceRange.type using binding from USCoreObservationSexualOrientationProfile
                                                                                        ..... appliesTo 0..*CodeableConceptReference range population
                                                                                        Binding: ?? (example): Codes identifying the population the reference range applies to.
                                                                                        0..*CodeableConceptReference range population
                                                                                        Binding: ?? (example): Codes identifying the population the reference range applies to.
                                                                                          ..... age 0..1RangeApplicable age range, if relevant0..1RangeApplicable age range, if relevant
                                                                                            ..... text 0..1stringText based reference range in an observation0..1stringText based reference range in an observation

                                                                                              doco Documentation for this format