<!-- 就诊人列表 -->
<popup disableScroll="{{ false }}" className="{{ classStyleName }}" show="{{ popUpOpened }}" position="{{ popupPosition }}">
  <view class="choose-hospital-popup" style="height: 847rpx; background: #fff; border-radius: 16rpx 16rpx 0 0;">
    <view class="choose-hospital-content">
      <view class="title">
        <view>请选择住院人</view>
        <view onTap="onClose">
          <image class="close-image" src="https://gw.alipayobjects.com/mdn/rms_e695cc/afts/img/A*dEvTSpTQtbEAAAAAAAAAAAAAARQnAQ"
            mode="aspectFill" />
        </view>
      </view>
      <view class="content">
        <!-- 就诊人列表 -->
        <block a:if="{{ hospitalizationRecordList && hospitalizationRecordList.length > 0 }}">
          <view a:for="{{ hospitalizationRecordList }}" class="patient-item" key="{{ item.userId }}">
            <view class="patient-item-left">
              <view class="patient-item-line-one">
                <view class="name">{{ item.inpatientName }}</view>
              </view>
              <view class="patient-item-line-two">
                {{ item.sex ? item.sex + ',' : '' }}
                {{ item.inpatientAge ? item.inpatientAge + '岁' + ',' : '' }}
                {{ item.inpatientId ? item.inpatientId : '' }}
              </view>
            </view>
            <view a:if="{{ index !== selectIndex }}" class="patient-item-right">
              <button data-info="{{ item }}" class="choose-btn" onTap="onChoosePatient">
                选择
              </button>
            </view>
            <view a:if="{{ index === selectIndex }}" class="patient-item-select">
              <button data-info="{{ item }}" class="choose-btn" onTap="onChoosePatient">
                <icon type="success_no_circle" size="10" color="#1677ff" />
                <text class="btn-text">已选</text>
              </button>
            </view>
          </view>
        </block>
        <!-- 无就诊人 -->
        <block a:else>
          <view class="no-data">
            <image mode="scaleToFill" src="../../assets/noData.png" class="nodata-img" />
          </view>
        </block>
      </view>
    </view>
  </view>
</popup>
