我有一组 fhir 资源,格式如下:
<Basic>
<meta>
<versionId value="1.0"/>
<lastUpdated value="2016-11-18T10:26:51Z"/>
<profile value="http://stelar.org/StructureDefinition/stelar/profile/anthropometry"/>
</meta>
<text>
<status value="generated"/>
</text>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/const-sourceIdentifier">
<cohortName value="TEST"/>
<datasetName value="SEATONJEAug14A1"/>
<archetypeName value="Abdo20wks"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/const-resourceTags">
<valueString value="SEATON"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/anthropometryType">
<valueCoding value="AnthropometricMeasure"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/subjectNo">
<valueString value="5375"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/methodOfFollowUp">
<valueCoding value="FollowUpMethod.ClinicVisit"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/followUp">
<valueCoding value="FollowUp.SNRecruitment"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/variableLabel">
<valueString value="Abdominal girth 20 week fetal scan (mm)"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/AIW">
<valueDouble value="1841.0"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/subject">
<valueCoding value="Person.StudySubject"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/clinicalType">
<valueCoding value="ClinicalMeasurement.AnthropometricMeasure"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/dataSource">
<valueCoding value="DataSource.ClinicalMeasurement"/>
</extension>
<extension url="http://stelar.org/StructureDefinition/stelar/extension/dataAnthropometricMeasure"/>
</Basic>
我有许多类似结构的资源,其中一些常量会发生变化,例如http://stelar.org/StructureDefinition/stelar/extension/dataSource的值。我将如何构建一个查询来搜索数据源为“DataSource.ClinicalMeasurement”的资源。
我已阅读有关搜索的文档,但似乎没有提及搜索扩展。
作为旁注,我不得不将我的所有数据都基于 Basic 资源类型并使用扩展,原因有点过于无关,无法在此处提出。