The blockchain technology designed by information security experts empowers in library service and healthcare service via smart contracts. Advanced blockchain technology provides a mechanism for smart contracts. Through intelligent threshold design and the open and tamper-proof nature of the blockchain, smart contracts have become a new generation of information security technology. In the next-generation library services, traditional borrowing materials from the library have evolved into a limited-time sharing service for electronic materials. These electronic materials have various loan periods and sharing time-varying by different borrower privileges. This study designs a patron-centric account's smart contract to disseminate library information more effectively and collect accurate library data. The smart contract automatically triggers the loan period and extends this mechanism to designing a personal health privacy sharing protocol for improving the one-time authorization sharing mechanism. As a result, this study may provide blockchain smart contract designs shared by library information and healthcare through cross-domain consideration and scheme.