diff --git a/integration-tests/STU3_1_1UsCoreCapStatement.json b/integration-tests/STU3_1_1UsCoreCapStatement.json new file mode 100644 index 00000000..29e8e8f0 --- /dev/null +++ b/integration-tests/STU3_1_1UsCoreCapStatement.json @@ -0,0 +1,3807 @@ +{ + "resourceType": "CapabilityStatement", + "id": "us-core-server", + "text": { + "status": "generated", + "div": "

US Core Server CapabilityStatement

This Section describes the expected capabilities of the US Core Server actor which is responsible for providing responses to the queries submitted by the US Core Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Core Servers are defined. Systems implementing this capability statement should meet the ONC 2015 Common Clinical Data Set (CCDS) access requirement for Patient Selection 170.315(g)(7) and Application Access - Data Category Request 170.315(g)(8) and and the ONC U.S. Core Data for Interoperability (USCDI). US Core Clients have the option of choosing from this list to access necessary data based on their local use cases and other contextual requirements.

FHIR RESTful Capabilities

The US Core Server SHALL:

  1. Support the US Core Patient resource profile.
  2. Support at least one additional resource profile from the list of US Core Profiles.
  3. Implement the RESTful behavior according to the FHIR specification.
  4. Return the following response classes:\n
    • (Status 400): invalid parameter
    • (Status 401/4xx): unauthorized request
    • (Status 403): insufficient scope
    • (Status 404): unknown resource
    • (Status 410): deleted resource.
    \n
  5. Support json source formats for all US Core interactions.

The US Core Server SHOULD:

  1. Support xml source formats for all US Core interactions.
  2. Identify the US Core profiles supported as part of the FHIR meta.profile attribute for each instance.
  3. Support xml resource formats for all Argonaut questionnaire interactions.

Security:

  1. See the General Security Considerations section for requirements and recommendations.
  2. A server SHALL reject any unauthorized requests by returning an HTTP 401 unauthorized response code.

Summary of System Wide Interactions

  • MAY support the\ttransaction interaction.
  • MAY support the\tbatch interaction.
  • MAY support the\tsearch-system interaction.
  • MAY support the\thistory-system interaction.
  • RESTful Capabilities by Resource/Profile:

    Summary of Search Criteria

    Resource TypeSupported ProfilesSupported SearchesSupported _includesSupported _revincludesSupported Operations
    AllergyIntoleranceUS Core AllergyIntolerance Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tclinical-status, patient\n\t\t\t\t\t\t\tpatient+clinical-status\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    CarePlanUS Core CarePlan Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcategory, date, patient, status\n\t\t\t\t\t\t\tpatient+category+status+date, patient+category+status, patient+category, patient+category+date\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    CareTeamUS Core CareTeam Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpatient, status\n\t\t\t\t\t\t\tpatient+status\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    ConditionUS Core Condition Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcategory, clinical-status, patient, onset-date, code\n\t\t\t\t\t\t\tpatient+onset-date, patient+category, patient+clinical-status, patient+code\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    DeviceUS Core Implantable Device Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpatient, type\n\t\t\t\t\t\t\tpatient+type\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    DiagnosticReportUS Core DiagnosticReport Profile for Report and Note exchange, \n\n\t\t\t\t\t\tUS Core DiagnosticReport Profile for Laboratory Results Reporting\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstatus, patient, category, code, date\n\t\t\t\t\t\t\tpatient+category+date, patient+status, patient+code+date, patient+code, patient+category\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    DocumentReferenceUS Core DocumentReference Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t_id, status, patient, category, type, date, period\n\t\t\t\t\t\t\tpatient+type+period, patient+type, patient+category+date, patient+status, patient+category\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\tdocref\n\t\t\t\t\t\t
    EncounterUS Core Encounter Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t_id, class, date, identifier, patient, status, type\n\t\t\t\t\t\t\tclass+patient, patient+status, patient+type, date+patient\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    GoalUS Core Goal Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlifecycle-status, patient, target-date\n\t\t\t\t\t\t\tpatient+lifecycle-status, patient+target-date\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    ImmunizationUS Core Immunization Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpatient, status, date\n\t\t\t\t\t\t\tpatient+date, patient+status\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    LocationUS Core Location Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tname, address, address-city, address-state, address-postalcode\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    MedicationUS Core Medication Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    MedicationRequestUS Core MedicationRequest Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstatus, intent, patient, encounter, authoredon\n\t\t\t\t\t\t\tpatient+intent, patient+intent+encounter, patient+intent+authoredon, patient+intent+status\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tMedicationRequest:medication\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    ObservationUS Core Smoking Status Observation Profile, \n\n\t\t\t\t\t\tUS Core Pediatric Weight for Height Observation Profile, \n\n\t\t\t\t\t\tUS Core Laboratory Result Observation Profile, \n\n\t\t\t\t\t\tUS Core Pediatric BMI for Age Observation Profile, \n\n\t\t\t\t\t\tUS Core Pulse Oximetry Profile, \n\n\t\t\t\t\t\tUS Core Pediatric Head Occipital-frontal Circumference Percentile Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstatus, category, code, date, patient\n\t\t\t\t\t\t\tpatient+category+date, patient+category+status, patient+code+date, patient+code, patient+category\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    OrganizationUS Core Organization Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tname, address\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    PatientUS Core Patient Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t_id, birthdate, family, gender, given, identifier, name\n\t\t\t\t\t\t\tbirthdate+family, family+gender, birthdate+name, gender+name\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    PractitionerUS Core Practitioner Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tname, identifier\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    PractitionerRoleUS Core PractitionerRole Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tspecialty, practitioner\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tPractitionerRole:endpoint, PractitionerRole:practitioner\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    ProcedureUS Core Procedure Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstatus, patient, date, code\n\t\t\t\t\t\t\tpatient+date, patient+status, patient+code+date\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n Provenance:target\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    ProvenanceUS Core Provenance Profile\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    ValueSet\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\texpand\n\t\t\t\t\t\t

    AllergyIntolerance

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core AllergyIntolerance Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYclinical-status\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/AllergyIntolerance?clinical-status=[system]|[code]
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/AllergyIntolerance?patient=[patient]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDpatient+clinical-status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/AllergyIntolerance?patient=[patient]&clinical-status=[system]|[code]

    CarePlan

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core CarePlan Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYcategory\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/CarePlan?category=[system]|[code]
    MAYdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/CarePlan?date=[date]
    MAYpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/CarePlan?patient=[patient]
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/CarePlan?status=[status]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDpatient+category+status+date\n\t\t\t\t\t\treference+token+token+date\n\t\t\t\t\t\tGET [base]/CarePlan?patient=[patient]&category=[system]|[code]&status=[status]&date=[date]
    SHOULDpatient+category+status\n\t\t\t\t\t\treference+token+token\n\t\t\t\t\t\tGET [base]/CarePlan?patient=[patient]&category=[system]|[code]&status=[status]
    SHALLpatient+category\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/CarePlan?patient=[patient]&category=[system]|[code]
    SHOULDpatient+category+date\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/CarePlan?patient=[patient]&category=[system]|[code]&date=[date]

    CareTeam

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core CareTeam Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/CareTeam?patient=[patient]
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/CareTeam?status=[status]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHALLpatient+status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/CareTeam?patient=[patient]&status=[status]

    Condition

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Condition Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYcategory\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Condition?category=[system]|[code]
    MAYclinical-status\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Condition?clinical-status=[system]|[code]
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/Condition?patient=[patient]
    MAYonset-date\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/Condition?onset-date=[onset-date]
    MAYcode\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Condition?code=[system]|[code]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDpatient+onset-date\n\t\t\t\t\t\treference+date\n\t\t\t\t\t\tGET [base]/Condition?patient=[patient]&onset-date=[onset-date]
    SHOULDpatient+category\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Condition?patient=[patient]&category=[system]|[code]
    SHOULDpatient+clinical-status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Condition?patient=[patient]&clinical-status=[system]|[code]
    SHOULDpatient+code\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Condition?patient=[patient]&code=[system]|[code]

    Device

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Implantable Device Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/Device?patient=[patient]
    MAYtype\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Device?type=[system]|[code]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDpatient+type\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Device?patient=[patient]&type=[system]|[code]

    DiagnosticReport

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core DiagnosticReport Profile for Report and Note exchange, \n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core DiagnosticReport Profile for Laboratory Results Reporting\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    create

    This conformance expectation applies only to the US Core DiagnosticReport Profile for Report and Note exchange profile. The conformance expectation for the US Core DiagnosticReport Profile for Laboratory Results Reporting is MAY.

    \n

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/DiagnosticReport?status=[status]
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/DiagnosticReport?patient=[patient]
    MAYcategory\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/DiagnosticReport?category=[system]|[code]
    MAYcode\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/DiagnosticReport?code=[system]|[code]
    MAYdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/DiagnosticReport?date=[date]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHALLpatient+category+date\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/DiagnosticReport?patient=[patient]&category=[system]|[code]&date=[date]
    SHOULDpatient+status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/DiagnosticReport?patient=[patient]&status=[status]
    SHOULDpatient+code+date\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/DiagnosticReport?patient=[patient]&code=[system]|[code]&date=[date]
    SHALLpatient+code\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/DiagnosticReport?patient=[patient]&code=[system]|[code]
    SHALLpatient+category\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/DiagnosticReport?patient=[patient]&category=[system]|[code]

    DocumentReference

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core DocumentReference Profile\n\t\t\t\t\n\t\t\t\t

    Resource Specific Documentation:

    The DocumentReference.type binding SHALL support at a minimum the 5 Common Clinical Notes and may extend to the full US Core DocumentReference Type Value Set

    Reference Policy: resolves

    Profile Interaction Summary:

    Operation Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALL_id\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/DocumentReference?_id=[id]
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/DocumentReference?status=[status]
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/DocumentReference?patient=[patient]
    MAYcategory\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/DocumentReference?category=[system]|[code]
    MAYtype\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/DocumentReference?type=[system]|[code]
    MAYdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/DocumentReference?date=[date]
    MAYperiod\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/DocumentReference?period=[period]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDpatient+type+period\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/DocumentReference?patient=[patient]&type=[system]|[code]&period=[period]
    SHALLpatient+type\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/DocumentReference?patient=[patient]&type=[system]|[code]
    SHALLpatient+category+date\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/DocumentReference?patient=[patient]&category=[system]|[code]&date=[date]
    SHOULDpatient+status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/DocumentReference?patient=[patient]&status=[status]
    SHALLpatient+category\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/DocumentReference?patient=[patient]&category=[system]|[code]

    Encounter

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Encounter Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALL_id\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Encounter?_id=[id]
    MAYclass\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Encounter?class=[system]|[code]
    MAYdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/Encounter?date=[date]
    SHOULDidentifier\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Encounter?identifier=[system]|[code]
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/Encounter?patient=[patient]
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Encounter?status=[status]
    MAYtype\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Encounter?type=[system]|[code]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDclass+patient\n\t\t\t\t\t\ttoken+reference\n\t\t\t\t\t\tGET [base]/Encounter?class=[system]|[code]&patient=[patient]
    SHOULDpatient+status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Encounter?patient=[patient]&status=[status]
    SHOULDpatient+type\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Encounter?patient=[patient]&type=[system]|[code]
    SHALLdate+patient\n\t\t\t\t\t\tdate+reference\n\t\t\t\t\t\tGET [base]/Encounter?date=[date]&patient=[patient]

    Goal

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Goal Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYlifecycle-status\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Goal?lifecycle-status=[system]|[code]
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/Goal?patient=[patient]
    MAYtarget-date\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/Goal?target-date=[target-date]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDpatient+lifecycle-status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Goal?patient=[patient]&lifecycle-status=[system]|[code]
    SHOULDpatient+target-date\n\t\t\t\t\t\treference+date\n\t\t\t\t\t\tGET [base]/Goal?patient=[patient]&target-date=[target-date]

    Immunization

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Immunization Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/Immunization?patient=[patient]
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Immunization?status=[status]
    MAYdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/Immunization?date=[date]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDpatient+date\n\t\t\t\t\t\treference+date\n\t\t\t\t\t\tGET [base]/Immunization?patient=[patient]&date=[date]
    SHOULDpatient+status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Immunization?patient=[patient]&status=[status]

    Location

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Location Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALLname\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Location?name=[name]
    SHALLaddress\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Location?address=[address]
    SHOULDaddress-city\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Location?address-city=[address-city]
    SHOULDaddress-state\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Location?address-state=[address-state]
    SHOULDaddress-postalcode\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Location?address-postalcode=[address-postalcode]

    Medication

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Medication Profile\n\t\t\t\t\n\t\t\t\t

    Resource Specific Documentation:

    The MedicationRequest resource can represent a medication, using an external reference to a Medication resource. If an external Medication Resourcse is used in a MedicationRequest, then the READ SHALL be supported.

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:


    MedicationRequest

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core MedicationRequest Profile\n\t\t\t\t\n\t\t\t\t

    Resource Specific Documentation:

    The MedicationRequest resources can represent a medication using either a code or refer to the Medication resource. When referencing Medication, the resource may be contained or an external resource. The server application MAY choose any one way or more than one method, but if an external reference to Medication is used, the server SHALL support the _include` parameter for searching this element. The client application must support all methods.

    For example, A server SHALL be capable of returning all medications for a patient using one of or both:

    GET /MedicationRequest?patient=[id]

    GET /MedicationRequest?patient=[id]&_include=MedicationRequest:medication

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/MedicationRequest?status=[status]
    MAYintent\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/MedicationRequest?intent=[system]|[code]
    MAYpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/MedicationRequest?patient=[patient]
    MAYencounter\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/MedicationRequest?encounter=[encounter]
    MAYauthoredon\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/MedicationRequest?authoredon=[authoredon]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHALLpatient+intent\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/MedicationRequest?patient=[patient]&intent=[system]|[code]
    SHOULDpatient+intent+encounter\n\t\t\t\t\t\treference+token+reference\n\t\t\t\t\t\tGET [base]/MedicationRequest?patient=[patient]&intent=[system]|[code]&encounter=[encounter]
    SHOULDpatient+intent+authoredon\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/MedicationRequest?patient=[patient]&intent=[system]|[code]&authoredon=[authoredon]
    SHALLpatient+intent+status\n\t\t\t\t\t\treference+token+token\n\t\t\t\t\t\tGET [base]/MedicationRequest?patient=[patient]&intent=[system]|[code]&status=[status]

    Observation

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Smoking Status Observation Profile, \n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Pediatric Weight for Height Observation Profile, \n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Laboratory Result Observation Profile, \n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Pediatric BMI for Age Observation Profile, \n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Pulse Oximetry Profile, \n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Pediatric Head Occipital-frontal Circumference Percentile Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Observation?status=[status]
    MAYcategory\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Observation?category=[system]|[code]
    MAYcode\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Observation?code=[system]|[code]
    MAYdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/Observation?date=[date]
    MAYpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/Observation?patient=[patient]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHALLpatient+category+date\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/Observation?patient=[patient]&category=[system]|[code]&date=[date]
    SHOULDpatient+category+status\n\t\t\t\t\t\treference+token+token\n\t\t\t\t\t\tGET [base]/Observation?patient=[patient]&category=[system]|[code]&status=[status]
    SHOULDpatient+code+date\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/Observation?patient=[patient]&code=[system]|[code]&date=[date]
    SHALLpatient+code\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Observation?patient=[patient]&code=[system]|[code]
    SHALLpatient+category\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Observation?patient=[patient]&category=[system]|[code]

    Organization

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Organization Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALLname\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Organization?name=[name]
    SHALLaddress\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Organization?address=[address]

    Patient

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Patient Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALL_id\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Patient?_id=[id]
    MAYbirthdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/Patient?birthdate=[birthdate]
    MAYfamily\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Patient?family=[family]
    MAYgender\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Patient?gender=[system]|[code]
    MAYgiven\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Patient?given=[given]
    SHALLidentifier\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Patient?identifier=[system]|[code]
    SHALLname\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Patient?name=[name]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHOULDbirthdate+family\n\t\t\t\t\t\tdate+string\n\t\t\t\t\t\tGET [base]/Patient?birthdate=[birthdate]&family=[family]
    SHOULDfamily+gender\n\t\t\t\t\t\tstring+token\n\t\t\t\t\t\tGET [base]/Patient?family=[family]&gender=[system]|[code]
    SHALLbirthdate+name\n\t\t\t\t\t\tdate+string\n\t\t\t\t\t\tGET [base]/Patient?birthdate=[birthdate]&name=[name]
    SHALLgender+name\n\t\t\t\t\t\ttoken+string\n\t\t\t\t\t\tGET [base]/Patient?gender=[system]|[code]&name=[name]

    Practitioner

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Practitioner Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALLname\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/Practitioner?name=[name]
    SHALLidentifier\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Practitioner?identifier=[system]|[code]

    PractitionerRole

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core PractitionerRole Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALLspecialty\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/PractitionerRole?specialty=[system]|[code]
    SHALLpractitioner\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/PractitionerRole?practitioner=[practitioner]

    Procedure

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Procedure Profile\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:

    Search Parameter Summary:

    ConformanceParameterTypeExample
    MAYstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Procedure?status=[status]
    SHALLpatient\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/Procedure?patient=[patient]
    MAYdate\n\t\t\t\t\t\t\tdate\n\t\t\t\t\t\tGET [base]/Procedure?date=[date]
    MAYcode\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/Procedure?code=[system]|[code]

    Search Parameter Combination Summary:

    ConformanceParameter CombinationTypesExample
    SHALLpatient+date\n\t\t\t\t\t\treference+date\n\t\t\t\t\t\tGET [base]/Procedure?patient=[patient]&date=[date]
    SHOULDpatient+status\n\t\t\t\t\t\treference+token\n\t\t\t\t\t\tGET [base]/Procedure?patient=[patient]&status=[status]
    SHOULDpatient+code+date\n\t\t\t\t\t\treference+token+date\n\t\t\t\t\t\tGET [base]/Procedure?patient=[patient]&code=[system]|[code]&date=[date]

    Provenance

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tUS Core Provenance Profile\n\t\t\t\t\n\t\t\t\t

    Resource Specific Documentation:

    If a system receives a provider in Provenance.agent.who as free text they must capture who sent them the information as the organization. On request they SHALL provide this organization as the source and MAY include the free text provider.

    Reference Policy: resolves

    Profile Interaction Summary:

    Fetch and Search Criteria:


    ValueSet

    Conformance Expectation:\tSHOULD

    Operation Summary:



    " + }, + "url": "http://hl7.org/fhir/us/core/CapabilityStatement/us-core-server", + "version": "3.1.1", + "name": "UsCoreServerCapabilityStatement", + "title": "US Core Server CapabilityStatement", + "status": "active", + "experimental": false, + "date": "2020-07-28", + "publisher": "HL7 International - US Realm Steering Committee", + "contact": [ + { + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/usrealm/index.cfm" + } + ] + } + ], + "description": "This Section describes the expected capabilities of the US Core Server actor which is responsible for providing responses to the queries submitted by the US Core Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Core Servers are defined. Systems implementing this capability statement should meet the ONC 2015 Common Clinical Data Set (CCDS) access requirement for Patient Selection 170.315(g)(7) and Application Access - Data Category Request 170.315(g)(8) and and the ONC [U.S. Core Data for Interoperability (USCDI)](https://www.healthit.gov/isa/sites/isa/files/2020-03/USCDI-Version1-2020-Final-Standard.pdf). US Core Clients have the option of choosing from this list to access necessary data based on their local use cases and other contextual requirements.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US", + "display": "United States of America" + } + ] + } + ], + "kind": "requirements", + "fhirVersion": "4.0.1", + "format": [ + "xml", + "json" + ], + "patchFormat": [ + "application/json-patch+json" + ], + "implementationGuide": [ + "http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core|3.1.1" + ], + "rest": [ + { + "mode": "server", + "documentation": "The US Core Server **SHALL**:\n\n1. Support the US Core Patient resource profile.\n1. Support at least one additional resource profile from the list of US Core Profiles.\n1. Implement the RESTful behavior according to the FHIR specification.\n1. Return the following response classes:\n - (Status 400): invalid parameter\n - (Status 401/4xx): unauthorized request\n - (Status 403): insufficient scope\n - (Status 404): unknown resource\n - (Status 410): deleted resource.\n1. Support json source formats for all US Core interactions.\n\nThe US Core Server **SHOULD**:\n\n1. Support xml source formats for all US Core interactions.\n1. Identify the US Core profiles supported as part of the FHIR `meta.profile` attribute for each instance.\n1. Support xml resource formats for all Argonaut questionnaire interactions.", + "security": { + "description": "1. See the [General Security Considerations](security.html) section for requirements and recommendations.\n1. A server **SHALL** reject any unauthorized requests by returning an `HTTP 401` unauthorized response code." + }, + "resource": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "clinical-status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "AllergyIntolerance", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "clinical-status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-allergyintolerance-clinical-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-allergyintolerance-patient", + "type": "reference" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + }, + { + "url": "required", + "valueString": "status" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "CarePlan", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "category", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careplan-category", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careplan-date", + "type": "date" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careplan-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careplan-status", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "CareTeam", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careteam-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-careteam-status", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "onset-date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "clinical-status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "code" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Condition", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "category", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-category", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "clinical-status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-clinical-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "onset-date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-onset-date", + "type": "date" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "code", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-code", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "type" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Device", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-device-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "type", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-device-type", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "code" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "code" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "DiagnosticReport", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note", + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "create", + "documentation": "This conformance expectation applies **only** to the *US Core DiagnosticReport Profile for Report and Note exchange* profile. The conformance expectation for the *US Core DiagnosticReport Profile for Laboratory Results Reporting* is **MAY**." + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-diagnosticreport-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-diagnosticreport-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "category", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-diagnosticreport-category", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "code", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-diagnosticreport-code", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-diagnosticreport-date", + "type": "date" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "type" + }, + { + "url": "required", + "valueString": "period" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "type" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "DocumentReference", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference" + ], + "documentation": "The DocumentReference.type binding SHALL support at a minimum the [5 Common Clinical Notes](ValueSet-us-core-clinical-note-type.html) and may extend to the full US Core DocumentReference Type Value Set", + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "_id", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-id", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "category", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-category", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "type", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-type", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-date", + "type": "date" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "period", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-period", + "type": "date" + } + ], + "operation": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "docref", + "definition": "http://hl7.org/fhir/us/core/OperationDefinition/docref", + "documentation": "A server **SHALL** be capable of responding to a $docref operation and capable of returning at least a reference to a generated CCD document, if available. **MAY** provide references to other 'on-demand' and 'stable' documents (or 'delayed/deferred assembly') that meet the query parameters as well. If a context date range is supplied the server ** SHOULD** provide references to any document that falls within the date range If no date range is supplied, then the server **SHALL** provide references to last or current encounter. **SHOULD** document what resources, if any, are returned as included resources\n\n`GET [base]/DocumentReference/$docref?patient=[id]`" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "class" + }, + { + "url": "required", + "valueString": "patient" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "type" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "date" + }, + { + "url": "required", + "valueString": "patient" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Encounter", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "_id", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-id", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "class", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-class", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-date", + "type": "date" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "name": "identifier", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-identifier", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "type", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-encounter-type", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "lifecycle-status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "target-date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Goal", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "lifecycle-status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-goal-lifecycle-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-goal-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "target-date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-goal-target-date", + "type": "date" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Immunization", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-immunization-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-immunization-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-immunization-date", + "type": "date" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "Location", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-location" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "name", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-location-name", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "address", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-location-address", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "name": "address-city", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-location-address-city", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "name": "address-state", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-location-address-state", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "name": "address-postalcode", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-location-address-postalcode", + "type": "string" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "Medication", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication" + ], + "documentation": "The MedicationRequest resource can represent a medication, using an external reference to a Medication resource. If an external Medication Resourcse is used in a MedicationRequest, then the READ **SHALL** be supported.", + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "intent" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "intent" + }, + { + "url": "required", + "valueString": "encounter" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "intent" + }, + { + "url": "required", + "valueString": "authoredon" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "intent" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "MedicationRequest", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest" + ], + "documentation": "The MedicationRequest resources can represent a medication using either a code or refer to the Medication resource. When referencing Medication, the resource may be [contained](http://hl7.org/fhir/R4/references.html#contained) or an external resource. The server application **MAY** choose any one way or more than one method, but if an external reference to Medication is used, the server **SHALL** support the _include` parameter for searching this element. The client application must support all methods.\n\n For example, A server **SHALL** be capable of returning all medications for a patient using one of or both:\n\n `GET /MedicationRequest?patient=[id]`\n\n `GET /MedicationRequest?patient=[id]&_include=MedicationRequest:medication`", + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchInclude": [ + "MedicationRequest:medication" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "intent", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-intent", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "encounter", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-encounter", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "authoredon", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-authoredon", + "type": "date" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "code" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "code" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "category" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Observation", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus", + "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height", + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab", + "http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age", + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry", + "http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "category", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-category", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "code", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-code", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-date", + "type": "date" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-patient", + "type": "reference" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "Organization", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "name", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-organization-name", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "address", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-organization-address", + "type": "string" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "birthdate" + }, + { + "url": "required", + "valueString": "family" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "family" + }, + { + "url": "required", + "valueString": "gender" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "birthdate" + }, + { + "url": "required", + "valueString": "name" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "gender" + }, + { + "url": "required", + "valueString": "name" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Patient", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "_id", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-id", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "birthdate", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-birthdate", + "type": "date" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "family", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-family", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "gender", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-gender", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "given", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-given", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "identifier", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-identifier", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "name", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-patient-name", + "type": "string" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "Practitioner", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "name", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-practitioner-name", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "identifier", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-practitioner-identifier", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "PractitionerRole", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchInclude": [ + "PractitionerRole:endpoint", + "PractitionerRole:practitioner" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "specialty", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-practitionerrole-specialty", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "practitioner", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-practitionerrole-practitioner", + "type": "reference" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "status" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + }, + { + "url": "required", + "valueString": "patient" + }, + { + "url": "required", + "valueString": "code" + }, + { + "url": "required", + "valueString": "date" + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" + } + ], + "type": "Procedure", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchRevInclude": [ + "Provenance:target" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-procedure-status", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "patient", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-procedure-patient", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "date", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-procedure-date", + "type": "date" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "name": "code", + "definition": "http://hl7.org/fhir/us/core/SearchParameter/us-core-procedure-code", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "Provenance", + "supportedProfile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance" + ], + "documentation": "If a system receives a provider in `Provenance.agent.who` as free text they must capture who sent them the information as the organization. On request they **SHALL** provide this organization as the source and **MAY** include the free text provider.", + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "type": "ValueSet", + "operation": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "name": "expand", + "definition": "http://hl7.org/fhir/OperationDefinition/ValueSet-expand", + "documentation": "A client can determine the note and report types support by a server by invoking the standard FHIR Value Set Expansion ($expand) operation defined in the FHIR R4 specification. Because servers may support different read and write formats, it also is used to determine the formats (for example, text, pdf) the server supports read and write transactions." + } + ] + } + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "transaction" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "batch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "search-system" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-system" + } + ] + } + ] +} \ No newline at end of file diff --git a/integration-tests/implementationGuides.test.ts b/integration-tests/implementationGuides.test.ts index 18cd5561..3baea422 100644 --- a/integration-tests/implementationGuides.test.ts +++ b/integration-tests/implementationGuides.test.ts @@ -2,10 +2,14 @@ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -import axios, { AxiosInstance } from 'axios'; +import { AxiosInstance } from 'axios'; import waitForExpect from 'wait-for-expect'; import { cloneDeep } from 'lodash'; import { Chance } from 'chance'; +// NOTE this needs to be the same version as what is going to be downloaded. Please see /.github/workflows/deploy.yaml to verify +// This json is version STU3.1.1 from https://www.hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.json +// We're using the JSON instead of downloading from the URL because the SSL cert at that domain has expired +import STU311UsCoreCapStatement from './STU3_1_1UsCoreCapStatement.json'; import { expectResourceToBeInBundle, expectResourceToBePartOfSearchResults, @@ -18,9 +22,6 @@ import { CapabilityStatement } from './types'; jest.setTimeout(60 * 1000); -// NOTE this needs to be the same version as what is going to be downloaded. Please see /.github/workflows/deploy.yaml to verify -const usCoreVersion = 'STU3.1.1'; - describe('Implementation Guides - US Core', () => { let client: AxiosInstance; beforeAll(async () => { @@ -93,9 +94,8 @@ describe('Implementation Guides - US Core', () => { actualCapabilityStatement, ); - const expectedCapStatement: CapabilityStatement = ( - await axios.get(`https://www.hl7.org/fhir/us/core/${usCoreVersion}/CapabilityStatement-us-core-server.json`) - ).data; + // @ts-ignore + const expectedCapStatement: CapabilityStatement = STU311UsCoreCapStatement; const expectedResourcesWithSupportedProfile: Record = getResourcesWithSupportedProfile( expectedCapStatement,