<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<modelInfo name="QICore" version="7.0.2" url="http://hl7.org/fhir/us/qicore" targetUrl="http://hl7.org/fhir" targetQualifier="qicore" patientClassName="Patient" patientBirthDatePropertyName="birthDate" xmlns="urn:hl7-org:elm-modelinfo:r1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <requiredModelInfo name="System" version="1.0.0"/>
    <requiredModelInfo name="FHIR" version="4.0.1"/>
    <requiredModelInfo name="USCore" version="7.0.0"/>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="AdverseEvent" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent" label="AdverseEvent" retrievable="true" primaryCodePath="event" baseType="FHIR.AdverseEvent">
        <element name="identifier" elementType="FHIR.Identifier"/>
        <element name="actuality" elementType="FHIR.AdverseEventActuality"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="event" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="date" elementType="FHIR.dateTime"/>
        <element name="detected" elementType="FHIR.dateTime"/>
        <element name="recordedDate" elementType="FHIR.dateTime"/>
        <element name="resultingCondition">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="seriousness" elementType="FHIR.CodeableConcept"/>
        <element name="severity" elementType="FHIR.CodeableConcept"/>
        <element name="outcome" elementType="FHIR.CodeableConcept"/>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="contributor">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="suspectEntity">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.AdverseEvent.SuspectEntity"/>
        </element>
        <element name="subjectMedicalHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="referenceDocument">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="study">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="recorder"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="recorder"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="AdverseEvent.SuspectEntity" retrievable="false" baseType="FHIR.AdverseEvent.SuspectEntity">
        <element name="instance" elementType="FHIR.Reference"/>
        <element name="causality" elementType="QICore.AdverseEvent.SuspectEntity.Causality"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="AdverseEvent.SuspectEntity.Causality" retrievable="false" baseType="FHIR.AdverseEvent.SuspectEntity.Causality">
        <element name="assessment" elementType="FHIR.CodeableConcept"/>
        <element name="productRelatedness" elementType="FHIR.string"/>
        <element name="author" elementType="FHIR.Reference"/>
        <element name="method" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="AllergyIntolerance" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance" label="AllergyIntolerance" retrievable="true" primaryCodePath="code" baseType="USCore.AllergyIntolerance">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="clinicalStatus" elementType="FHIR.CodeableConcept"/>
        <element name="verificationStatus" elementType="FHIR.CodeableConcept"/>
        <element name="type" elementType="FHIR.AllergyIntoleranceType"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.AllergyIntoleranceCategory"/>
        </element>
        <element name="criticality" elementType="FHIR.AllergyIntoleranceCriticality"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="onset">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="recordedDate" elementType="FHIR.dateTime"/>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="asserter" elementType="FHIR.Reference"/>
        <element name="lastOccurrence" elementType="FHIR.dateTime"/>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="reaction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.AllergyIntolerance.Reaction"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="recorder"/>
        <contextRelationship context="Practitioner" relatedKeyElement="asserter"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Patient" relatedKeyElement="recorder"/>
        <contextRelationship context="Patient" relatedKeyElement="asserter"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="asserter"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="AllergyIntolerance.Reaction" retrievable="false" baseType="USCore.AllergyIntolerance.Reaction">
        <element name="substance" elementType="FHIR.CodeableConcept"/>
        <element name="manifestation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="description" elementType="FHIR.string"/>
        <element name="onset" elementType="FHIR.dateTime"/>
        <element name="severity" elementType="FHIR.AllergyIntoleranceSeverity"/>
        <element name="exposureRoute" elementType="FHIR.CodeableConcept"/>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="BodyStructure" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-bodystructure" label="BodyStructure" retrievable="true" primaryCodePath="location" baseType="FHIR.BodyStructure">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="active" elementType="FHIR.boolean"/>
        <element name="morphology" elementType="FHIR.CodeableConcept"/>
        <element name="location" elementType="FHIR.CodeableConcept"/>
        <element name="locationQualifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="description" elementType="FHIR.string"/>
        <element name="image">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Attachment"/>
        </element>
        <element name="patient" elementType="FHIR.Reference"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CarePlan" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-careplan" label="CarePlan" retrievable="true" primaryCodePath="category" baseType="USCore.CarePlanProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="replaces">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.CarePlanStatus"/>
        <element name="intent" elementType="FHIR.CarePlanIntent"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="title" elementType="FHIR.string"/>
        <element name="description" elementType="FHIR.string"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="period" elementType="FHIR.Period"/>
        <element name="created" elementType="FHIR.dateTime"/>
        <element name="author" elementType="FHIR.Reference"/>
        <element name="contributor">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="careTeam">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="addresses">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="goal">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="activity">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.CarePlan.Activity"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="performer"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Patient" relatedKeyElement="performer"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="performer"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CarePlan.Activity" retrievable="false" baseType="USCore.CarePlan.Activity">
        <element name="outcomeCodeableConcept">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="outcomeReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="progress">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="reference" elementType="FHIR.Reference"/>
        <element name="detail" elementType="QICore.CarePlan.Activity.Detail"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CarePlan.Activity.Detail" retrievable="false" baseType="USCore.CarePlan.Activity.Detail">
        <element name="kind" elementType="FHIR.CarePlanActivityKind"/>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="goal">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.CarePlanActivityStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="scheduled">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="product">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="dailyAmount" elementType="FHIR.SimpleQuantity"/>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="description" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CareTeam" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-careteam" label="CareTeam" retrievable="true" primaryCodePath="category" baseType="USCore.CareTeam">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.CareTeamStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="name" elementType="FHIR.string"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="period" elementType="FHIR.Period"/>
        <element name="participant">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.CareTeam.Participant"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="managingOrganization">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="member"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Patient" relatedKeyElement="member"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="member"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CareTeam.Participant" retrievable="false" baseType="USCore.CareTeam.Participant">
        <element name="role" elementType="FHIR.CodeableConcept"/>
        <element name="member" elementType="FHIR.Reference"/>
        <element name="onBehalfOf" elementType="FHIR.Reference"/>
        <element name="period" elementType="FHIR.Period"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim" label="Claim" retrievable="true" primaryCodePath="type" baseType="FHIR.Claim">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.ClaimStatus"/>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="subType" elementType="FHIR.CodeableConcept"/>
        <element name="use" elementType="FHIR.Use"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="billablePeriod" elementType="FHIR.Period"/>
        <element name="created" elementType="FHIR.dateTime"/>
        <element name="enterer" elementType="FHIR.Reference"/>
        <element name="insurer" elementType="FHIR.Reference"/>
        <element name="provider" elementType="FHIR.Reference"/>
        <element name="priority" elementType="FHIR.CodeableConcept"/>
        <element name="fundsReserve" elementType="FHIR.CodeableConcept"/>
        <element name="related">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.Related"/>
        </element>
        <element name="prescription" elementType="FHIR.Reference"/>
        <element name="originalPrescription" elementType="FHIR.Reference"/>
        <element name="payee" elementType="QICore.Claim.Payee"/>
        <element name="referral" elementType="FHIR.Reference"/>
        <element name="facility" elementType="FHIR.Reference"/>
        <element name="careTeam">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.CareTeam"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.SupportingInfo"/>
        </element>
        <element name="diagnosis">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.Diagnosis"/>
        </element>
        <element name="procedure">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.Procedure"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.Insurance"/>
        </element>
        <element name="accident" elementType="QICore.Claim.Accident"/>
        <element name="item">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.Item"/>
        </element>
        <element name="total" elementType="FHIR.Money"/>
        <contextRelationship context="Practitioner" relatedKeyElement="enterer"/>
        <contextRelationship context="Practitioner" relatedKeyElement="provider"/>
        <contextRelationship context="Practitioner" relatedKeyElement="party"/>
        <contextRelationship context="Practitioner" relatedKeyElement="provider"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Patient" relatedKeyElement="party"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="Device" relatedKeyElement="udi"/>
        <contextRelationship context="Device" relatedKeyElement="udi"/>
        <contextRelationship context="Device" relatedKeyElement="udi"/>
        <contextRelationship context="Device" relatedKeyElement="udi"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="party"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Accident" retrievable="false" baseType="FHIR.Claim.Accident">
        <element name="date" elementType="FHIR.date"/>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="location">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Address"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.CareTeam" retrievable="false" baseType="FHIR.Claim.CareTeam">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="provider" elementType="FHIR.Reference"/>
        <element name="responsible" elementType="FHIR.boolean"/>
        <element name="role" elementType="FHIR.CodeableConcept"/>
        <element name="qualification" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Diagnosis" retrievable="false" baseType="FHIR.Claim.Diagnosis">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="diagnosis">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="type">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="onAdmission" elementType="FHIR.CodeableConcept"/>
        <element name="packageCode" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Insurance" retrievable="false" baseType="FHIR.Claim.Insurance">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="focal" elementType="FHIR.boolean"/>
        <element name="identifier" elementType="FHIR.Identifier"/>
        <element name="coverage" elementType="FHIR.Reference"/>
        <element name="businessArrangement" elementType="FHIR.string"/>
        <element name="preAuthRef">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.string"/>
        </element>
        <element name="claimResponse" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Item" retrievable="false" baseType="FHIR.Claim.Item">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="careTeamSequence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="diagnosisSequence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="procedureSequence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="informationSequence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="revenue" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="productOrService" elementType="FHIR.CodeableConcept"/>
        <element name="modifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="programCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="serviced">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="location">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Address"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="unitPrice" elementType="FHIR.Money"/>
        <element name="factor" elementType="FHIR.decimal"/>
        <element name="net" elementType="FHIR.Money"/>
        <element name="udi">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="subSite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="encounter">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="detail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.Item.Detail"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Item.Detail" retrievable="false" baseType="FHIR.Claim.Item.Detail">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="revenue" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="productOrService" elementType="FHIR.CodeableConcept"/>
        <element name="modifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="programCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="unitPrice" elementType="FHIR.Money"/>
        <element name="factor" elementType="FHIR.decimal"/>
        <element name="net" elementType="FHIR.Money"/>
        <element name="udi">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="subDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Claim.Item.Detail.SubDetail"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Item.Detail.SubDetail" retrievable="false" baseType="FHIR.Claim.Item.Detail.SubDetail">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="revenue" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="productOrService" elementType="FHIR.CodeableConcept"/>
        <element name="modifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="programCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="unitPrice" elementType="FHIR.Money"/>
        <element name="factor" elementType="FHIR.decimal"/>
        <element name="net" elementType="FHIR.Money"/>
        <element name="udi">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Payee" retrievable="false" baseType="FHIR.Claim.Payee">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="party" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Procedure" retrievable="false" baseType="FHIR.Claim.Procedure">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="type">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="date" elementType="FHIR.dateTime"/>
        <element name="procedure">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="udi">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.Related" retrievable="false" baseType="FHIR.Claim.Related">
        <element name="claim" elementType="FHIR.Reference"/>
        <element name="relationship" elementType="FHIR.CodeableConcept"/>
        <element name="reference" elementType="FHIR.Identifier"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Claim.SupportingInfo" retrievable="false" baseType="FHIR.Claim.SupportingInfo">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="timing">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Attachment"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="reason" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claimresponse" label="ClaimResponse" retrievable="true" baseType="FHIR.ClaimResponse">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.ClaimResponseStatus"/>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="subType" elementType="FHIR.CodeableConcept"/>
        <element name="use" elementType="FHIR.Use"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="created" elementType="FHIR.dateTime"/>
        <element name="insurer" elementType="FHIR.Reference"/>
        <element name="requestor" elementType="FHIR.Reference"/>
        <element name="request" elementType="FHIR.Reference"/>
        <element name="outcome" elementType="FHIR.RemittanceOutcome"/>
        <element name="disposition" elementType="FHIR.string"/>
        <element name="preAuthRef" elementType="FHIR.string"/>
        <element name="preAuthPeriod" elementType="FHIR.Period"/>
        <element name="payeeType" elementType="FHIR.CodeableConcept"/>
        <element name="item">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item"/>
        </element>
        <element name="addItem">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.AddItem"/>
        </element>
        <element name="adjudication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Adjudication"/>
        </element>
        <element name="total">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Total"/>
        </element>
        <element name="payment" elementType="QICore.ClaimResponse.Payment"/>
        <element name="fundsReserve" elementType="FHIR.CodeableConcept"/>
        <element name="formCode" elementType="FHIR.CodeableConcept"/>
        <element name="form" elementType="FHIR.Attachment"/>
        <element name="processNote">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.ProcessNote"/>
        </element>
        <element name="communicationRequest">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Insurance"/>
        </element>
        <element name="error">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Error"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="requestor"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.AddItem" retrievable="false" baseType="FHIR.ClaimResponse.AddItem">
        <element name="itemSequence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="detailSequence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="subdetailSequence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="provider">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="productOrService" elementType="FHIR.CodeableConcept"/>
        <element name="modifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="programCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="serviced">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="location">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Address"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="unitPrice" elementType="FHIR.Money"/>
        <element name="factor" elementType="FHIR.decimal"/>
        <element name="net" elementType="FHIR.Money"/>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="subSite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="noteNumber">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="adjudication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Adjudication"/>
        </element>
        <element name="detail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.AddItem.Detail"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.AddItem.Detail" retrievable="false" baseType="FHIR.ClaimResponse.AddItem.Detail">
        <element name="productOrService" elementType="FHIR.CodeableConcept"/>
        <element name="modifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="unitPrice" elementType="FHIR.Money"/>
        <element name="factor" elementType="FHIR.decimal"/>
        <element name="net" elementType="FHIR.Money"/>
        <element name="noteNumber">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="adjudication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Adjudication"/>
        </element>
        <element name="subDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.AddItem.Detail.SubDetail"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.AddItem.Detail.SubDetail" retrievable="false" baseType="FHIR.ClaimResponse.AddItem.Detail.SubDetail">
        <element name="productOrService" elementType="FHIR.CodeableConcept"/>
        <element name="modifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="unitPrice" elementType="FHIR.Money"/>
        <element name="factor" elementType="FHIR.decimal"/>
        <element name="net" elementType="FHIR.Money"/>
        <element name="noteNumber">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="adjudication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Adjudication"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Error" retrievable="false" baseType="FHIR.ClaimResponse.Error">
        <element name="itemSequence" elementType="FHIR.positiveInt"/>
        <element name="detailSequence" elementType="FHIR.positiveInt"/>
        <element name="subDetailSequence" elementType="FHIR.positiveInt"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Insurance" retrievable="false" baseType="FHIR.ClaimResponse.Insurance">
        <element name="sequence" elementType="FHIR.positiveInt"/>
        <element name="focal" elementType="FHIR.boolean"/>
        <element name="coverage" elementType="FHIR.Reference"/>
        <element name="businessArrangement" elementType="FHIR.string"/>
        <element name="claimResponse" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Item" retrievable="false" baseType="FHIR.ClaimResponse.Item">
        <element name="itemSequence" elementType="FHIR.positiveInt"/>
        <element name="noteNumber">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="adjudication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Adjudication"/>
        </element>
        <element name="detail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Detail"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Item.Adjudication" retrievable="false" baseType="FHIR.ClaimResponse.Item.Adjudication">
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="reason" elementType="FHIR.CodeableConcept"/>
        <element name="amount" elementType="FHIR.Money"/>
        <element name="value" elementType="FHIR.decimal"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Item.Detail" retrievable="false" baseType="FHIR.ClaimResponse.Item.Detail">
        <element name="detailSequence" elementType="FHIR.positiveInt"/>
        <element name="noteNumber">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="adjudication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Adjudication"/>
        </element>
        <element name="subDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Detail.SubDetail"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Item.Detail.SubDetail" retrievable="false" baseType="FHIR.ClaimResponse.Item.Detail.SubDetail">
        <element name="subDetailSequence" elementType="FHIR.positiveInt"/>
        <element name="noteNumber">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.positiveInt"/>
        </element>
        <element name="adjudication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ClaimResponse.Item.Adjudication"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Payment" retrievable="false" baseType="FHIR.ClaimResponse.Payment">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="adjustment" elementType="FHIR.Money"/>
        <element name="adjustmentReason" elementType="FHIR.CodeableConcept"/>
        <element name="date" elementType="FHIR.date"/>
        <element name="amount" elementType="FHIR.Money"/>
        <element name="identifier" elementType="FHIR.Identifier"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.ProcessNote" retrievable="false" baseType="FHIR.ClaimResponse.ProcessNote">
        <element name="number" elementType="FHIR.positiveInt"/>
        <element name="type" elementType="FHIR.NoteType"/>
        <element name="text" elementType="FHIR.string"/>
        <element name="language" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ClaimResponse.Total" retrievable="false" baseType="FHIR.ClaimResponse.Total">
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="amount" elementType="FHIR.Money"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Communication" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communication" label="Communication" retrievable="true" primaryCodePath="topic" baseType="FHIR.Communication">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="inResponseTo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.CommunicationStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.CommunicationPriority"/>
        <element name="medium">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="topic" elementType="FHIR.CodeableConcept"/>
        <element name="about">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="sent" elementType="FHIR.dateTime"/>
        <element name="received" elementType="FHIR.dateTime"/>
        <element name="recipient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="sender" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="payload">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Communication.Payload"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="sender"/>
        <contextRelationship context="Practitioner" relatedKeyElement="recipient"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Patient" relatedKeyElement="sender"/>
        <contextRelationship context="Patient" relatedKeyElement="recipient"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="Device" relatedKeyElement="sender"/>
        <contextRelationship context="Device" relatedKeyElement="recipient"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="sender"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="recipient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Communication.Payload" retrievable="false" baseType="FHIR.Communication.Payload">
        <element name="content">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Attachment"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CommunicationDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationdone" label="CommunicationDone" target="Communication" retrievable="true" baseType="QICore.Communication">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="inResponseTo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.CommunicationStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.CommunicationPriority"/>
        <element name="medium">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="topic" elementType="FHIR.CodeableConcept"/>
        <element name="about">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="sent" elementType="FHIR.dateTime"/>
        <element name="received" elementType="FHIR.dateTime"/>
        <element name="recipient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="sender" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="payload">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Communication.Payload"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CommunicationNotDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationnotdone" label="Communication Not Done" target="Communication" retrievable="true" primaryCodePath="topic" baseType="QICore.Communication">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="inResponseTo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.CommunicationStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.CommunicationPriority"/>
        <element name="medium">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="topic" elementType="FHIR.CodeableConcept"/>
        <element name="about">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="sent" elementType="FHIR.dateTime"/>
        <element name="received" elementType="FHIR.dateTime"/>
        <element name="recipient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="sender" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="payload">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Communication.Payload"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CommunicationRequest" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationrequest" label="CommunicationRequest" retrievable="true" primaryCodePath="category" baseType="FHIR.CommunicationRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="replaces">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="status" elementType="FHIR.CommunicationRequestStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.CommunicationPriority"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="medium">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="about">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="payload">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.CommunicationRequest.Payload"/>
        </element>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="recipient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="sender" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="sender"/>
        <contextRelationship context="Practitioner" relatedKeyElement="recipient"/>
        <contextRelationship context="Practitioner" relatedKeyElement="requester"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Patient" relatedKeyElement="sender"/>
        <contextRelationship context="Patient" relatedKeyElement="recipient"/>
        <contextRelationship context="Patient" relatedKeyElement="requester"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="Device" relatedKeyElement="sender"/>
        <contextRelationship context="Device" relatedKeyElement="recipient"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="sender"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="recipient"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="requester"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="CommunicationRequest.Payload" retrievable="false" baseType="FHIR.CommunicationRequest.Payload">
        <element name="content">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Attachment"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Condition.Evidence" retrievable="false" baseType="USCore.Condition.Evidence">
        <element name="code">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="detail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Condition.Stage" retrievable="false" baseType="USCore.Condition.Stage">
        <element name="summary" elementType="FHIR.CodeableConcept"/>
        <element name="assessment">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="type" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ConditionEncounterDiagnosis" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis" label="Condition Encounter Diagnosis" target="Condition" retrievable="true" primaryCodePath="code" baseType="USCore.ConditionEncounterDiagnosisProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="clinicalStatus" elementType="FHIR.CodeableConcept"/>
        <element name="verificationStatus" elementType="FHIR.CodeableConcept"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="severity" elementType="FHIR.CodeableConcept"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="onset">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="abatement">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="recordedDate" elementType="FHIR.dateTime"/>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="asserter" elementType="FHIR.Reference"/>
        <element name="stage">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Condition.Stage"/>
        </element>
        <element name="evidence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Condition.Evidence"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ConditionProblemsHealthConcerns" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns" label="Condition Problems Health Concerns" target="Condition" retrievable="true" primaryCodePath="code" baseType="USCore.ConditionProblemsHealthConcernsProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="clinicalStatus" elementType="FHIR.CodeableConcept"/>
        <element name="verificationStatus" elementType="FHIR.CodeableConcept"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="severity" elementType="FHIR.CodeableConcept"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="onset">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="abatement">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="recordedDate" elementType="FHIR.dateTime"/>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="asserter" elementType="FHIR.Reference"/>
        <element name="stage">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Condition.Stage"/>
        </element>
        <element name="evidence">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Condition.Evidence"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Coverage" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage" label="Coverage" retrievable="true" primaryCodePath="type" baseType="USCore.CoverageProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.CoverageStatus"/>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="policyHolder" elementType="FHIR.Reference"/>
        <element name="subscriber" elementType="FHIR.Reference"/>
        <element name="subscriberId" elementType="FHIR.string"/>
        <element name="beneficiary" elementType="FHIR.Reference"/>
        <element name="dependent" elementType="FHIR.string"/>
        <element name="relationship" elementType="FHIR.CodeableConcept"/>
        <element name="period" elementType="FHIR.Period"/>
        <element name="payor" elementType="FHIR.Reference"/>
        <element name="class">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Coverage.Class"/>
        </element>
        <element name="order" elementType="FHIR.positiveInt"/>
        <element name="network" elementType="FHIR.string"/>
        <element name="costToBeneficiary">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Coverage.CostToBeneficiary"/>
        </element>
        <element name="subrogation" elementType="FHIR.boolean"/>
        <element name="contract">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="policyHolder"/>
        <contextRelationship context="Patient" relatedKeyElement="subscriber"/>
        <contextRelationship context="Patient" relatedKeyElement="beneficiary"/>
        <contextRelationship context="Patient" relatedKeyElement="payor"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="policyHolder"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="subscriber"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="payor"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Coverage.Class" retrievable="false" baseType="USCore.Coverage.Class">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="value" elementType="FHIR.string"/>
        <element name="name" elementType="FHIR.string"/>
        <element name="group" elementType="QICore.Coverage.Class.group"/>
        <element name="plan" elementType="QICore.Coverage.Class.plan"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Coverage.Class.group" retrievable="false" baseType="USCore.Coverage.Class.group"/>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Coverage.Class.plan" retrievable="false" baseType="USCore.Coverage.Class.plan"/>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Coverage.CostToBeneficiary" retrievable="false" baseType="USCore.Coverage.CostToBeneficiary">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SimpleQuantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Money"/>
            </elementTypeSpecifier>
        </element>
        <element name="exception">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Coverage.CostToBeneficiary.Exception"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Coverage.CostToBeneficiary.Exception" retrievable="false" baseType="USCore.Coverage.CostToBeneficiary.Exception">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="period" elementType="FHIR.Period"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Device" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-device" label="Device" retrievable="true" primaryCodePath="type" baseType="FHIR.Device">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="definition" elementType="FHIR.Reference"/>
        <element name="udiCarrier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Device.UdiCarrier"/>
        </element>
        <element name="status" elementType="FHIR.FHIRDeviceStatus"/>
        <element name="statusReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="distinctIdentifier" elementType="FHIR.string"/>
        <element name="manufacturer" elementType="FHIR.string"/>
        <element name="manufactureDate" elementType="FHIR.dateTime"/>
        <element name="expirationDate" elementType="FHIR.dateTime"/>
        <element name="lotNumber" elementType="FHIR.string"/>
        <element name="serialNumber" elementType="FHIR.string"/>
        <element name="deviceName">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Device.DeviceName"/>
        </element>
        <element name="modelNumber" elementType="FHIR.string"/>
        <element name="partNumber" elementType="FHIR.string"/>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="specialization">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Device.Specialization"/>
        </element>
        <element name="version">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Device.Version"/>
        </element>
        <element name="property">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Device.Property"/>
        </element>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="owner" elementType="FHIR.Reference"/>
        <element name="contact">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="url" elementType="FHIR.uri"/>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="safety">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="parent" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Device.DeviceName" retrievable="false" baseType="FHIR.Device.DeviceName">
        <element name="name" elementType="FHIR.string"/>
        <element name="type" elementType="FHIR.DeviceNameType"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Device.Property" retrievable="false" baseType="FHIR.Device.Property">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="valueQuantity">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Quantity"/>
        </element>
        <element name="valueCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Device.Specialization" retrievable="false" baseType="FHIR.Device.Specialization">
        <element name="systemType" elementType="FHIR.CodeableConcept"/>
        <element name="version" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Device.UdiCarrier" retrievable="false" baseType="FHIR.Device.UdiCarrier">
        <element name="deviceIdentifier" elementType="FHIR.string"/>
        <element name="issuer" elementType="FHIR.uri"/>
        <element name="jurisdiction" elementType="FHIR.uri"/>
        <element name="carrierAIDC" elementType="FHIR.base64Binary"/>
        <element name="carrierHRF" elementType="FHIR.string"/>
        <element name="entryType" elementType="FHIR.UDIEntryType"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Device.Version" retrievable="false" baseType="FHIR.Device.Version">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="component" elementType="FHIR.Identifier"/>
        <element name="value" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DeviceProhibited" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceprohibited" label="Device Prohibited" target="DeviceRequest" retrievable="true" baseType="QICore.DeviceRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="priorRequest">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="status" elementType="FHIR.DeviceRequestStatus"/>
        <element name="intent" elementType="FHIR.RequestIntent"/>
        <element name="priority" elementType="FHIR.RequestPriority"/>
        <element name="code">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="parameter">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.DeviceRequest.Parameter"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
            </elementTypeSpecifier>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="performer" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DeviceRequest" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest" label="DeviceRequest" retrievable="true" primaryCodePath="code" baseType="FHIR.DeviceRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="priorRequest">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="status" elementType="FHIR.DeviceRequestStatus"/>
        <element name="intent" elementType="FHIR.RequestIntent"/>
        <element name="priority" elementType="FHIR.RequestPriority"/>
        <element name="code">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="parameter">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.DeviceRequest.Parameter"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
            </elementTypeSpecifier>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="performer" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="requester"/>
        <contextRelationship context="Practitioner" relatedKeyElement="performer"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Patient" relatedKeyElement="performer"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="Device" relatedKeyElement="code as Reference)"/>
        <contextRelationship context="Device" relatedKeyElement="subject"/>
        <contextRelationship context="Device" relatedKeyElement="requester"/>
        <contextRelationship context="Device" relatedKeyElement="performer"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DeviceRequest.Parameter" retrievable="false" baseType="FHIR.DeviceRequest.Parameter">
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DeviceRequested" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequested" label="DeviceRequested" target="DeviceRequest" retrievable="true" baseType="QICore.DeviceRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="priorRequest">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="status" elementType="FHIR.DeviceRequestStatus"/>
        <element name="intent" elementType="FHIR.RequestIntent"/>
        <element name="priority" elementType="FHIR.RequestPriority"/>
        <element name="code">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="parameter">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.DeviceRequest.Parameter"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
            </elementTypeSpecifier>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="performer" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DeviceUseStatement" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-deviceusestatement" label="DeviceUseStatement" retrievable="true" primaryCodePath="device.type" baseType="FHIR.DeviceUseStatement">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.DeviceUseStatementStatus"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="derivedFrom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="timing">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
            </elementTypeSpecifier>
        </element>
        <element name="recordedOn" elementType="FHIR.dateTime"/>
        <element name="source" elementType="FHIR.Reference"/>
        <element name="device" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Device" relatedKeyElement="device"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DiagnosticReport.Media" retrievable="false" baseType="USCore.DiagnosticReport.Media">
        <element name="comment" elementType="FHIR.string"/>
        <element name="link" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DiagnosticReportLab" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-diagnosticreport-lab" label="DiagnosticReport Profile for Laboratory Results Reporting" target="DiagnosticReport" retrievable="true" primaryCodePath="code" baseType="USCore.DiagnosticReportProfileLaboratoryReporting">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.DiagnosticReportStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="issued" elementType="FHIR.instant"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="resultsInterpreter">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="specimen">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="result">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="imagingStudy">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="media">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.DiagnosticReport.Media"/>
        </element>
        <element name="conclusion" elementType="FHIR.string"/>
        <element name="conclusionCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="presentedForm">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Attachment"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="DiagnosticReportNote" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-diagnosticreport-note" label="DiagnosticReport Profile for Report and Note Exchange" target="DiagnosticReport" retrievable="true" primaryCodePath="code" baseType="USCore.DiagnosticReportProfileNoteExchange">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.DiagnosticReportStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="issued" elementType="FHIR.instant"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="resultsInterpreter">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="specimen">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="result">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="imagingStudy">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="media">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.DiagnosticReport.Media"/>
        </element>
        <element name="conclusion" elementType="FHIR.string"/>
        <element name="conclusionCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="presentedForm">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Attachment"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Encounter" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter" label="Encounter" retrievable="true" primaryCodePath="type" baseType="USCore.EncounterProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.EncounterStatus"/>
        <element name="statusHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Encounter.StatusHistory"/>
        </element>
        <element name="class" elementType="FHIR.Coding"/>
        <element name="classHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Encounter.ClassHistory"/>
        </element>
        <element name="type">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="serviceType" elementType="FHIR.CodeableConcept"/>
        <element name="priority" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="episodeOfCare">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="participant">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Encounter.Participant"/>
        </element>
        <element name="appointment">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="period" elementType="FHIR.Period"/>
        <element name="length" elementType="FHIR.Duration"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="diagnosis">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Encounter.Diagnosis"/>
        </element>
        <element name="account">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="hospitalization" elementType="QICore.Encounter.Hospitalization"/>
        <element name="location">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Encounter.Location"/>
        </element>
        <element name="serviceProvider" elementType="FHIR.Reference"/>
        <element name="partOf" elementType="FHIR.Reference"/>
        <contextRelationship context="Practitioner" relatedKeyElement="where(resolve() is Practitioner)"/>
        <contextRelationship context="Practitioner" relatedKeyElement="individual"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="individual"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Encounter.ClassHistory" retrievable="false" baseType="USCore.Encounter.ClassHistory">
        <element name="class" elementType="FHIR.Coding"/>
        <element name="period" elementType="FHIR.Period"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Encounter.Diagnosis" retrievable="false" baseType="USCore.Encounter.Diagnosis">
        <element name="condition" elementType="FHIR.Reference"/>
        <element name="use" elementType="FHIR.CodeableConcept"/>
        <element name="rank" elementType="FHIR.positiveInt"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Encounter.Hospitalization" retrievable="false" baseType="USCore.Encounter.Hospitalization">
        <element name="preAdmissionIdentifier" elementType="FHIR.Identifier"/>
        <element name="origin" elementType="FHIR.Reference"/>
        <element name="admitSource" elementType="FHIR.CodeableConcept"/>
        <element name="reAdmission" elementType="FHIR.CodeableConcept"/>
        <element name="dietPreference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="specialCourtesy">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="specialArrangement">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="destination" elementType="FHIR.Reference"/>
        <element name="dischargeDisposition" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Encounter.Location" retrievable="false" baseType="USCore.Encounter.Location">
        <element name="location" elementType="FHIR.Reference"/>
        <element name="status" elementType="FHIR.EncounterLocationStatus"/>
        <element name="physicalType" elementType="FHIR.CodeableConcept"/>
        <element name="period" elementType="FHIR.Period"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Encounter.Participant" retrievable="false" baseType="USCore.Encounter.Participant">
        <element name="type">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="period" elementType="FHIR.Period"/>
        <element name="individual" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Encounter.StatusHistory" retrievable="false" baseType="USCore.Encounter.StatusHistory">
        <element name="status" elementType="FHIR.EncounterStatus"/>
        <element name="period" elementType="FHIR.Period"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="FamilyMemberHistory" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-familymemberhistory" label="FamilyMemberHistory" retrievable="true" primaryCodePath="relationship" baseType="FHIR.FamilyMemberHistory">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="status" elementType="FHIR.FamilyHistoryStatus"/>
        <element name="dataAbsentReason" elementType="FHIR.CodeableConcept"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="date" elementType="FHIR.dateTime"/>
        <element name="name" elementType="FHIR.string"/>
        <element name="relationship" elementType="FHIR.CodeableConcept"/>
        <element name="sex" elementType="FHIR.CodeableConcept"/>
        <element name="born">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="age">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="estimatedAge" elementType="FHIR.boolean"/>
        <element name="deceased">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="condition">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.FamilyMemberHistory.Condition"/>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="FamilyMemberHistory.Condition" retrievable="false" baseType="FHIR.FamilyMemberHistory.Condition">
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="outcome" elementType="FHIR.CodeableConcept"/>
        <element name="contributedToDeath" elementType="FHIR.boolean"/>
        <element name="onset">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Flag" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-flag" label="Flag" retrievable="true" primaryCodePath="code" baseType="FHIR.Flag">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.FlagStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="period" elementType="FHIR.Period"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="author" elementType="FHIR.Reference"/>
        <contextRelationship context="Practitioner" relatedKeyElement="author"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Device" relatedKeyElement="author"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Goal" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-goal" label="Goal" retrievable="true" primaryCodePath="category" baseType="USCore.GoalProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="lifecycleStatus" elementType="FHIR.GoalLifecycleStatus"/>
        <element name="achievementStatus" elementType="FHIR.CodeableConcept"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.CodeableConcept"/>
        <element name="description" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="start">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="target">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Goal.Target"/>
        </element>
        <element name="statusDate" elementType="FHIR.date"/>
        <element name="statusReason" elementType="FHIR.string"/>
        <element name="expressedBy" elementType="FHIR.Reference"/>
        <element name="addresses">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="outcomeCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="outcomeReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Goal.Target" retrievable="false" baseType="USCore.Goal.Target">
        <element name="measure" elementType="FHIR.CodeableConcept"/>
        <element name="detail">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
            </elementTypeSpecifier>
        </element>
        <element name="due">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Duration"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImagingStudy" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-imagingstudy" label="ImagingStudy" retrievable="true" primaryCodePath="procedureCode" baseType="FHIR.ImagingStudy">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.ImagingStudyStatus"/>
        <element name="modality">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Coding"/>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="started" elementType="FHIR.dateTime"/>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="referrer" elementType="FHIR.Reference"/>
        <element name="interpreter">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="endpoint">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="numberOfSeries" elementType="FHIR.unsignedInt"/>
        <element name="numberOfInstances" elementType="FHIR.unsignedInt"/>
        <element name="procedureReference" elementType="FHIR.Reference"/>
        <element name="procedureCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="description" elementType="FHIR.string"/>
        <element name="series">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ImagingStudy.Series"/>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImagingStudy.Series" retrievable="false" baseType="FHIR.ImagingStudy.Series">
        <element name="uid" elementType="FHIR.id"/>
        <element name="number" elementType="FHIR.unsignedInt"/>
        <element name="modality" elementType="FHIR.Coding"/>
        <element name="description" elementType="FHIR.string"/>
        <element name="numberOfInstances" elementType="FHIR.unsignedInt"/>
        <element name="endpoint">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite" elementType="FHIR.Coding"/>
        <element name="laterality" elementType="FHIR.Coding"/>
        <element name="specimen">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="started" elementType="FHIR.dateTime"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ImagingStudy.Series.Performer"/>
        </element>
        <element name="instance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ImagingStudy.Series.Instance"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImagingStudy.Series.Instance" retrievable="false" baseType="FHIR.ImagingStudy.Series.Instance">
        <element name="uid" elementType="FHIR.id"/>
        <element name="sopClass" elementType="FHIR.Coding"/>
        <element name="number" elementType="FHIR.unsignedInt"/>
        <element name="title" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImagingStudy.Series.Performer" retrievable="false" baseType="FHIR.ImagingStudy.Series.Performer">
        <element name="function" elementType="FHIR.CodeableConcept"/>
        <element name="actor" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Immunization" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunization" label="Immunization" retrievable="true" primaryCodePath="vaccineCode" baseType="USCore.ImmunizationProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.ImmunizationStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="vaccineCode" elementType="FHIR.CodeableConcept"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="recorded" elementType="FHIR.dateTime"/>
        <element name="primarySource" elementType="FHIR.boolean"/>
        <element name="reportOrigin" elementType="FHIR.CodeableConcept"/>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="manufacturer" elementType="FHIR.Reference"/>
        <element name="lotNumber" elementType="FHIR.string"/>
        <element name="expirationDate" elementType="FHIR.date"/>
        <element name="site" elementType="FHIR.CodeableConcept"/>
        <element name="route" elementType="FHIR.CodeableConcept"/>
        <element name="doseQuantity" elementType="FHIR.SimpleQuantity"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Performer"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="isSubpotent" elementType="FHIR.boolean"/>
        <element name="subpotentReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="education">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Education"/>
        </element>
        <element name="programEligibility">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="fundingSource" elementType="FHIR.CodeableConcept"/>
        <element name="reaction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Reaction"/>
        </element>
        <element name="protocolApplied">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.ProtocolApplied"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="actor"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Immunization.Education" retrievable="false" baseType="USCore.Immunization.Education">
        <element name="documentType" elementType="FHIR.string"/>
        <element name="reference" elementType="FHIR.uri"/>
        <element name="publicationDate" elementType="FHIR.dateTime"/>
        <element name="presentationDate" elementType="FHIR.dateTime"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Immunization.Performer" retrievable="false" baseType="USCore.Immunization.Performer">
        <element name="function" elementType="FHIR.CodeableConcept"/>
        <element name="actor" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Immunization.ProtocolApplied" retrievable="false" baseType="USCore.Immunization.ProtocolApplied">
        <element name="series" elementType="FHIR.string"/>
        <element name="authority" elementType="FHIR.Reference"/>
        <element name="targetDisease">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="doseNumber">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="seriesDoses">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Immunization.Reaction" retrievable="false" baseType="USCore.Immunization.Reaction">
        <element name="date" elementType="FHIR.dateTime"/>
        <element name="detail" elementType="FHIR.Reference"/>
        <element name="reported" elementType="FHIR.boolean"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImmunizationDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationdone" label="Immunization Done" target="Immunization" retrievable="true" baseType="QICore.Immunization">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.ImmunizationStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="vaccineCode" elementType="FHIR.CodeableConcept"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="recorded" elementType="FHIR.dateTime"/>
        <element name="primarySource" elementType="FHIR.boolean"/>
        <element name="reportOrigin" elementType="FHIR.CodeableConcept"/>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="manufacturer" elementType="FHIR.Reference"/>
        <element name="lotNumber" elementType="FHIR.string"/>
        <element name="expirationDate" elementType="FHIR.date"/>
        <element name="site" elementType="FHIR.CodeableConcept"/>
        <element name="route" elementType="FHIR.CodeableConcept"/>
        <element name="doseQuantity" elementType="FHIR.SimpleQuantity"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Performer"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="isSubpotent" elementType="FHIR.boolean"/>
        <element name="subpotentReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="education">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Education"/>
        </element>
        <element name="programEligibility">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="fundingSource" elementType="FHIR.CodeableConcept"/>
        <element name="reaction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Reaction"/>
        </element>
        <element name="protocolApplied">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.ProtocolApplied"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImmunizationEvaluation" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationevaluation" label="ImmunizationEvaluation" retrievable="true" primaryCodePath="targetDisease" baseType="FHIR.ImmunizationEvaluation">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.ImmunizationEvaluationStatus"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="date" elementType="FHIR.dateTime"/>
        <element name="authority" elementType="FHIR.Reference"/>
        <element name="targetDisease" elementType="FHIR.CodeableConcept"/>
        <element name="immunizationEvent" elementType="FHIR.Reference"/>
        <element name="doseStatus" elementType="FHIR.CodeableConcept"/>
        <element name="doseStatusReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="description" elementType="FHIR.string"/>
        <element name="series" elementType="FHIR.string"/>
        <element name="doseNumber">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="seriesDoses">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImmunizationNotDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationnotdone" label="Immunization Not Done" target="Immunization" retrievable="true" primaryCodePath="vaccineCode" baseType="QICore.Immunization">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.ImmunizationStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="vaccineCode" elementType="FHIR.CodeableConcept"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="recorded" elementType="FHIR.dateTime"/>
        <element name="primarySource" elementType="FHIR.boolean"/>
        <element name="reportOrigin" elementType="FHIR.CodeableConcept"/>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="manufacturer" elementType="FHIR.Reference"/>
        <element name="lotNumber" elementType="FHIR.string"/>
        <element name="expirationDate" elementType="FHIR.date"/>
        <element name="site" elementType="FHIR.CodeableConcept"/>
        <element name="route" elementType="FHIR.CodeableConcept"/>
        <element name="doseQuantity" elementType="FHIR.SimpleQuantity"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Performer"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="isSubpotent" elementType="FHIR.boolean"/>
        <element name="subpotentReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="education">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Education"/>
        </element>
        <element name="programEligibility">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="fundingSource" elementType="FHIR.CodeableConcept"/>
        <element name="reaction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.Reaction"/>
        </element>
        <element name="protocolApplied">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Immunization.ProtocolApplied"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImmunizationRecommendation" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-immunizationrecommendation" label="ImmunizationRecommendation" retrievable="true" primaryCodePath="recommendation.vaccineCode" baseType="FHIR.ImmunizationRecommendation">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="date" elementType="FHIR.dateTime"/>
        <element name="authority" elementType="FHIR.Reference"/>
        <element name="recommendation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ImmunizationRecommendation.Recommendation"/>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImmunizationRecommendation.Recommendation" retrievable="false" baseType="FHIR.ImmunizationRecommendation.Recommendation">
        <element name="vaccineCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="targetDisease" elementType="FHIR.CodeableConcept"/>
        <element name="contraindicatedVaccineCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="forecastStatus" elementType="FHIR.CodeableConcept"/>
        <element name="forecastReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="dateCriterion">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.ImmunizationRecommendation.Recommendation.DateCriterion"/>
        </element>
        <element name="description" elementType="FHIR.string"/>
        <element name="series" elementType="FHIR.string"/>
        <element name="doseNumber">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="seriesDoses">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
            </elementTypeSpecifier>
        </element>
        <element name="supportingImmunization">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingPatientInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ImmunizationRecommendation.Recommendation.DateCriterion" retrievable="false" baseType="FHIR.ImmunizationRecommendation.Recommendation.DateCriterion">
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="value" elementType="FHIR.dateTime"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="LaboratoryResultObservation" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab" label="Laboratory Result Observation" target="Observation" retrievable="true" primaryCodePath="code" baseType="USCore.LaboratoryResultObservationProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ObservationStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="focus">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="instant"/>
            </elementTypeSpecifier>
        </element>
        <element name="issued" elementType="FHIR.instant"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="dataAbsentReason" elementType="FHIR.CodeableConcept"/>
        <element name="interpretation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="method" elementType="FHIR.CodeableConcept"/>
        <element name="specimen" elementType="FHIR.Reference"/>
        <element name="device" elementType="FHIR.Reference"/>
        <element name="referenceRange">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.ReferenceRange"/>
        </element>
        <element name="hasMember">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="derivedFrom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="component">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.Component"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Location" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location" label="Location" retrievable="true" primaryCodePath="type" baseType="USCore.LocationProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.LocationStatus"/>
        <element name="operationalStatus" elementType="FHIR.Coding"/>
        <element name="name" elementType="FHIR.string"/>
        <element name="alias">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.string"/>
        </element>
        <element name="description" elementType="FHIR.string"/>
        <element name="mode" elementType="FHIR.LocationMode"/>
        <element name="type">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="address" elementType="FHIR.Address"/>
        <element name="physicalType" elementType="FHIR.CodeableConcept"/>
        <element name="position" elementType="QICore.Location.Position"/>
        <element name="managingOrganization" elementType="FHIR.Reference"/>
        <element name="partOf" elementType="FHIR.Reference"/>
        <element name="hoursOfOperation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Location.HoursOfOperation"/>
        </element>
        <element name="availabilityExceptions" elementType="FHIR.string"/>
        <element name="endpoint">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Location.HoursOfOperation" retrievable="false" baseType="USCore.Location.HoursOfOperation">
        <element name="daysOfWeek">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.DaysOfWeek"/>
        </element>
        <element name="allDay" elementType="FHIR.boolean"/>
        <element name="openingTime" elementType="FHIR.time"/>
        <element name="closingTime" elementType="FHIR.time"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Location.Position" retrievable="false" baseType="USCore.Location.Position">
        <element name="longitude" elementType="FHIR.decimal"/>
        <element name="latitude" elementType="FHIR.decimal"/>
        <element name="altitude" elementType="FHIR.decimal"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Medication" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication" label="Medication" retrievable="true" primaryCodePath="code" baseType="USCore.MedicationProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="status" elementType="FHIR.MedicationStatus"/>
        <element name="manufacturer" elementType="FHIR.Reference"/>
        <element name="form" elementType="FHIR.CodeableConcept"/>
        <element name="amount" elementType="FHIR.Ratio"/>
        <element name="ingredient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Medication.Ingredient"/>
        </element>
        <element name="batch" elementType="QICore.Medication.Batch"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Medication.Batch" retrievable="false" baseType="USCore.Medication.Batch">
        <element name="lotNumber" elementType="FHIR.string"/>
        <element name="expirationDate" elementType="FHIR.dateTime"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Medication.Ingredient" retrievable="false" baseType="USCore.Medication.Ingredient">
        <element name="item">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="isActive" elementType="FHIR.boolean"/>
        <element name="strength" elementType="FHIR.Ratio"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationAdministration" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration" label="MedicationAdministration" retrievable="true" primaryCodePath="medication" baseType="FHIR.MedicationAdministration">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiates">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.MedicationAdministrationStatus"/>
        <element name="statusReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="context" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.MedicationAdministration.Performer"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="request" elementType="FHIR.Reference"/>
        <element name="device">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosage" elementType="QICore.MedicationAdministration.Dosage"/>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="actor"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Patient" relatedKeyElement="actor"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Encounter" relatedKeyElement="context"/>
        <contextRelationship context="Device" relatedKeyElement="device"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="actor"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationAdministration.Dosage" retrievable="false" baseType="FHIR.MedicationAdministration.Dosage">
        <element name="text" elementType="FHIR.string"/>
        <element name="site" elementType="FHIR.CodeableConcept"/>
        <element name="route" elementType="FHIR.CodeableConcept"/>
        <element name="method" elementType="FHIR.CodeableConcept"/>
        <element name="dose" elementType="FHIR.SimpleQuantity"/>
        <element name="rate">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SimpleQuantity"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationAdministration.Performer" retrievable="false" baseType="FHIR.MedicationAdministration.Performer">
        <element name="function" elementType="FHIR.CodeableConcept"/>
        <element name="actor" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationAdministrationDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministrationdone" label="MedicationAdministration Done" target="MedicationAdministration" retrievable="true" baseType="QICore.MedicationAdministration">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiates">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.MedicationAdministrationStatus"/>
        <element name="statusReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="context" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.MedicationAdministration.Performer"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="request" elementType="FHIR.Reference"/>
        <element name="device">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosage" elementType="QICore.MedicationAdministration.Dosage"/>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationAdministrationNotDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministrationnotdone" label="MedicationAdministration Not Done" target="MedicationAdministration" retrievable="true" primaryCodePath="medication" baseType="QICore.MedicationAdministration">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiates">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.MedicationAdministrationStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="context" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.MedicationAdministration.Performer"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="request" elementType="FHIR.Reference"/>
        <element name="device">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosage" elementType="QICore.MedicationAdministration.Dosage"/>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationDispense" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispense" label="MedicationDispense" retrievable="true" primaryCodePath="medication" baseType="USCore.MedicationDispenseProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.MedicationDispenseStatus"/>
        <element name="statusReason">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="context" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.MedicationDispense.Performer"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="authorizingPrescription">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="daysSupply" elementType="FHIR.SimpleQuantity"/>
        <element name="whenPrepared" elementType="FHIR.dateTime"/>
        <element name="whenHandedOver" elementType="FHIR.dateTime"/>
        <element name="destination" elementType="FHIR.Reference"/>
        <element name="receiver">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosageInstruction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Dosage"/>
        </element>
        <element name="substitution" elementType="QICore.MedicationDispense.Substitution"/>
        <element name="detectedIssue">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="actor"/>
        <contextRelationship context="Practitioner" relatedKeyElement="receiver"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Patient" relatedKeyElement="receiver"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationDispense.Performer" retrievable="false" baseType="USCore.MedicationDispense.Performer">
        <element name="function" elementType="FHIR.CodeableConcept"/>
        <element name="actor" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationDispense.Substitution" retrievable="false" baseType="USCore.MedicationDispense.Substitution">
        <element name="wasSubstituted" elementType="FHIR.boolean"/>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="reason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="responsibleParty">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationDispenseDeclined" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispensedeclined" label="MedicationDispense Declined" target="MedicationDispense" retrievable="true" primaryCodePath="medication" baseType="QICore.MedicationDispense">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.MedicationDispenseStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="context" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.MedicationDispense.Performer"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="authorizingPrescription">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="daysSupply" elementType="FHIR.SimpleQuantity"/>
        <element name="whenPrepared" elementType="FHIR.dateTime"/>
        <element name="whenHandedOver" elementType="FHIR.dateTime"/>
        <element name="destination" elementType="FHIR.Reference"/>
        <element name="receiver">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosageInstruction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Dosage"/>
        </element>
        <element name="substitution" elementType="QICore.MedicationDispense.Substitution"/>
        <element name="detectedIssue">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationDispenseDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispensedone" label="MedicationDispense Done" target="MedicationDispense" retrievable="true" baseType="QICore.MedicationDispense">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.MedicationDispenseStatus"/>
        <element name="statusReason">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="context" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.MedicationDispense.Performer"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="authorizingPrescription">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="daysSupply" elementType="FHIR.SimpleQuantity"/>
        <element name="whenPrepared" elementType="FHIR.dateTime"/>
        <element name="whenHandedOver" elementType="FHIR.dateTime"/>
        <element name="destination" elementType="FHIR.Reference"/>
        <element name="receiver">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosageInstruction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Dosage"/>
        </element>
        <element name="substitution" elementType="QICore.MedicationDispense.Substitution"/>
        <element name="detectedIssue">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationProhibited" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationprohibited" label="Medication Prohibited" target="MedicationRequest" retrievable="true" baseType="QICore.MedicationRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.MedicationRequestStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="intent" elementType="FHIR.MedicationRequestIntent"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.MedicationRequestPriority"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="reported">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performer" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="reasonCode" elementType="FHIR.CodeableConcept"/>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="courseOfTherapyType" elementType="FHIR.CodeableConcept"/>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosageInstruction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Dosage"/>
        </element>
        <element name="dispenseRequest" elementType="QICore.MedicationRequest.DispenseRequest"/>
        <element name="substitution" elementType="QICore.MedicationRequest.Substitution"/>
        <element name="priorPrescription" elementType="FHIR.Reference"/>
        <element name="detectedIssue">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationRequest" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest" label="MedicationRequest" retrievable="true" primaryCodePath="medication" baseType="USCore.MedicationRequestProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.MedicationRequestStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="intent" elementType="FHIR.MedicationRequestIntent"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.MedicationRequestPriority"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="reported">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performer" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="courseOfTherapyType" elementType="FHIR.CodeableConcept"/>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosageInstruction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Dosage"/>
        </element>
        <element name="dispenseRequest" elementType="QICore.MedicationRequest.DispenseRequest"/>
        <element name="substitution" elementType="QICore.MedicationRequest.Substitution"/>
        <element name="priorPrescription" elementType="FHIR.Reference"/>
        <element name="detectedIssue">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="requester"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationRequest.DispenseRequest" retrievable="false" baseType="USCore.MedicationRequest.DispenseRequest">
        <element name="dispenseInterval" elementType="FHIR.Duration"/>
        <element name="validityPeriod" elementType="FHIR.Period"/>
        <element name="numberOfRepeatsAllowed" elementType="FHIR.unsignedInt"/>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="expectedSupplyDuration" elementType="FHIR.Duration"/>
        <element name="performer" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationRequest.DispenseRequest.InitialFill" retrievable="false" baseType="USCore.MedicationRequest.DispenseRequest.InitialFill">
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="duration" elementType="FHIR.Duration"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationRequest.Substitution" retrievable="false" baseType="USCore.MedicationRequest.Substitution">
        <element name="allowed">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="reason" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationRequested" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequested" label="MedicationRequested" target="MedicationRequest" retrievable="true" baseType="QICore.MedicationRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.MedicationRequestStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="intent" elementType="FHIR.MedicationRequestIntent"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.MedicationRequestPriority"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="reported">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="supportingInformation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performer" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="courseOfTherapyType" elementType="FHIR.CodeableConcept"/>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosageInstruction">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Dosage"/>
        </element>
        <element name="dispenseRequest" elementType="QICore.MedicationRequest.DispenseRequest"/>
        <element name="substitution" elementType="QICore.MedicationRequest.Substitution"/>
        <element name="priorPrescription" elementType="FHIR.Reference"/>
        <element name="detectedIssue">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="eventHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="MedicationStatement" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationstatement" label="MedicationStatement" retrievable="true" primaryCodePath="medication" baseType="FHIR.MedicationStatement">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.MedicationStatementStatus"/>
        <element name="statusReason">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="medication">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="context" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="dateAsserted" elementType="FHIR.dateTime"/>
        <element name="informationSource" elementType="FHIR.Reference"/>
        <element name="derivedFrom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="dosage">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Dosage"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="informationSource"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="informationSource"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NonPatientObservation" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-nonpatient-observation" label="NonPatient Observation" target="Observation" retrievable="true" baseType="FHIR.Observation">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ObservationStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="focus">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="instant"/>
            </elementTypeSpecifier>
        </element>
        <element name="issued" elementType="FHIR.instant"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="dataAbsentReason" elementType="FHIR.CodeableConcept"/>
        <element name="interpretation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="method" elementType="FHIR.CodeableConcept"/>
        <element name="specimen" elementType="FHIR.Reference"/>
        <element name="device" elementType="FHIR.Reference"/>
        <element name="referenceRange">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.ReferenceRange"/>
        </element>
        <element name="hasMember">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="derivedFrom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="component">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.Component"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NutritionOrder" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-nutritionorder" label="NutritionOrder" retrievable="true" baseType="FHIR.NutritionOrder">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="instantiates">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="status" elementType="FHIR.NutritionOrderStatus"/>
        <element name="intent" elementType="FHIR.NutritiionOrderIntent"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="dateTime" elementType="FHIR.dateTime"/>
        <element name="orderer" elementType="FHIR.Reference"/>
        <element name="allergyIntolerance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="foodPreferenceModifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="excludeFoodModifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="oralDiet" elementType="QICore.NutritionOrder.OralDiet"/>
        <element name="supplement">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.NutritionOrder.Supplement"/>
        </element>
        <element name="enteralFormula" elementType="QICore.NutritionOrder.EnteralFormula"/>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="orderer"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NutritionOrder.EnteralFormula" retrievable="false" baseType="FHIR.NutritionOrder.EnteralFormula">
        <element name="baseFormulaType" elementType="FHIR.CodeableConcept"/>
        <element name="baseFormulaProductName" elementType="FHIR.string"/>
        <element name="additiveType" elementType="FHIR.CodeableConcept"/>
        <element name="additiveProductName" elementType="FHIR.string"/>
        <element name="caloricDensity" elementType="FHIR.SimpleQuantity"/>
        <element name="routeofAdministration" elementType="FHIR.CodeableConcept"/>
        <element name="administration">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.NutritionOrder.EnteralFormula.Administration"/>
        </element>
        <element name="maxVolumeToDeliver" elementType="FHIR.SimpleQuantity"/>
        <element name="administrationInstruction" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NutritionOrder.EnteralFormula.Administration" retrievable="false" baseType="FHIR.NutritionOrder.EnteralFormula.Administration">
        <element name="schedule" elementType="FHIR.Timing"/>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="rate">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SimpleQuantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NutritionOrder.OralDiet" retrievable="false" baseType="FHIR.NutritionOrder.OralDiet">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="schedule">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Timing"/>
        </element>
        <element name="nutrient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.NutritionOrder.OralDiet.Nutrient"/>
        </element>
        <element name="texture">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.NutritionOrder.OralDiet.Texture"/>
        </element>
        <element name="fluidConsistencyType">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="instruction" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NutritionOrder.OralDiet.Nutrient" retrievable="false" baseType="FHIR.NutritionOrder.OralDiet.Nutrient">
        <element name="modifier" elementType="FHIR.CodeableConcept"/>
        <element name="amount" elementType="FHIR.SimpleQuantity"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NutritionOrder.OralDiet.Texture" retrievable="false" baseType="FHIR.NutritionOrder.OralDiet.Texture">
        <element name="modifier" elementType="FHIR.CodeableConcept"/>
        <element name="foodType" elementType="FHIR.CodeableConcept"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="NutritionOrder.Supplement" retrievable="false" baseType="FHIR.NutritionOrder.Supplement">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="productName" elementType="FHIR.string"/>
        <element name="schedule">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Timing"/>
        </element>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
        <element name="instruction" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Observation.Component" retrievable="false" baseType="USCore.Observation.Component">
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="dataAbsentReason" elementType="FHIR.CodeableConcept"/>
        <element name="interpretation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="referenceRange">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.ReferenceRange"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Observation.ReferenceRange" retrievable="false" baseType="USCore.Observation.ReferenceRange">
        <element name="low" elementType="FHIR.SimpleQuantity"/>
        <element name="high" elementType="FHIR.SimpleQuantity"/>
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="appliesTo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="age" elementType="FHIR.Range"/>
        <element name="text" elementType="FHIR.string"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ObservationClinicalResult" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-clinical-result" label="Observation Clinical Result" target="Observation" retrievable="true" baseType="USCore.ObservationClinicalResultProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ObservationStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="focus">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="instant"/>
            </elementTypeSpecifier>
        </element>
        <element name="issued" elementType="FHIR.instant"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="dataAbsentReason" elementType="FHIR.CodeableConcept"/>
        <element name="interpretation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="method" elementType="FHIR.CodeableConcept"/>
        <element name="specimen" elementType="FHIR.Reference"/>
        <element name="device" elementType="FHIR.Reference"/>
        <element name="referenceRange">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.ReferenceRange"/>
        </element>
        <element name="hasMember">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="derivedFrom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="component">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.Component"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ObservationScreeningAssessment" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-screening-assessment" label="Observation Screening Assessment" target="Observation" retrievable="true" baseType="USCore.ObservationScreeningAssessmentProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ObservationStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="focus">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="instant"/>
            </elementTypeSpecifier>
        </element>
        <element name="issued" elementType="FHIR.instant"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="dataAbsentReason" elementType="FHIR.CodeableConcept"/>
        <element name="interpretation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="method" elementType="FHIR.CodeableConcept"/>
        <element name="specimen" elementType="FHIR.Reference"/>
        <element name="device" elementType="FHIR.Reference"/>
        <element name="referenceRange">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.ReferenceRange"/>
        </element>
        <element name="hasMember">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="derivedFrom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="component">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.Component"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Organization" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization" label="Organization" retrievable="true" primaryCodePath="type" baseType="USCore.OrganizationProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="active" elementType="FHIR.boolean"/>
        <element name="type">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="name" elementType="FHIR.string"/>
        <element name="alias">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.string"/>
        </element>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="address">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Address"/>
        </element>
        <element name="partOf" elementType="FHIR.Reference"/>
        <element name="contact">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Organization.Contact"/>
        </element>
        <element name="endpoint">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Organization.Contact" retrievable="false" baseType="USCore.Organization.Contact">
        <element name="purpose" elementType="FHIR.CodeableConcept"/>
        <element name="name" elementType="FHIR.HumanName"/>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="address" elementType="FHIR.Address"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Patient" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient" label="Patient" retrievable="true" baseType="USCore.PatientProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="active" elementType="FHIR.boolean"/>
        <element name="name">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.HumanName"/>
        </element>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="gender" elementType="FHIR.AdministrativeGender"/>
        <element name="birthDate" elementType="FHIR.date"/>
        <element name="deceased">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
            </elementTypeSpecifier>
        </element>
        <element name="address">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Address"/>
        </element>
        <element name="maritalStatus" elementType="FHIR.CodeableConcept"/>
        <element name="multipleBirth">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
            </elementTypeSpecifier>
        </element>
        <element name="photo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Attachment"/>
        </element>
        <element name="contact">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Patient.Contact"/>
        </element>
        <element name="communication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Patient.Communication"/>
        </element>
        <element name="generalPractitioner">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="managingOrganization" elementType="FHIR.Reference"/>
        <element name="link">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Patient.Link"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="generalPractitioner"/>
        <contextRelationship context="Patient" relatedKeyElement="other"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="other"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Patient.Communication" retrievable="false" baseType="USCore.Patient.Communication">
        <element name="language" elementType="FHIR.CodeableConcept"/>
        <element name="preferred" elementType="FHIR.boolean"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Patient.Contact" retrievable="false" baseType="USCore.Patient.Contact">
        <element name="relationship">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="name" elementType="FHIR.HumanName"/>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="address" elementType="FHIR.Address"/>
        <element name="gender" elementType="FHIR.AdministrativeGender"/>
        <element name="organization" elementType="FHIR.Reference"/>
        <element name="period" elementType="FHIR.Period"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Patient.Link" retrievable="false" baseType="USCore.Patient.Link">
        <element name="other" elementType="FHIR.Reference"/>
        <element name="type" elementType="FHIR.LinkType"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Practitioner" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner" label="Practitioner" retrievable="true" baseType="USCore.PractitionerProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="active" elementType="FHIR.boolean"/>
        <element name="name">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.HumanName"/>
        </element>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="address">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Address"/>
        </element>
        <element name="gender" elementType="FHIR.AdministrativeGender"/>
        <element name="birthDate" elementType="FHIR.date"/>
        <element name="photo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Attachment"/>
        </element>
        <element name="qualification">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Practitioner.Qualification"/>
        </element>
        <element name="communication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Practitioner.Qualification" retrievable="false" baseType="USCore.Practitioner.Qualification">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="period" elementType="FHIR.Period"/>
        <element name="issuer" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="PractitionerRole" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole" label="PractitionerRole" retrievable="true" primaryCodePath="code" baseType="USCore.PractitionerRoleProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="active" elementType="FHIR.boolean"/>
        <element name="period" elementType="FHIR.Period"/>
        <element name="practitioner" elementType="FHIR.Reference"/>
        <element name="organization" elementType="FHIR.Reference"/>
        <element name="code">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="specialty">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="location">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="healthcareService">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="availableTime">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.PractitionerRole.AvailableTime"/>
        </element>
        <element name="notAvailable">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.PractitionerRole.NotAvailable"/>
        </element>
        <element name="availabilityExceptions" elementType="FHIR.string"/>
        <element name="endpoint">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="practitioner"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="PractitionerRole.AvailableTime" retrievable="false" baseType="USCore.PractitionerRole.AvailableTime">
        <element name="daysOfWeek">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.DaysOfWeek"/>
        </element>
        <element name="allDay" elementType="FHIR.boolean"/>
        <element name="availableStartTime" elementType="FHIR.time"/>
        <element name="availableEndTime" elementType="FHIR.time"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="PractitionerRole.NotAvailable" retrievable="false" baseType="USCore.PractitionerRole.NotAvailable">
        <element name="description" elementType="FHIR.string"/>
        <element name="during" elementType="FHIR.Period"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Procedure" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure" label="Procedure" retrievable="true" primaryCodePath="code" baseType="USCore.ProcedureProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ProcedureStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="performed">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="asserter" elementType="FHIR.Reference"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Procedure.Performer"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="outcome" elementType="FHIR.CodeableConcept"/>
        <element name="report">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="complication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="complicationDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="followUp">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="focalDevice">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Procedure.FocalDevice"/>
        </element>
        <element name="usedReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="usedCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="actor"/>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
        <contextRelationship context="Patient" relatedKeyElement="actor"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="actor"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Procedure.FocalDevice" retrievable="false" baseType="USCore.Procedure.FocalDevice">
        <element name="action" elementType="FHIR.CodeableConcept"/>
        <element name="manipulated" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Procedure.Performer" retrievable="false" baseType="USCore.Procedure.Performer">
        <element name="function" elementType="FHIR.CodeableConcept"/>
        <element name="actor" elementType="FHIR.Reference"/>
        <element name="onBehalfOf" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ProcedureDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-proceduredone" label="Procedure Done" target="Procedure" retrievable="true" baseType="QICore.Procedure">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ProcedureStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="performed">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="asserter" elementType="FHIR.Reference"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Procedure.Performer"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="outcome" elementType="FHIR.CodeableConcept"/>
        <element name="report">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="complication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="complicationDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="followUp">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="focalDevice">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Procedure.FocalDevice"/>
        </element>
        <element name="usedReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="usedCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ProcedureNotDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone" label="Procedure Not Done" target="Procedure" retrievable="true" primaryCodePath="code" baseType="QICore.Procedure">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ProcedureStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="category" elementType="FHIR.CodeableConcept"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="performed">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="recorder" elementType="FHIR.Reference"/>
        <element name="asserter" elementType="FHIR.Reference"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Procedure.Performer"/>
        </element>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="outcome" elementType="FHIR.CodeableConcept"/>
        <element name="report">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="complication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="complicationDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="followUp">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="focalDevice">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Procedure.FocalDevice"/>
        </element>
        <element name="usedReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="usedCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="RelatedPerson" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson" label="RelatedPerson" retrievable="true" primaryCodePath="relationship" baseType="USCore.RelatedPersonProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="active" elementType="FHIR.boolean"/>
        <element name="patient" elementType="FHIR.Reference"/>
        <element name="relationship">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="name">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.HumanName"/>
        </element>
        <element name="telecom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.ContactPoint"/>
        </element>
        <element name="gender" elementType="FHIR.AdministrativeGender"/>
        <element name="birthDate" elementType="FHIR.date"/>
        <element name="address">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Address"/>
        </element>
        <element name="photo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Attachment"/>
        </element>
        <element name="period" elementType="FHIR.Period"/>
        <element name="communication">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.RelatedPerson.Communication"/>
        </element>
        <contextRelationship context="Patient" relatedKeyElement="patient"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="RelatedPerson.Communication" retrievable="false" baseType="USCore.RelatedPerson.Communication">
        <element name="language" elementType="FHIR.CodeableConcept"/>
        <element name="preferred" elementType="FHIR.boolean"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ServiceProhibited" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-serviceprohibited" label="Service Prohibited" target="ServiceRequest" retrievable="true" baseType="QICore.ServiceRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="replaces">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="requisition" elementType="FHIR.Identifier"/>
        <element name="status" elementType="FHIR.ServiceRequestStatus"/>
        <element name="intent" elementType="FHIR.ServiceRequestIntent"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.ServiceRequestPriority"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="orderDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="quantity">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
            </elementTypeSpecifier>
        </element>
        <element name="asNeeded">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="locationCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="locationReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="specimen">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="patientInstruction" elementType="FHIR.string"/>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ServiceRequest" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest" label="ServiceRequest" retrievable="true" primaryCodePath="code" baseType="USCore.ServiceRequestProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="replaces">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="requisition" elementType="FHIR.Identifier"/>
        <element name="status" elementType="FHIR.ServiceRequestStatus"/>
        <element name="intent" elementType="FHIR.ServiceRequestIntent"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.ServiceRequestPriority"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="orderDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="quantity">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
            </elementTypeSpecifier>
        </element>
        <element name="asNeeded">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="locationCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="locationReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="specimen">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="patientInstruction" elementType="FHIR.string"/>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <contextRelationship context="Practitioner" relatedKeyElement="performer"/>
        <contextRelationship context="Practitioner" relatedKeyElement="requester"/>
        <contextRelationship context="Patient" relatedKeyElement="subject"/>
        <contextRelationship context="Patient" relatedKeyElement="performer"/>
        <contextRelationship context="Encounter" relatedKeyElement="encounter"/>
        <contextRelationship context="Device" relatedKeyElement="performer"/>
        <contextRelationship context="Device" relatedKeyElement="requester"/>
        <contextRelationship context="RelatedPerson" relatedKeyElement="performer"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="ServiceRequested" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequested" label="ServiceRequested" target="ServiceRequest" retrievable="true" baseType="QICore.ServiceRequest">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.canonical"/>
        </element>
        <element name="instantiatesUri">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.uri"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="replaces">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="requisition" elementType="FHIR.Identifier"/>
        <element name="status" elementType="FHIR.ServiceRequestStatus"/>
        <element name="intent" elementType="FHIR.ServiceRequestIntent"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="priority" elementType="FHIR.ServiceRequestPriority"/>
        <element name="doNotPerform" elementType="FHIR.boolean"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="orderDetail">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="quantity">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
            </elementTypeSpecifier>
        </element>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="occurrence">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
            </elementTypeSpecifier>
        </element>
        <element name="asNeeded">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
            </elementTypeSpecifier>
        </element>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType" elementType="FHIR.CodeableConcept"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="locationCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="locationReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="reasonCode">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="reasonReference">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="supportingInfo">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="specimen">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="bodySite">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="patientInstruction" elementType="FHIR.string"/>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="SimpleObservation" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-simple-observation" label="Simple Observation" target="Observation" retrievable="true" baseType="USCore.SimpleObservationProfile">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.ObservationStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="subject" elementType="FHIR.Reference"/>
        <element name="focus">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="effective">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="instant"/>
            </elementTypeSpecifier>
        </element>
        <element name="issued" elementType="FHIR.instant"/>
        <element name="performer">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
            </elementTypeSpecifier>
        </element>
        <element name="dataAbsentReason" elementType="FHIR.CodeableConcept"/>
        <element name="interpretation">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="bodySite" elementType="FHIR.CodeableConcept"/>
        <element name="method" elementType="FHIR.CodeableConcept"/>
        <element name="specimen" elementType="FHIR.Reference"/>
        <element name="device" elementType="FHIR.Reference"/>
        <element name="referenceRange">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.ReferenceRange"/>
        </element>
        <element name="hasMember">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="derivedFrom">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="component">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Observation.Component"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Substance" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-substance" label="Substance" retrievable="true" primaryCodePath="code" baseType="FHIR.Substance">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="status" elementType="FHIR.FHIRSubstanceStatus"/>
        <element name="category">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="description" elementType="FHIR.string"/>
        <element name="instance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Substance.Instance"/>
        </element>
        <element name="ingredient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Substance.Ingredient"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Substance.Ingredient" retrievable="false" baseType="FHIR.Substance.Ingredient">
        <element name="quantity" elementType="FHIR.Ratio"/>
        <element name="substance" elementType="FHIR.Reference"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Substance.Instance" retrievable="false" baseType="FHIR.Substance.Instance">
        <element name="identifier" elementType="FHIR.Identifier"/>
        <element name="expiry" elementType="FHIR.dateTime"/>
        <element name="quantity" elementType="FHIR.SimpleQuantity"/>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Task" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-task" label="Task" retrievable="true" primaryCodePath="code" baseType="FHIR.Task">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical" elementType="FHIR.canonical"/>
        <element name="instantiatesUri" elementType="FHIR.uri"/>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.TaskStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="businessStatus" elementType="FHIR.CodeableConcept"/>
        <element name="intent" elementType="FHIR.TaskIntent"/>
        <element name="priority" elementType="FHIR.TaskPriority"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="description" elementType="FHIR.string"/>
        <element name="focus" elementType="FHIR.Reference"/>
        <element name="for" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="executionPeriod" elementType="FHIR.Period"/>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="lastModified" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="owner" elementType="FHIR.Reference"/>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="reasonCode" elementType="FHIR.CodeableConcept"/>
        <element name="reasonReference" elementType="FHIR.Reference"/>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="restriction" elementType="QICore.Task.Restriction"/>
        <element name="input">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Task.Input"/>
        </element>
        <element name="output">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Task.Output"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Task.Input" retrievable="false" baseType="FHIR.Task.Input">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="base64Binary"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="canonical"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="code"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="decimal"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="id"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="instant"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="markdown"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="oid"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="unsignedInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="uri"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="url"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="uuid"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Address"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Annotation"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Attachment"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Coding"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="ContactPoint"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Count"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Distance"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Duration"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="HumanName"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Identifier"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Money"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Signature"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="ContactDetail"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Contributor"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="DataRequirement"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Expression"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="ParameterDefinition"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="RelatedArtifact"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="TriggerDefinition"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="UsageContext"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Dosage"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Meta"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Task.Output" retrievable="false" baseType="FHIR.Task.Output">
        <element name="type" elementType="FHIR.CodeableConcept"/>
        <element name="value">
            <elementTypeSpecifier xsi:type="ChoiceTypeSpecifier">
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="base64Binary"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="boolean"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="canonical"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="code"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="date"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="dateTime"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="decimal"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="id"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="instant"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="integer"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="markdown"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="oid"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="positiveInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="string"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="time"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="unsignedInt"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="uri"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="url"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="uuid"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Address"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Age"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Annotation"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Attachment"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="CodeableConcept"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Coding"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="ContactPoint"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Count"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Distance"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Duration"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="HumanName"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Identifier"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Money"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Period"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Quantity"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Range"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Ratio"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Reference"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="SampledData"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Signature"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Timing"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="ContactDetail"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Contributor"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="DataRequirement"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Expression"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="ParameterDefinition"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="RelatedArtifact"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="TriggerDefinition"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="UsageContext"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Dosage"/>
                <choice xsi:type="NamedTypeSpecifier" namespace="FHIR" name="Meta"/>
            </elementTypeSpecifier>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="Task.Restriction" retrievable="false" baseType="FHIR.Task.Restriction">
        <element name="repetitions" elementType="FHIR.positiveInt"/>
        <element name="period" elementType="FHIR.Period"/>
        <element name="recipient">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="TaskDone" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-taskdone" label="Task Done" target="Task" retrievable="true" baseType="QICore.Task">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical" elementType="FHIR.canonical"/>
        <element name="instantiatesUri" elementType="FHIR.uri"/>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.TaskStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="businessStatus" elementType="FHIR.CodeableConcept"/>
        <element name="intent" elementType="FHIR.TaskIntent"/>
        <element name="priority" elementType="FHIR.TaskPriority"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="description" elementType="FHIR.string"/>
        <element name="focus" elementType="FHIR.Reference"/>
        <element name="for" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="executionPeriod" elementType="FHIR.Period"/>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="lastModified" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="owner" elementType="FHIR.Reference"/>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="reasonCode" elementType="FHIR.CodeableConcept"/>
        <element name="reasonReference" elementType="FHIR.Reference"/>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="restriction" elementType="QICore.Task.Restriction"/>
        <element name="input">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Task.Input"/>
        </element>
        <element name="output">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Task.Output"/>
        </element>
    </typeInfo>
    <typeInfo xsi:type="ClassInfo" namespace="QICore" name="TaskRejected" identifier="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-taskrejected" label="Task Rejected" target="Task" retrievable="true" primaryCodePath="code" baseType="FHIR.Task">
        <element name="identifier">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Identifier"/>
        </element>
        <element name="instantiatesCanonical" elementType="FHIR.canonical"/>
        <element name="instantiatesUri" elementType="FHIR.uri"/>
        <element name="basedOn">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="groupIdentifier" elementType="FHIR.Identifier"/>
        <element name="partOf">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="status" elementType="FHIR.TaskStatus"/>
        <element name="statusReason" elementType="FHIR.CodeableConcept"/>
        <element name="businessStatus" elementType="FHIR.CodeableConcept"/>
        <element name="intent" elementType="FHIR.TaskIntent"/>
        <element name="priority" elementType="FHIR.TaskPriority"/>
        <element name="code" elementType="FHIR.CodeableConcept"/>
        <element name="description" elementType="FHIR.string"/>
        <element name="focus" elementType="FHIR.Reference"/>
        <element name="for" elementType="FHIR.Reference"/>
        <element name="encounter" elementType="FHIR.Reference"/>
        <element name="executionPeriod" elementType="FHIR.Period"/>
        <element name="authoredOn" elementType="FHIR.dateTime"/>
        <element name="lastModified" elementType="FHIR.dateTime"/>
        <element name="requester" elementType="FHIR.Reference"/>
        <element name="performerType">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.CodeableConcept"/>
        </element>
        <element name="owner" elementType="FHIR.Reference"/>
        <element name="location" elementType="FHIR.Reference"/>
        <element name="reasonCode" elementType="FHIR.CodeableConcept"/>
        <element name="reasonReference" elementType="FHIR.Reference"/>
        <element name="insurance">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="note">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Annotation"/>
        </element>
        <element name="relevantHistory">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="FHIR.Reference"/>
        </element>
        <element name="restriction" elementType="QICore.Task.Restriction"/>
        <element name="input">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Task.Input"/>
        </element>
        <element name="output">
            <elementTypeSpecifier xsi:type="ListTypeSpecifier" elementType="QICore.Task.Output"/>
        </element>
    </typeInfo>
    <contextInfo name="Practitioner" keyElement="id">
        <contextType namespace="QICore" name="Practitioner"/>
    </contextInfo>
    <contextInfo name="Device" keyElement="id">
        <contextType namespace="QICore" name="Device"/>
    </contextInfo>
    <contextInfo name="Patient" keyElement="id" birthDateElement="birthDate">
        <contextType namespace="QICore" name="Patient"/>
    </contextInfo>
    <contextInfo name="Encounter" keyElement="id">
        <contextType namespace="QICore" name="Encounter"/>
    </contextInfo>
    <contextInfo name="RelatedPerson" keyElement="id">
        <contextType namespace="QICore" name="RelatedPerson"/>
    </contextInfo>
</modelInfo>