KR102565114B1 - Genuine medicines certification verification server which performs verification of genuine certificated medicines based on two-dimensional codes, and the operating method thereof - Google Patents

Genuine medicines certification verification server which performs verification of genuine certificated medicines based on two-dimensional codes, and the operating method thereof Download PDF

Info

Publication number
KR102565114B1
KR102565114B1 KR1020210103863A KR20210103863A KR102565114B1 KR 102565114 B1 KR102565114 B1 KR 102565114B1 KR 1020210103863 A KR1020210103863 A KR 1020210103863A KR 20210103863 A KR20210103863 A KR 20210103863A KR 102565114 B1 KR102565114 B1 KR 102565114B1
Authority
KR
South Korea
Prior art keywords
drug
identification number
electronic terminal
medicine
activation
Prior art date
Application number
KR1020210103863A
Other languages
Korean (ko)
Other versions
KR20220133734A (en
Inventor
송상엽
천병갑
김광석
정종갑
Original Assignee
주식회사 한컴위드
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 한컴위드 filed Critical 주식회사 한컴위드
Publication of KR20220133734A publication Critical patent/KR20220133734A/en
Application granted granted Critical
Publication of KR102565114B1 publication Critical patent/KR102565114B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition

Abstract

2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버 및 그 동작 방법이 개시된다. 본 발명은 의약품을 구매한 사용자가, 의약품의 포장지에 인쇄된 2차원 코드를 자신의 전자 단말로 인식시키게 되면, 상기 2차원 코드에 삽입된 정보를 기초로, 상기 사용자가 구매한 의약품이 정품인증을 받은 의약품인지 여부를 확인할 수 있는 의약품 정품인증 확인 서버 및 그 동작 방법에 대한 것이다.Disclosed are a drug activation confirmation server that performs confirmation on whether a drug is an activated drug based on a two-dimensional code and an operation method thereof. According to the present invention, when a user who purchases a drug recognizes a two-dimensional code printed on a packaging of the drug with his or her electronic terminal, the drug purchased by the user is certified as genuine based on the information inserted into the two-dimensional code. It is about a drug activation confirmation server that can check whether it is a drug that has been received and its operation method.

Description

2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버 및 그 동작 방법{GENUINE MEDICINES CERTIFICATION VERIFICATION SERVER WHICH PERFORMS VERIFICATION OF GENUINE CERTIFICATED MEDICINES BASED ON TWO-DIMENSIONAL CODES, AND THE OPERATING METHOD THEREOF}A drug activation confirmation server that performs confirmation on whether a drug is a product that has been activated based on a two-dimensional code and its operation method AND THE OPERATING METHOD THEREOF}

본 발명은 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버 및 그 동작 방법에 대한 것이다.The present invention relates to a drug activation confirmation server and an operating method thereof that verify whether a drug is an activated drug based on a two-dimensional code.

의약품이란, 의료에 쓰이는 약품을 의미하는 것으로서, 사람이나 동물의 질병 진단, 치료 또는 예방의 목적으로 사용된다. 따라서, 정품 의약품이 아닌 의약품을 사용하게 되면, 예상치 못한 부작용이 발생하거나 신체에 심각한 악영향을 미칠 수 있기 때문에, 반드시 정품 의약품을 사용해야 한다.Pharmaceuticals refer to drugs used for medical treatment, and are used for the purpose of diagnosing, treating, or preventing diseases in humans or animals. Therefore, when using non-genuine pharmaceuticals, unexpected side effects may occur or have serious adverse effects on the body, so genuine pharmaceuticals must be used.

이와 관련해서, 의약품의 포장지에는, 해당 의약품이 정품인증을 받은 의약품임을 증명하기 위해, 정품인증 표시가 되어 있는 경우가 많다. 하지만, 정품이 아닌 의약품의 포장지에, 무단으로 정품인증 표시가 되어 있다면, 해당 의약품을 구매한 사용자는 해당 의약품이 실제로 정품인증을 받은 의약품인지 여부를 확인하기 어렵다는 문제점이 있다.In this regard, in many cases, a genuine product certification mark is displayed on the packaging of a drug to prove that the drug is a product that has received product certification. However, if the packaging of a non-genuine drug is marked with activation without authorization, it is difficult for a user who has purchased the drug to determine whether the corresponding drug is actually a certified drug.

한편, 최근에는 QR 코드(Quick Response Code), veri code, 닷 코드 등과 같은 2차원 코드의 활용이 증가함에 따라, 의약품의 포장지에 해당 의약품이 정품인증을 받은 의약품인지 여부를 확인하기 위한 소정의 정보가 포함된 2차원 코드를 인쇄해두는 방식을 고려할 수 있다.On the other hand, as the use of two-dimensional codes such as QR codes (Quick Response Codes), veri codes, and dot codes has increased recently, predetermined information for confirming whether the corresponding medicine is a certified medicine on the packaging of medicine A method of printing a two-dimensional code including ? may be considered.

이를 통해, 의약품을 구매한 사용자가, 의약품의 포장지에 인쇄되어 있는 2차원 코드를 자신의 전자 단말로 스캔하여, 해당 의약품이 실제로 정품인증을 받은 의약품인지 여부를 확인할 수 있다면, 사용자가 보다 정확하고 신속하게, 의약품에 대한 정품인증 여부를 확인할 수 있다는 점에서, 의약품에 대한 신뢰성과 안전성을 증대시킬 수 있을 것이다.Through this, if the user who has purchased the drug can scan the two-dimensional code printed on the packaging of the drug with his or her electronic terminal to confirm whether the drug is actually a drug that has received activation, the user can be more accurate and In that it is possible to quickly check whether the product is genuine or not, it will be possible to increase the reliability and safety of the drug.

따라서, 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부를 확인할 수 있는 시스템 기술에 대한 연구가 필요하다.Therefore, it is necessary to research a system technology that can confirm whether a drug is a drug that has received activation based on a two-dimensional code.

본 발명은 의약품을 구매한 사용자가, 의약품의 포장지에 인쇄된 2차원 코드를 자신의 전자 단말로 인식시키게 되면, 상기 2차원 코드에 삽입된 정보를 기초로, 상기 사용자가 구매한 의약품이 정품인증을 받은 의약품인지 여부를 확인할 수 있는 의약품 정품인증 확인 서버 및 그 동작 방법을 제시함으로써, 상기 사용자가 보다 정확하고, 신속하게 의약품이 정품인증을 받은 의약품인지 여부를 확인할 수 있도록 지원하고자 한다.According to the present invention, when a user who purchases a drug recognizes a two-dimensional code printed on a packaging of the drug with his or her electronic terminal, the drug purchased by the user is certified as genuine based on the information inserted into the two-dimensional code. By presenting a drug activation confirmation server and its operating method capable of confirming whether a drug has been approved, it is intended to support the user to more accurately and quickly determine whether a drug is a certified drug.

본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버는 정품인증을 받은 의약품인 것으로 사전 지정된 복수의 의약품들 - 상기 복수의 의약품들 각각에는, 각 의약품을 식별하기 위한 n(n은 2 이상의 자연수임) 자릿수의 주 식별번호와 k(k는 2 이상의 자연수임) 자릿수의 보조 식별번호가 사전 할당되어 있음과 동시에, 각 의약품에 대한 주 식별번호와 보조 식별번호가 사전 설정된 토큰 생성 함수에 입력으로 인가되어 산출된 출력 값인 식별 토큰이 사전 할당되어 있고, 상기 복수의 의약품들 각각의 포장지에는, 각 의약품에 대한 주 식별번호 및 식별 토큰에 대한 정보가 삽입되어 있는 2차원 코드가 사전 인쇄되어 있음 - 각각에 대한 보조 식별번호와 상기 복수의 의약품들 각각에 대한 식별 토큰이 서로 대응되어 저장되어 있는 의약품 정보 데이터베이스, 상기 복수의 의약품들 중 어느 하나인 제1 의약품을 구매한 사용자의 전자 단말로부터, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인 요청이 수신되면, 상기 전자 단말로, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드에 삽입되어 있는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송을 요청하는 전송 요청부, 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 제1 주 식별번호와 제1 식별 토큰이 수신되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 제1 식별 토큰을 기초로, 상기 의약품 정보 데이터베이스를 참조하여, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 정품인증 확인부 및 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하는 정품인증 확인 메시지 전송부를 포함한다.According to an embodiment of the present invention, the drug activation confirmation server that checks whether or not a drug is a certified drug based on a two-dimensional code is a plurality of drugs pre-designated as products that have been activated - the above Each of the plurality of medicines is pre-allocated with a main identification number of n (n is a natural number of 2 or more) digits and an auxiliary identification number of k (k is a natural number of 2 or more) digits to identify each medicine in advance, An identification token, which is an output value calculated by applying a main identification number and an auxiliary identification number for each medicine as inputs to a preset token generation function, is pre-allocated, and on the packaging of each of the plurality of medicines, the main identification for each medicine A two-dimensional code in which information on numbers and identification tokens are inserted is pre-printed - A drug information database in which auxiliary identification numbers for each and identification tokens for each of the plurality of drugs are stored in correspondence with each other, the plurality of drugs When a request for confirmation as to whether the first medicine is a certified medicine is received from the electronic terminal of the user who has purchased the first medicine, which is one of the medicines, to the electronic terminal, the wrapping paper of the first medicine Transmission request unit for requesting transmission of the main identification number and identification token for the first medicine inserted in the two-dimensional code printed on the first medicine, in response to the request for transmission of the main identification number and identification token for the first medicine, In the electronic terminal, as the two-dimensional code printed on the wrapping paper of the first medicine is scanned and recognized, from the electronic terminal, the first main identification number extracted from the two-dimensional code printed on the wrapping paper of the first medicine and When the first identification token is received, based on the first main identification number and the first identification token received from the electronic terminal, whether the first medicine is a certified medicine by referring to the medicine information database. If it is confirmed that the activation confirmation unit and the first drug that has received activation, and the activation confirmation unit for performing the confirmation, generates a activation confirmation message indicating that the first drug is a drug that has undergone activation, and sends it to the electronic terminal. and a transmission unit for transmitting a genuine authentication confirmation message.

또한, 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법은 정품인증을 받은 의약품인 것으로 사전 지정된 복수의 의약품들 - 상기 복수의 의약품들 각각에는, 각 의약품을 식별하기 위한 n(n은 2 이상의 자연수임) 자릿수의 주 식별번호와 k(k는 2 이상의 자연수임) 자릿수의 보조 식별번호가 사전 할당되어 있음과 동시에, 각 의약품에 대한 주 식별번호와 보조 식별번호가 사전 설정된 토큰 생성 함수에 입력으로 인가되어 산출된 출력 값인 식별 토큰이 사전 할당되어 있고, 상기 복수의 의약품들 각각의 포장지에는, 각 의약품에 대한 주 식별번호 및 식별 토큰에 대한 정보가 삽입되어 있는 2차원 코드가 사전 인쇄되어 있음 - 각각에 대한 보조 식별번호와 상기 복수의 의약품들 각각에 대한 식별 토큰이 서로 대응되어 저장되어 있는 의약품 정보 데이터베이스를 유지하는 단계, 상기 복수의 의약품들 중 어느 하나인 제1 의약품을 구매한 사용자의 전자 단말로부터, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인 요청이 수신되면, 상기 전자 단말로, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드에 삽입되어 있는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송을 요청하는 단계, 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 제1 주 식별번호와 제1 식별 토큰이 수신되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 제1 식별 토큰을 기초로, 상기 의약품 정보 데이터베이스를 참조하여, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 단계 및 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하는 단계를 포함한다.In addition, according to an embodiment of the present invention, a method of operating a drug activation confirmation server that checks whether or not a drug is a certified drug based on a two-dimensional code is a plurality of pre-designated drugs as genuine products. of medicines - each of the plurality of medicines has a primary identification number of n (where n is a natural number greater than or equal to 2) digits and a secondary identification number of k (where k is a natural number greater than or equal to 2) digits are pre-assigned to identify each medicine. At the same time, an identification token, which is an output value calculated by applying the main identification number and auxiliary identification number for each medicine as an input to a preset token generation function, is pre-allocated, and on the wrapping paper of each of the plurality of medicines, each A two-dimensional code in which information on the main identification number and identification token for the medicine is inserted is pre-printed - Medicines in which the auxiliary identification number for each medicine and the identification token for each of the plurality of medicines are stored in correspondence with each other Maintaining an information database, when a request for confirmation as to whether the first drug is a certified drug is received from an electronic terminal of a user who has purchased a first drug, which is any one of the plurality of drugs, the electronic device Requesting, by a terminal, transmission of the main identification number and identification token for the first medicine inserted in the two-dimensional code printed on the packaging of the first medicine, and the main identification number and identification token for the first medicine. In response to the transmission request of the electronic terminal, as the two-dimensional code printed on the wrapping paper of the first medicine is scanned and recognized, the electronic terminal extracts from the two-dimensional code printed on the wrapping paper of the first medicine. When the received first main identification number and first identification token are received, the first main identification number and the first identification token are received by referring to the medicine information database based on the first main identification number and the first identification token received from the electronic terminal, so that the first medicine is Confirming whether or not the first drug is a certified drug, and if it is confirmed that the first drug is a certified drug, generating an activation confirmation message indicating that the first drug is a certified drug and transmitting to the electronic terminal.

본 발명은 의약품을 구매한 사용자가, 의약품의 포장지에 인쇄된 2차원 코드를 자신의 전자 단말로 인식시키게 되면, 상기 2차원 코드에 삽입된 정보를 기초로, 상기 사용자가 구매한 의약품이 정품인증을 받은 의약품인지 여부를 확인할 수 있는 의약품 정품인증 확인 서버 및 그 동작 방법을 제시함으로써, 상기 사용자가 보다 정확하고, 신속하게 의약품이 정품인증을 받은 의약품인지 여부를 확인할 수 있도록 지원할 수 있다.According to the present invention, when a user who purchases a drug recognizes a two-dimensional code printed on a packaging of the drug with his or her electronic terminal, the drug purchased by the user is certified as genuine based on the information inserted into the two-dimensional code. By presenting a drug activation confirmation server capable of confirming whether or not a drug has been approved and an operating method thereof, it is possible to support the user to more accurately and promptly determine whether a drug is a certified drug.

도 1은 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 구조를 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작을 설명하기 위한 도면이다.
도 3은 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법을 도시한 순서도이다.
FIG. 1 is a diagram showing the structure of a drug activation confirmation server that verifies whether or not a drug is an approved drug based on a two-dimensional code according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining the operation of a drug activation confirmation server that checks whether a drug is a drug that has been activated based on a two-dimensional code according to an embodiment of the present invention.
FIG. 3 is a flow chart illustrating an operation method of a drug activation confirmation server that checks whether a drug is a drug that has been activated based on a two-dimensional code according to an embodiment of the present invention.

이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. This description is not intended to limit the present invention to specific embodiments, but should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. While describing each drawing, similar reference numerals have been used for similar components, and unless otherwise defined, all terms used in this specification, including technical or scientific terms, are common knowledge in the art to which the present invention belongs. has the same meaning as commonly understood by the person who has it.

본 문서에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있다는 것을 의미한다. 또한, 본 발명의 다양한 실시예들에 있어서, 각 구성요소들, 기능 블록들 또는 수단들은 하나 또는 그 이상의 하부 구성요소로 구성될 수 있고, 각 구성요소들이 수행하는 전기, 전자, 기계적 기능들은 전자회로, 집적회로, ASIC(Application Specific Integrated Circuit) 등 공지된 다양한 소자들 또는 기계적 요소들로 구현될 수 있으며, 각각 별개로 구현되거나 2 이상이 하나로 통합되어 구현될 수도 있다. In this document, when a certain component is said to "include", it means that it may further include other components without excluding other components unless otherwise stated. In addition, in various embodiments of the present invention, each component, functional block, or means may be composed of one or more sub-components, and the electrical, electronic, and mechanical functions performed by each component are electronic It may be implemented with various known elements or mechanical elements such as circuits, integrated circuits, ASICs (Application Specific Integrated Circuits), and may be implemented separately or two or more may be integrated into one.

한편, 첨부된 블록도의 블록들이나 흐름도의 단계들은 범용 컴퓨터, 특수용 컴퓨터, 휴대용 노트북 컴퓨터, 네트워크 컴퓨터 등 데이터 프로세싱이 가능한 장비의 프로세서나 메모리에 탑재되어 지정된 기능들을 수행하는 컴퓨터 프로그램 명령들(instructions)을 의미하는 것으로 해석될 수 있다. 이들 컴퓨터 프로그램 명령들은 컴퓨터 장치에 구비된 메모리 또는 컴퓨터에서 판독 가능한 메모리에 저장될 수 있기 때문에, 블록도의 블록들 또는 흐름도의 단계들에서 설명된 기능들은 이를 수행하는 명령 수단을 내포하는 제조물로 생산될 수도 있다. 아울러, 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 명령들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 가능한 실시예들에서는 블록들 또는 단계들에서 언급된 기능들이 정해진 순서와 달리 실행되는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 실질적으로 동시에 수행되거나, 역순으로 수행될 수 있으며, 경우에 따라 일부 블록들 또는 단계들이 생략된 채로 수행될 수도 있다.On the other hand, the blocks of the accompanying block diagram or the steps of the flowchart are computer program instructions that perform designated functions by being loaded into a processor or memory of a device capable of data processing, such as a general-purpose computer, a special purpose computer, a portable notebook computer, and a network computer. can be interpreted as meaning Since these computer program instructions may be stored in a memory included in a computer device or in a computer readable memory, the functions described in blocks of a block diagram or steps of a flowchart are produced as a product containing instruction means for performing them. It could be. Further, each block or each step may represent a module, segment or portion of code that includes one or more executable instructions for executing specified logical function(s). Also, it should be noted that in some alternative embodiments, functions mentioned in blocks or steps may be executed out of a predetermined order. For example, two blocks or steps shown in succession may be performed substantially simultaneously or in reverse order, and in some cases, some blocks or steps may be omitted.

도 1은 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 구조를 도시한 도면이다. FIG. 1 is a diagram showing the structure of a drug activation confirmation server that verifies whether or not a drug is an approved drug based on a two-dimensional code according to an embodiment of the present invention.

도 1을 참조하면, 본 발명에 따른 의약품 정품인증 확인 서버(110)는 의약품 정보 데이터베이스(111), 전송 요청부(112), 정품인증 확인부(113) 및 정품인증 확인 메시지 전송부(114)를 포함한다.Referring to FIG. 1, the drug activation confirmation server 110 according to the present invention includes a drug information database 111, a transmission request unit 112, an activation confirmation unit 113, and an activation confirmation message transmission unit 114. includes

먼저, 본 발명에서의 복수의 의약품들은, 정품인증을 받은 의약품인 것으로 사전 지정된 의약품들로, 상기 복수의 의약품들 각각에는, 각 의약품을 식별하기 위한 n(n은 2 이상의 자연수임) 자릿수의 주 식별번호와 k(k는 2 이상의 자연수임) 자릿수의 보조 식별번호가 사전 할당되어 있음과 동시에, 각 의약품에 대한 주 식별번호와 보조 식별번호가 사전 설정된 토큰 생성 함수에 입력으로 인가되어 산출된 출력 값인 식별 토큰이 사전 할당되어 있고, 상기 복수의 의약품들 각각의 포장지에는, 각 의약품에 대한 주 식별번호 및 식별 토큰에 대한 정보가 삽입되어 있는 2차원 코드가 사전 인쇄되어 있음을 가정한다.First, a plurality of medicines in the present invention are medicines pre-designated as genuine medicines, and each of the plurality of medicines has n (n is a natural number of 2 or more) digit number for identifying each medicine. An identification number and an auxiliary identification number of k (k is a natural number of 2 or more) digits are pre-assigned, and at the same time, the main identification number and auxiliary identification number for each drug are applied as inputs to a preset token generation function, and the output is calculated. It is assumed that an identification token, which is a value, is pre-allocated, and a two-dimensional code in which a main identification number for each medicine and information on the identification token are inserted is pre-printed on the wrapping paper of each of the plurality of medicines.

여기서, 상기 2차원 코드는 2차원 이미지 패턴 상에 다양한 문자 등의 정보를 삽입할 수 있는 코드를 의미하는 것으로, QR 코드(Quick Response Code), veri code, 닷 코드 등이 사용되거나 한국등록특허 제10-1897960호에 개시된 다수의 점으로 구성된 픽셀 공간을 통해 2차원 이미지 상에 소정의 데이터를 표현할 수 있는 디지털 코드 등이 사용될 수 있다. 이와 관련해서, 도 2의 도시된 그림은 흰색 포장지(210)의 표면에 다수의 노란색 점으로 구성된 픽셀 공간을 통해 2차원 이미지 상에 소정의 데이터를 표현할 수 있는 디지털 코드(211)가 상기 2차원 코드로 삽입되어 있는 예를 나타낸 것이다. 이러한 디지털 코드는 도면부호 211에 도시된 바와 같이, 노란색의 점으로 구성되어 있어서, 흰색 바탕의 배경과 대비하였을 때, 색상의 대비가 명확하지 않아서, 육안으로는 명확하게 관찰되기가 어렵지만, 전자 단말의 카메라는 사람의 시각과 다르게 노란색의 점에 대한 식별을 수행할 수 있다는 점에서, 전자 단말을 통해서는 노란색 점의 패턴이 명확하게 식별될 수 있는 특징을 갖는다.Here, the two-dimensional code refers to a code capable of inserting information such as various characters on a two-dimensional image pattern, and QR codes (Quick Response Codes), veri codes, dot codes, etc. are used or Korean registered patents A digital code that can express predetermined data on a two-dimensional image through a pixel space composed of a plurality of points disclosed in No. 10-1897960 may be used. In this regard, the figure shown in FIG. 2 shows that the digital code 211 capable of expressing predetermined data on a two-dimensional image through a pixel space composed of a plurality of yellow dots on the surface of the white wrapping paper 210 is the two-dimensional It shows an example inserted into the code. As shown at reference numeral 211, this digital code is composed of yellow dots, so when compared with a white background, the color contrast is not clear, so it is difficult to clearly observe with the naked eye, but the electronic terminal Since the camera of can perform identification of yellow dots differently from human vision, the pattern of yellow dots can be clearly identified through an electronic terminal.

이러한 상황에서, 의약품 정품인증 확인 서버(110)의 의약품 정보 데이터베이스(111)에는 정품인증을 받은 의약품인 것으로 사전 지정된 복수의 의약품들 각각에 대한 보조 식별번호와 상기 복수의 의약품들 각각에 대한 식별 토큰이 서로 대응되어 저장되어 있다.In this situation, in the drug information database 111 of the drug activation confirmation server 110, an auxiliary identification number for each of a plurality of drugs pre-designated as genuine drugs and an identification token for each of the plurality of drugs These are stored in correspondence with each other.

이때, 본 발명의 일실시예에 따르면, 상기 토큰 생성 함수는 상기 복수의 의약품들 중 어느 하나의 의약품에 사전 할당된 n 자릿수의 주 식별번호와 k 자릿수의 보조 식별번호가 입력으로 인가되면, 입력으로 인가된 n 자릿수의 주 식별번호를 구성하는 n개의 숫자들을 성분으로 갖는 행벡터와, 입력으로 인가된 k 자릿수의 보조 식별번호를 구성하는 k개의 숫자들을 성분으로 갖는 행벡터 간의 크로네커 곱(Kronecker Product)을 연산하여 1 x nk 크기의 연산 행렬을 생성하고, 상기 연산 행렬을 구성하는 nk개의 성분들로 구성되는 데이터열을 생성한 후, 상기 데이터열을 사전 설정된 해시 함수에 입력으로 인가하여 산출된 해시 값을, 상기 어느 하나의 의약품에 대한 식별 토큰으로 산출하는 함수일 수 있다.At this time, according to one embodiment of the present invention, the token generation function is applied when an n-digit main identification number and a k-digit sub-identification number pre-assigned to any one medicine among the plurality of medicines are applied as inputs. Kronecker Product (Kronecker Product ) to generate an operation matrix of size 1 x nk, generate a data sequence composed of nk elements constituting the operation matrix, and then apply the data sequence to a preset hash function as an input to calculate It may be a function that calculates a hash value as an identification token for any one of the medicines.

여기서, 크로네커 곱이란 두 행렬의 텐서곱을 구체적으로 표현한 행렬을 의미하는 것으로, 하기의 수학식 1과 같은 a x b 크기의 행렬 A와 하기의 수학식 2와 같은 p x q 크기의 행렬 B가 주어졌다고 하였을 때, 행렬 A와 행렬 B 간의 크로네커 곱은 하기의 수학식 3과 같이 나타낼 수 있다.Here, the Kronecker product means a matrix specifically expressing the tensor product of two matrices. Given a matrix A of size a x b as in Equation 1 below and a matrix B of size p x q as in Equation 2 below , Kronecker product between matrix A and matrix B can be expressed as in Equation 3 below.

예컨대, n을 '3', k를 '4'이라고 하고, 상기 복수의 의약품들을 '의약품 1, 의약품 2, 의약품 3'이라고 가정하자.For example, it is assumed that n is '3' and k is '4', and the plurality of medicines are 'drug 1, medicine 2, and medicine 3'.

이때, '의약품 1'에 대해, '3' 자릿수의 주 식별번호로 '321'이 사전 할당되어 있다고 하고, '4' 자릿수의 보조 식별번호로 '1233'이 사전 할당되어 있다고 하며, '321'과 '1233'이 상기 토큰 생성 함수에 입력으로 인가되어 산출된 출력 값이 '식별 토큰 1'이라고 하는 경우, '의약품 1'의 포장지에는, '321'과 '식별 토큰 1'에 대한 정보가 삽입되어 있는 2차원 코드가 사전 인쇄되어 있을 수 있고, 의약품 정보 데이터베이스(111)에는, '의약품 1'에 대한 보조 식별번호인 '1233'과 '의약품 1'에 대한 식별 토큰인 '식별 토큰 1'이 서로 대응되어 저장되어 있을 수 있다.At this time, it is assumed that '321' is pre-assigned as the '3' digit primary identification number for 'Drug 1', and '1233' is pre-assigned as the '4' digit secondary identification number. and '1233' are applied as inputs to the token generation function and the output value calculated is 'identification token 1', information on '321' and 'identification token 1' is inserted into the packaging of 'drug 1' The two-dimensional code may be pre-printed, and in the drug information database 111, '1233', an auxiliary identification number for 'drug 1', and 'identification token 1', an identification token for 'drug 1' They may be stored in correspondence with each other.

이러한 방식으로, 의약품 정보 데이터베이스(111)에는 하기의 표 1과 같이, '의약품 1, 의약품 2, 의약품 3' 각각에 대한 보조 식별번호와, '의약품 1, 의약품 2, 의약품 3' 각각에 대한 식별 토큰이 서로 대응되어 저장되어 있을 수 있다.In this way, in the drug information database 111, as shown in Table 1 below, auxiliary identification numbers for each of 'drug 1, drug 2, and drug 3' and identification for each of 'drug 1, drug 2, and drug 3' Tokens may be stored in correspondence with each other.

의약품medicine 보조 식별번호Secondary identification number 식별 토큰identification token 의약품 1medicine 1 12331233 식별 토큰 1identification token 1 의약품 2medicine 2 23442344 식별 토큰 2identification token 2 의약품 3medicine 3 34553455 식별 토큰 3identification token 3

전송 요청부(112)는 상기 복수의 의약품들 중 어느 하나인 제1 의약품을 구매한 사용자(130)의 전자 단말(140)로부터, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인 요청이 수신되면, 전자 단말(140)로, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드에 삽입되어 있는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송을 요청한다.The transmission request unit 112 requests confirmation from the electronic terminal 140 of the user 130 who has purchased the first medicine, which is any one of the plurality of medicines, whether the first medicine is a certified medicine. When this is received, the electronic terminal 140 requests transmission of the main identification number and identification token for the first medicine inserted in the two-dimensional code printed on the wrapping paper of the first medicine.

예컨대, 전술한 예와 같이, 상기 복수의 의약품들을 '의약품 1, 의약품 2, 의약품 3'이라고 하고, '의약품 1'을 구매한 사용자(130)가 전자 단말(140)에, '의약품 1'이 정품인증을 받은 의약품인지 여부에 대한 확인 명령을 인가하였다고 하며, 이에 따라, 의약품 정품인증 확인 서버(110)에 전자 단말(140)로부터, '의약품 1'이 정품인증을 받은 의약품인지 여부에 대한 확인 요청이 수신되었다고 가정하자.For example, as in the above example, the plurality of medicines are referred to as 'drug 1, medicine 2, and medicine 3', and the user 130 who has purchased 'drug 1' displays 'drug 1' in the electronic terminal 140. It is said that the confirmation command for whether or not it is a certified drug has been authorized, and accordingly, in the drug activation confirmation server 110, from the electronic terminal 140, it is confirmed whether 'Drug 1' is a certified drug. Assume that the request is received.

그러면, 전송 요청부(112)는 전자 단말(140)로, '의약품 1'의 포장지에 인쇄된 2차원 코드에 삽입되어 있는 '의약품 1'에 대한 주 식별번호 및 식별 토큰의 전송을 요청할 수 있다.Then, the transmission request unit 112 may request the electronic terminal 140 to transmit the main identification number and identification token for 'drug 1' inserted in the two-dimensional code printed on the wrapping paper of 'drug 1'. .

이때, 본 발명의 일실시예에 따르면, 전자 단말(140)은 의약품 정품인증 확인 서버(110)로부터, '의약품 1'에 대한 주 식별번호 및 식별 토큰의 전송 요청이 수신되면, 사용자(130)에 대해, 전자 단말(140)을 이용하여 '의약품 1'의 포장지에 인쇄된 2차원 코드를 인식시킬 것을 지시하는 안내 메시지를 화면 상에 표시할 수 있고, 이에 대응하여, 사용자(130)는 전자 단말(140)에 탑재된 카메라를 통해, '의약품 1'의 포장지에 인쇄된 2차원 코드를 스캔함으로써, '의약품 1'의 포장지에 인쇄된 2차원 코드를 인식시킬 수 있다.At this time, according to one embodiment of the present invention, when the electronic terminal 140 receives a request for transmission of the main identification number and identification token for 'drug 1' from the drug activation confirmation server 110, the user 130 , a guide message instructing to recognize the two-dimensional code printed on the wrapping paper of 'drug 1' may be displayed on the screen using the electronic terminal 140, and in response, the user 130 may use the electronic terminal 140 to By scanning the 2D code printed on the packaging of 'Drug 1' through the camera mounted in the terminal 140, the 2D code printed on the packaging of 'Drug 1' can be recognized.

이때, 전술한 예에 따르면, '의약품 1'의 포장지에 인쇄된 2차원 코드에는 '321'과 '식별 토큰 1'이 삽입되어 있으므로, 전자 단말(140)은 '의약품 1'의 포장지에 인쇄된 2차원 코드로부터, '321'과 '식별 토큰 1'을 추출하여 의약품 정품인증 서버(110)로 전송할 수 있다.At this time, according to the above-described example, since '321' and 'identification token 1' are inserted in the two-dimensional code printed on the wrapping paper of 'drug 1', the electronic terminal 140 displays the printed on the wrapping paper of 'drug 1'. From the two-dimensional code, '321' and 'identification token 1' may be extracted and transmitted to the drug activation server 110.

이렇게, 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 전자 단말(140)에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 전자 단말(140)로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 제1 주 식별번호와 제1 식별 토큰이 수신되면, 정품인증 확인부(113)는 전자 단말(140)로부터 수신된 상기 제1 주 식별번호와 상기 제1 식별 토큰을 기초로, 의약품 정보 데이터베이스(111)를 참조하여, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행한다.In this way, as the two-dimensional code printed on the wrapping paper of the first medicine is scanned and recognized by the electronic terminal 140 in response to the transmission request of the main identification number and identification token for the first medicine, the electronic terminal ( 140), when the first main identification number and the first identification token extracted from the two-dimensional code printed on the packaging of the first pharmaceutical product are received, the activation confirmation unit 113 receives the information received from the electronic terminal 140. Based on the first main identification number and the first identification token, it is checked whether the first medicine is a certified medicine by referring to the medicine information database 111 .

이때, 본 발명의 일실시예에 따르면, 정품인증 확인부(113)는 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하기 위한 구체적인 구성으로, 보조 식별번호 추출부(115), 연산 결과 확인부(116) 및 확인 처리부(117)를 포함할 수 있다.At this time, according to one embodiment of the present invention, the activation confirmation unit 113 is a specific configuration for confirming whether the first drug is a drug that has received activation, and the auxiliary identification number extraction unit 115 , an operation result confirmation unit 116 and a confirmation processing unit 117 may be included.

보조 식별번호 추출부(115)는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 전자 단말(140)에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 전자 단말(140)로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 상기 제1 주 식별번호와 상기 제1 식별 토큰이 수신되면, 의약품 정보 데이터베이스(111)로부터, 전자 단말(140)로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호를 추출한다.The auxiliary identification number extraction unit 115 scans the two-dimensional code printed on the packaging of the first medicine in the electronic terminal 140 in response to a request for transmission of the main identification number and identification token for the first medicine. As recognized, when the first main identification number and the first identification token extracted from the two-dimensional code printed on the packaging of the first medicine are received from the electronic terminal 140, from the medicine information database 111, An auxiliary identification number stored in correspondence with the same identification token as the first identification token received from the electronic terminal 140 is extracted.

연산 결과 확인부(116)는 보조 식별번호 추출부(115)에 의해 의약품 정보 데이터베이스(111)로부터, 전자 단말(140)로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호로, 제1 보조 식별번호가 추출되면, 전자 단말(140)로부터 수신된 상기 제1 주 식별번호와 의약품 정보 데이터베이스(111)로부터 추출된 상기 제1 보조 식별번호를 상기 토큰 생성 함수에 입력으로 인가하였을 때 산출되는 연산 결과가, 전자 단말(140)로부터 수신된 상기 제1 식별 토큰과 일치하는지 여부를 확인한다.Operation result confirmation unit 116 is stored in correspondence with the same identification token as the first identification token received from the electronic terminal 140 from the drug information database 111 by the auxiliary identification number extraction unit 115. As the identification number, when the first auxiliary identification number is extracted, the first main identification number received from the electronic terminal 140 and the first auxiliary identification number extracted from the drug information database 111 are input to the token generating function. It is checked whether the calculation result calculated when the application is applied matches the first identification token received from the electronic terminal 140 .

확인 처리부(117)는 연산 결과 확인부(116)에 의해 상기 연산 결과가 전자 단말(140)로부터 수신된 상기 제1 식별 토큰과 일치하는 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인한다.The confirmation processing unit 117 determines that the first medicine is a certified medicine when it is confirmed by the calculation result checking unit 116 that the calculation result matches the first identification token received from the electronic terminal 140. confirm that

이하에서는, 보조 식별번호 추출부(115), 연산 결과 확인부(116) 및 확인 처리부(117)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, operations of the auxiliary identification number extraction unit 115, the operation result confirmation unit 116, and the confirmation processing unit 117 will be described in detail, for example.

먼저, 전술한 예와 같이, '의약품 1'에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 전자 단말(140)이 '의약품 1'의 포장지에 인쇄된 2차원 코드로부터, '321'과 '식별 토큰 1'을 추출하여 의약품 정품인증 서버(110)로 전송함에 따라, 의약품 정품인증 서버(110)에, '321'과 '식별 토큰 1'이 수신되었다고 가정하자.First, as in the above example, in response to a request for transmission of the main identification number and identification token for 'drug 1', the electronic terminal 140 obtains '321' from the two-dimensional code printed on the packaging of 'drug 1'. Assume that '321' and 'identification token 1' are received by the drug activation server 110 as the extracted and transmitted to the drug activation server 110.

그러면, 보조 식별번호 추출부(115)는 상기 표 1과 같은 의약품 정보 데이터베이스(111)로부터, '식별 토큰 1'과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호인 '1233'을 추출할 수 있다.Then, the auxiliary identification number extraction unit 115 may extract '1233', which is an auxiliary identification number stored in correspondence with the same identification token as 'identification token 1', from the drug information database 111 as shown in Table 1 above. there is.

그러고 나서, 연산 결과 확인부(116)는 '321'과 '1233'을 상기 토큰 생성 함수에 입력으로 인가하였을 때 산출하는 연산 결과가, '식별 토큰 1'과 일치하는지 여부를 확인할 수 있다.Then, the calculation result checking unit 116 may check whether the calculation result calculated when '321' and '1233' are applied as inputs to the token generation function matches 'identification token 1'.

이때, 본 발명의 일실시예에 따르면, 연산 결과 확인부(116)는 상기 토큰 생성 함수에 '321'과 '1233'을 입력으로 인가함으로써, '321'을 구성하는 '3'개의 숫자들을 성분으로 갖는 행벡터인 '[3 2 1]'과, '123321'을 구성하는 '4'개의 숫자들을 성분으로 갖는 행벡터인 '[1 2 3 3]' 간의 크로네커 곱을 연산하여 '1 x 12' 크기의 연산 행렬을 '[3 2 1 6 4 2 9 6 3 9 6 3]'과 같이 생성하고, 상기 연산 행렬을 구성하는 '12'개의 성분들로 구성되는 데이터열을 '321642963963'과 같이 생성한 후, '321642963963'을 사전 설정된 해시 함수에 입력으로 인가하여 산출된 연산 결과가, '식별 토큰 1'과 일치하는지 여부를 확인할 수 있다.At this time, according to one embodiment of the present invention, the calculation result checking unit 116 applies '321' and '1233' as inputs to the token generation function, so that '3' numbers constituting '321' are used as components. By calculating the Kronecker product between '[3 2 1]', a row vector with , and '[1 2 3 3]', a row vector with '4' numbers constituting '123321' as components, the size is '1 x 12'. An operation matrix of '[3 2 1 6 4 2 9 6 3 9 6 3]' is generated, and a data string composed of '12' components constituting the operation matrix is generated as '321642963963' Afterwards, '321642963963' may be applied as an input to a preset hash function, and it may be checked whether the result of the calculation matches 'identification token 1'.

관련해서, 상기 연산 결과와 '식별 토큰 1'은 모두, 상기 토큰 생성 함수에 '321'과 '1233'이 입력으로 인가되어 산출된 출력 값들이므로, 연산 결과 확인부(116)는 상기 연산 결과가 '식별 토큰 1'과 일치하는 것으로 확인할 수 있다.In this regard, since both the operation result and 'identification token 1' are output values calculated by applying '321' and '1233' as inputs to the token generation function, the operation result check unit 116 determines that the operation result is This can be verified as matching 'identification token 1'.

그러면, 확인 처리부(117)는 '의약품 1'이 정품인증을 받은 의약품인 것으로 확인할 수 있다.Then, the confirmation processing unit 117 can confirm that 'drug 1' is a drug that has received activation.

이렇게, 정품인증 확인부(113)에 의해 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 정품인증 확인 메시지 전송부(114)는 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 전자 단말(140)로 전송한다.In this way, when it is confirmed by the activation confirmation unit 113 that the first drug is a drug that has undergone activation, the activation confirmation message transmission unit 114 indicates that the first drug is a drug that has undergone activation. An authentication confirmation message is generated and transmitted to the electronic terminal 140 .

이때, 본 발명의 일실시예에 따르면, 정품인증 확인 메시지 전송부(114)는 정품인증 확인부(113)에 의해 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 전자 단말(140)로 전송하되, 상기 정품인증 확인 메시지를 사전 구축된 음성 합성 모델에 입력으로 인가하여 음성 합성을 수행함으로써, 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 생성한 후, 전자 단말(140)로 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 추가 전송할 수 있다.At this time, according to one embodiment of the present invention, when the activation confirmation message transmission unit 114 confirms that the first drug is a drug that has been activated by the activation confirmation unit 113, the first drug is An activation confirmation message indicating that the drug has been activated has been activated and transmitted to the electronic terminal 140, and the activation confirmation message is applied as an input to a pre-built voice synthesis model to perform voice synthesis, After synthetic voice data for the confirmation message is generated, synthesized voice data for the activation confirmation message may be additionally transmitted to the electronic terminal 140 .

예컨대, 전술한 예와 같이, 정품인증 확인부(113)에 의해 '의약품 1'이 정품인증을 받은 의약품인 것으로 확인되었다고 하는 경우, 정품인증 확인 메시지 전송부(114)는 '의약품 1'이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 전자 단말(140)로 전송하되, 상기 정품인증 확인 메시지를 사전 구축된 음성 합성 모델에 입력으로 인가하여 음성 합성을 수행함으로써, 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 생성한 후, 전자 단말(140)로 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 추가 전송할 수 있다.For example, as in the above example, when it is confirmed that 'drug 1' is a certified drug by the activation confirmation unit 113, the activation confirmation message transmission unit 114 determines that 'drug 1' is a genuine product. An activation confirmation message indicating that it is a certified drug is generated and transmitted to the electronic terminal 140, and the activation confirmation message is applied as an input to a pre-built voice synthesis model to perform voice synthesis, thereby confirming the activation. After generating synthesized voice data for the message, synthesized voice data for the activation confirmation message may be additionally transmitted to the electronic terminal 140 .

이때, 본 발명의 일실시예에 따르면, 전자 단말(140)은 의약품 정품인증 확인 서버(110)로부터 상기 정품인증 확인 메시지와 상기 정품인증 확인 메시지에 대한 합성 음성 데이터가 수신되면, 상기 인증 확인 메시지를 화면 상에 텍스트로 출력함과 동시에, 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 기초로, 상기 정품인증 확인 메시지에 대한 합성 음성을 스피커로 출력할 수 있다. 이를 통해, 사용자(130)는 '의약품 1'이 정품인증을 받은 의약품인 것으로 확인할 수 있다.At this time, according to one embodiment of the present invention, when the electronic terminal 140 receives the product activation confirmation message and synthetic voice data for the product activation confirmation message from the drug activation confirmation server 110, the authentication confirmation message While outputting as text on the screen, a synthesized voice for the activation confirmation message may be output through a speaker based on synthesized voice data for the activation confirmation message. Through this, the user 130 can confirm that the 'drug 1' is a drug that has received activation.

또한, 본 발명의 일실시예에 따르면, 의약품 정품인증 확인 서버(110)는 사용기한 정보 데이터베이스(118), 잔여기간 확인부(119) 및 잔여기간 안내 메시지 전송부(120)를 더 포함할 수 있다.In addition, according to one embodiment of the present invention, the drug activation confirmation server 110 may further include an expiration date information database 118, a remaining period confirmation unit 119, and a remaining period information message transmission unit 120. there is.

사용기한 정보 데이터베이스(118)에는 상기 복수의 의약품들 각각에 대한 보조 식별번호와, 상기 복수의 의약품들 각각에 대한 사전 설정된 사용기한에 대한 정보가 서로 대응되어 저장되어 있다.In the expiry date information database 118, auxiliary identification numbers for each of the plurality of medicines and information on a predetermined expiration date for each of the plurality of medicines are stored in correspondence with each other.

예컨대, 전술한 예와 같이, 상기 복수의 의약품들을 '의약품 1, 의약품 2, 의약품 3'이라고 하는 경우, 사용기한 정보 데이터베이스(118)에는 하기의 표 2와 같이, '의약품 1, 의약품 2, 의약품 3' 각각에 대한 보조 식별번호와, '의약품 1, 의약품 2, 의약품 3' 각각에 대한 사전 설정된 사용기한에 대한 정보가 서로 대응되어 저장되어 있을 수 있다.For example, as in the above example, when the plurality of medicines are referred to as 'drug 1, medicine 2, and medicine 3', the expiration date information database 118 includes 'drug 1, medicine 2, and medicine as shown in Table 2 below. 3', and information on preset expiry dates for each of 'drug 1, medicine 2, and medicine 3' may be stored in correspondence with each other.

의약품medicine 보조 식별번호Secondary identification number 사용기한date of use 의약품 1medicine 1 123123 2021년 8월 10일August 10, 2021 의약품 2medicine 2 234234 2021년 8월 15일August 15, 2021 의약품 3medicine 3 345345 2021년 8월 17일August 17, 2021

잔여기간 확인부(119)는 정품인증 확인 메시지 전송부(114)에 의해 상기 정품인증 확인 메시지가 전자 단말(140)로 전송되면, 사용기한 정보 데이터베이스(118)를 참조하여, 상기 제1 의약품에 대한 제1 사용기한을 확인한 후, 상기 정품인증 확인 메시지가 전자 단말(140)로 전송된 현재 시점으로부터 상기 제1 사용기한까지의 잔여기간을 확인한다.When the activation confirmation message is transmitted to the electronic terminal 140 by the activation confirmation message transmission unit 114, the remaining period confirmation unit 119 refers to the expiration date information database 118 to determine the validity of the first medicine. After checking the first expiration date for the product, the remaining time from the current point in time when the activation confirmation message is transmitted to the electronic terminal 140 to the first expiration date is checked.

잔여기간 안내 메시지 전송부(120)는 잔여기간 확인부(119)에 의해 상기 잔여기간이 확인되면, 상기 잔여기간에 대한 정보를 안내하는 잔여기간 안내 메시지를 생성하여 전자 단말(140)로 전송한다.When the remaining period is confirmed by the remaining period confirmation unit 119, the remaining period guide message transmission unit 120 generates a remaining period guide message for guiding information on the remaining period and transmits it to the electronic terminal 140. .

이하에서는, 잔여기간 확인부(119) 및 잔여기간 안내 메시지 전송부(120)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, operations of the remaining period checking unit 119 and the remaining period guidance message transmission unit 120 will be described in detail, for example.

먼저, '2021년 8월 1일'에, 정품인증 확인부(113)에 의해 '의약품 1'이 정품인증을 받은 의약품인 것으로 확인됨에 따라, 정품인증 확인 메시지 전송부(114)에 의해 상기 정품인증 확인 메시지가 전자 단말(140)로 전송되었다고 가정하자.First, on 'August 1, 2021', as it is confirmed by the activation confirmation unit 113 that 'drug 1' is a drug that has received activation, the activation confirmation message transmission unit 114 Assume that the authentication confirmation message is transmitted to the electronic terminal 140 .

그러면, 잔여기간 확인부(119)는 상기 표 2와 같은 사용기한 정보 데이터베이스(118)를 참조하여, '의약품 1'에 대한 제1 사용기한을 '2021년 8월 10일'과 같이 확인할 수 있다.Then, the remaining period confirmation unit 119 may refer to the expiration date information database 118 as shown in Table 2 above, and check the first expiration date for 'drug 1' as 'August 10, 2021'. .

그러고 나서, 잔여기간 확인부(119)는 상기 정품인증 확인 메시지가 전자 단말(140)로 전송된 현재 시점인 '2021년 8월 1일'로부터 상기 제1 사용기한인 '2021년 8월 10일'까지의 잔여기간을 '9일'과 같이 확인할 수 있다.Then, the remaining period confirmation unit 119 determines the first expiration date of 'August 10, 2021' from 'August 1, 2021', which is the current point in time when the activation confirmation message is transmitted to the electronic terminal 140. You can check the remaining period until '9 days'.

그러면, 잔여기간 안내 메시지 전송부(120)는 상기 잔여기간인 '9일'에 대한 정보를 안내하는 잔여기간 안내 메시지를 생성하여 전자 단말(140)로 전송할 수 있다.Then, the remaining period guide message transmission unit 120 may generate a remaining period guide message for guiding information on the remaining period of '9 days' and transmit it to the electronic terminal 140 .

이를 통해, 사용자(130)는 상기 현재 시점인 '2021년 8월 1일'로부터 '의약품 1'에 대한 제1 사용기한인 '2021년 8월 10일'까지의 상기 잔여기간이 '9일'임을 확인하여, 상기 제1 사용기한 내에 '의약품 1'을 사용할 수 있다.Through this, the user 130 knows that the remaining period from 'August 1, 2021', which is the current point of time, to 'August 10, 2021', which is the first expiration date for 'drug 1', is '9 days'. After confirmation, 'drug 1' can be used within the first expiration date.

또한, 본 발명의 일실시예에 따르면, 의약품 정품인증 확인 서버(110)는 확인 이력 정보 생성부(121) 및 등록 요청부(122)를 더 포함할 수 있다.In addition, according to one embodiment of the present invention, the drug activation confirmation server 110 may further include a confirmation history information generation unit 121 and a registration request unit 122.

확인 이력 정보 생성부(121)는 정품인증 확인 메시지 전송부(114)에 의해 상기 정품인증 확인 메시지가 전자 단말(140)로 전송되면, 전자 단말(140)로부터 전자 단말(140)의 현재 위치 정보를 수신하고, 상기 정품인증 확인 메시지가 전자 단말(140)로 전송된 현재 시점에 대한 시간 정보를 생성한 후, 상기 현재 위치 정보, 상기 시간 정보, 상기 제1 주 식별번호 및 상기 제1 보조 식별번호로 구성된 확인 이력 정보를 생성한다.When the activation confirmation message is transmitted to the electronic terminal 140 by the activation confirmation message transmission unit 114, the confirmation history information generation unit 121 provides current location information of the electronic terminal 140 from the electronic terminal 140. and generating time information for a current point in time at which the activation confirmation message is transmitted to the electronic terminal 140, the current location information, the time information, the first primary identification number, and the first secondary identification number. Creates verification history information consisting of numbers.

등록 요청부(122)는 확인 이력 정보 생성부(121)에 의해 상기 확인 이력 정보가 생성되면, 상기 확인 이력 정보가 포함된 트랜잭션을 생성한 후, 블록체인 네트워크(100)를 구성하고 있는 복수의 노드 장치들(101, 102, 103, 104, 105, 106) 중 어느 하나인 제1 노드 장치를 랜덤하게 선택하여, 상기 제1 노드 장치로, 상기 트랜잭션을 전송하면서, 상기 트랜잭션의 블록체인 네트워크(100)로의 등록 요청을 전송한다.When the confirmation history information is generated by the confirmation history information generator 121, the registration request unit 122 generates a transaction including the confirmation history information, and then generates a transaction including the confirmation history information. A block chain network of the transaction ( 100) transmits a registration request.

이하에서는, 확인 이력 정보 생성부(121) 및 등록 요청부(122)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, operations of the confirmation history information generator 121 and the registration request unit 122 will be described in detail, for example.

먼저, 전술한 예와 같이, 정품인증 확인부(113)에 의해 '의약품 1'이 정품인증을 받은 의약품인 것으로 확인됨에 따라, 정품인증 확인 메시지 전송부(114)에 의해 '의약품 1'이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지가 전자 단말(140)로 전송되었다고 가정하자.First, as in the above example, as it is confirmed by the activation confirmation unit 113 that 'drug 1' is a certified drug, the activation confirmation message transmission unit 114 determines that 'drug 1' is genuine. Assume that the activation confirmation message indicating that the product has been certified is transmitted to the electronic terminal 140 .

그러면, 확인 이력 정보 생성부(121)는 전자 단말(140)로부터 전자 단말(140)의 현재 위치 정보인 '위치 정보 1'을 수신할 수 있고, 상기 정품인증 확인 메시지가 전자 단말(140)로 전송된 현재 시점에 대한 시간 정보를 '시간 정보 1'과 같이 생성할 수 있다.Then, the confirmation history information generator 121 may receive 'position information 1', which is the current location information of the electronic terminal 140, from the electronic terminal 140, and the activation confirmation message is transmitted to the electronic terminal 140. Time information about the transmitted current point of time may be generated like 'time information 1'.

그러고 나서, 확인 이력 정보 생성부(121)는 '위치 정보 1', '시간 정보 1', '의약품 1'에 대한 주 식별번호인 '321' 및 '의약품 1'에 대한 보조 식별번호인 '1233'으로 구성된 확인 이력 정보를 생성할 수 있다. Then, the confirmation history information generating unit 121 sets '321', which is the main identification number for 'location information 1', 'time information 1', and 'drug 1', and '1233', which is a secondary identification number for 'drug 1'. You can create confirmation history information consisting of '.

그러면, 등록 요청부(122)는 상기 확인 이력 정보가 포함된 트랜잭션을 생성한 후, 블록체인 네트워크(100)를 구성하고 있는 복수의 노드 장치들(101, 102, 103, 104, 105, 106) 중 어느 하나인 제1 노드 장치를 랜덤하게 선택할 수 있다.Then, after the registration request unit 122 generates a transaction including the confirmation history information, the plurality of node devices 101, 102, 103, 104, 105, 106 constituting the blockchain network 100 Any one of the first node devices may be randomly selected.

이때, 상기 제1 노드 장치를 노드 장치(101)라고 하는 경우, 등록 요청부(122)는 노드 장치(101)로, 상기 트랜잭션을 전송하면서, 상기 트랜잭션의 블록체인 네트워크(100)로의 등록 요청을 전송할 수 있다.At this time, when the first node device is referred to as the node device 101, the registration request unit 122 transmits the transaction to the node device 101 and requests registration of the transaction to the blockchain network 100. can transmit

이때, 상기 제1 노드 장치는 의약품 정품인증 확인 서버(110)로부터, 상기 트랜잭션과 상기 등록 요청이 수신되면, 상기 제1 노드 장치의 메모리 상에 저장되어 있는 블록체인 데이터에 체인으로 연결된 이전 블록을 기초로, 상기 트랜잭션이 포함된 제1 블록을 생성하고, 상기 제1 블록을 상기 블록체인 데이터에 체인으로 연결함으로써, 상기 제1 블록에 대한 저장을 완료한 후, 블록체인 네트워크(100)를 통해 상기 제1 블록을, 복수의 노드 장치들(101, 102, 103, 104, 105, 106) 중 상기 제1 노드 장치를 제외한 나머지 노드 장치들로 전파한다.At this time, when the transaction and the registration request are received from the drug activation confirmation server 110, the first node device converts the previous block chained to the blockchain data stored on the memory of the first node device. Based on this, a first block including the transaction is created, and the first block is connected to the blockchain data in a chain, so that the storage of the first block is completed, and then through the blockchain network 100. The first block is propagated to the remaining node devices excluding the first node device among the plurality of node devices 101 , 102 , 103 , 104 , 105 , and 106 .

예컨대, 전술한 예와 같이, 상기 제1 노드 장치를 노드 장치(101)라고 하고, 등록 요청부(122)가 노드 장치(101)로 상기 트랜잭션을 전송하면서, 상기 트랜잭션의 블록체인 네트워크(100)로의 등록 요청을 전송함에 따라, 노드 장치(101)에, 상기 트랜잭션과 상기 등록 요청이 수신되었다고 하는 경우, 노드 장치(101)는 노드 장치(101)의 메모리 상에 저장되어 있는 블록체인 데이터에 체인으로 연결된 이전 블록을 기초로, 상기 트랜잭션이 포함된 제1 블록을 생성하고, 상기 제1 블록을 상기 블록체인 데이터에 체인으로 연결함으로써, 상기 제1 블록에 대한 저장을 완료한 후, 블록체인 네트워크(100)를 통해 상기 제1 블록을, 복수의 노드 장치들(101, 102, 103, 104, 105, 106) 중 노드 장치(101)를 제외한 나머지 노드 장치들(102, 103, 104, 105, 106)로 전파할 수 있다.For example, as in the above example, while the first node device is called the node device 101 and the registration request unit 122 transmits the transaction to the node device 101, the blockchain network 100 of the transaction As the registration request is sent to the node device 101, if the transaction and the registration request are received, the node device 101 adds a chain to the blockchain data stored on the memory of the node device 101. Based on the previous block connected to , a first block containing the transaction is created, and the first block is connected to the blockchain data in a chain to complete the storage of the first block, and then the blockchain network The first block through (100), the remaining node devices (102, 103, 104, 105, 106) can propagate.

구체적으로, 노드 장치(101)는 의약품 정품인증 확인 서버(110)로부터 상기 트랜잭션과 상기 등록 요청이 수신되면, 상기 블록체인 데이터에 체인으로 연결되어 있는 이전 블록의 블록 헤더를 참조하여 상기 트랜잭션이 포함된 새로운 블록인 상기 제1 블록을 생성할 수 있다. 그러고 나서, 노드 장치(101)는 상기 제1 블록을 상기 블록체인 데이터에 체인으로 연결함으로써, 상기 제1 블록에 대한 저장을 완료한 후 블록체인 네트워크(100)를 통해 상기 제1 블록을 나머지 노드 장치들(102, 103, 104, 105, 106)로 전파할 수 있다.Specifically, when the node device 101 receives the transaction and the registration request from the drug activation confirmation server 110, the transaction is included by referring to the block header of the previous block connected in a chain to the blockchain data. The first block, which is a new block, may be created. Then, the node device 101 connects the first block to the blockchain data in a chain, thereby completing the storage of the first block and then transferring the first block to the remaining nodes through the blockchain network 100. It can propagate to devices 102, 103, 104, 105, 106.

이렇게, 본 발명에 따른 의약품 정품인증 확인 서버(110)는 상기 정품인증 확인 메시지가 전자 단말(140)로 전송 완료되면, 상기 확인 이력 정보를 생성하여 블록체인 네트워크(100)에 등록해 둠으로써, 의약품을 판매하는 판매자가 이러한 확인 이력 정보를 확인하여, 의약품이 판매된 시간에 대한 정보와, 의약품을 구매한 사용자(130)의 위치에 대한 정보를 모니터링할 수 있도록 지원할 수 있다.In this way, the drug activation confirmation server 110 according to the present invention, when the activation confirmation message is transmitted to the electronic terminal 140, generates the confirmation history information and registers it in the blockchain network 100, It is possible for a seller who sells medicines to check the confirmation history information and monitor information about the time the medicines were sold and information about the location of the user 130 who purchased the medicines.

도 3은 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법을 도시한 순서도이다.FIG. 3 is a flow chart illustrating an operation method of a drug activation confirmation server that checks whether a drug is a drug that has been activated based on a two-dimensional code according to an embodiment of the present invention.

단계(S310)에서는 정품인증을 받은 의약품인 것으로 사전 지정된 복수의 의약품들(상기 복수의 의약품들 각각에는, 각 의약품을 식별하기 위한 n(n은 2 이상의 자연수임) 자릿수의 주 식별번호와 k(k는 2 이상의 자연수임) 자릿수의 보조 식별번호가 사전 할당되어 있음과 동시에, 각 의약품에 대한 주 식별번호와 보조 식별번호가 사전 설정된 토큰 생성 함수에 입력으로 인가되어 산출된 출력 값인 식별 토큰이 사전 할당되어 있고, 상기 복수의 의약품들 각각의 포장지에는, 각 의약품에 대한 주 식별번호 및 식별 토큰에 대한 정보가 삽입되어 있는 2차원 코드가 사전 인쇄되어 있음) 각각에 대한 보조 식별번호와 상기 복수의 의약품들 각각에 대한 식별 토큰이 서로 대응되어 저장되어 있는 의약품 정보 데이터베이스를 유지한다.In step S310, a plurality of medicines pre-designated as genuine medicines (in each of the plurality of medicines, a main identification number of n (n is a natural number of 2 or more) digits for identifying each medicine and k ( k is a natural number of 2 or more) A sub-identification number of digits is pre-allocated, and at the same time, the main identification number and auxiliary identification number for each drug are applied as inputs to a pre-set token generation function, and the identification token, which is the output value, is pre-allocated. assigned, and a two-dimensional code in which information on a main identification number and an identification token for each medicine is inserted is pre-printed on the packaging of each of the plurality of medicines) and an auxiliary identification number for each of the plurality of medicines. A drug information database in which identification tokens for each of the drugs are stored in correspondence with each other is maintained.

단계(S320)에서는 상기 복수의 의약품들 중 어느 하나인 제1 의약품을 구매한 사용자의 전자 단말로부터, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인 요청이 수신되면, 상기 전자 단말로, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드에 삽입되어 있는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송을 요청한다.In step S320, when a request for confirmation as to whether the first medicine is a certified medicine is received from the electronic terminal of the user who has purchased a first medicine, which is one of the plurality of medicines, the electronic terminal , Request transmission of the main identification number and identification token for the first medicine inserted in the two-dimensional code printed on the packaging of the first medicine.

단계(S330)에서는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 제1 주 식별번호와 제1 식별 토큰이 수신되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 제1 식별 토큰을 기초로, 상기 의약품 정보 데이터베이스를 참조하여, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행한다.In step S330, the electronic terminal scans and recognizes the two-dimensional code printed on the wrapping paper of the first medicine in response to a request for transmission of the main identification number and identification token for the first medicine, When a first main identification number and a first identification token extracted from a two-dimensional code printed on a wrapping paper of the first medicine are received from the terminal, the first main identification number and the first identification token received from the electronic terminal are received. Based on the above, with reference to the drug information database, it is checked whether the first drug is a drug that has received activation.

단계(S340)에서는 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송한다.In step S340, if it is confirmed that the first drug is a drug that has received activation, a activation confirmation message indicating that the first drug is a drug that has received activation is generated and transmitted to the electronic terminal.

이때, 본 발명의 일실시예에 따르면, 상기 토큰 생성 함수는 상기 복수의 의약품들 중 어느 하나의 의약품에 사전 할당된 n 자릿수의 주 식별번호와 k 자릿수의 보조 식별번호가 입력으로 인가되면, 입력으로 인가된 n 자릿수의 주 식별번호를 구성하는 n개의 숫자들을 성분으로 갖는 행벡터와, 입력으로 인가된 k 자릿수의 보조 식별번호를 구성하는 k개의 숫자들을 성분으로 갖는 행벡터 간의 크로네커 곱을 연산하여 1 x nk 크기의 연산 행렬을 생성하고, 상기 연산 행렬을 구성하는 nk개의 성분들로 구성되는 데이터열을 생성한 후, 상기 데이터열을 사전 설정된 해시 함수에 입력으로 인가하여 산출된 해시 값을, 상기 어느 하나의 의약품에 대한 식별 토큰으로 산출하는 함수일 수 있다.At this time, according to one embodiment of the present invention, the token generation function is applied when an n-digit main identification number and a k-digit sub-identification number pre-assigned to any one medicine among the plurality of medicines are applied as inputs. By calculating the Kronecker product between a row vector having n numbers constituting the main identification number of n digits applied as components and a row vector having k numbers constituting the sub identification number of k digits applied as input as components, 1 After generating an operation matrix of size x nk, generating a data string composed of nk elements constituting the operation matrix, and then applying the data string as an input to a preset hash function, the calculated hash value, It may be a function that calculates an identification token for any one medicine.

또한, 본 발명의 일실시예에 따르면, 단계(S330)에서는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 상기 제1 주 식별번호와 상기 제1 식별 토큰이 수신되면, 상기 의약품 정보 데이터베이스로부터, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호를 추출하는 단계, 상기 의약품 정보 데이터베이스로부터, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호로, 제1 보조 식별번호가 추출되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 의약품 정보 데이터베이스로부터 추출된 상기 제1 보조 식별번호를 상기 토큰 생성 함수에 입력으로 인가하였을 때 산출되는 연산 결과가, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 일치하는지 여부를 확인하는 단계 및 상기 연산 결과가 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 일치하는 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인하는 단계를 포함할 수 있다.In addition, according to one embodiment of the present invention, in step S330, in response to the transmission request of the main identification number and identification token for the first medicine, in the electronic terminal, the second printed on the wrapping paper of the first medicine. As the dimensional code is scanned and recognized, when the first main identification number and the first identification token extracted from the two-dimensional code printed on the wrapping paper of the first medicine are received from the electronic terminal, from the medicine information database. , extracting an auxiliary identification number stored in correspondence with the same identification token as the first identification token received from the electronic terminal, identification identical to the first identification token received from the electronic terminal, from the drug information database As an auxiliary identification number stored in correspondence with the token, when the first auxiliary identification number is extracted, the first main identification number received from the electronic terminal and the first auxiliary identification number extracted from the drug information database are converted into the token. Checking whether an operation result calculated when applied as an input to a generating function matches the first identification token received from the electronic terminal, and the operation result matches the first identification token received from the electronic terminal If it is determined that they match, a step of confirming that the first drug is a drug that has undergone activation may be included.

또한, 본 발명의 일실시예에 따르면, 단계(S340)에서는 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하되, 상기 정품인증 확인 메시지를 사전 구축된 음성 합성 모델에 입력으로 인가하여 음성 합성을 수행함으로써, 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 생성한 후, 상기 전자 단말로 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 추가 전송할 수 있다.In addition, according to one embodiment of the present invention, in step S340, if it is confirmed that the first drug is a drug that has received activation, an activation confirmation message indicating that the first drug is a drug that has received activation is generated. and transmits it to the electronic terminal, and applies the activation confirmation message as an input to a pre-built voice synthesis model to perform voice synthesis, thereby generating synthesized voice data for the activation confirmation message, and then to the electronic terminal Synthetic voice data for the activation confirmation message may be additionally transmitted.

또한, 본 발명의 일실시예에 따르면, 상기 의약품 정품인증 확인 서버의 동작 방법은 상기 복수의 의약품들 각각에 대한 보조 식별번호와, 상기 복수의 의약품들 각각에 대한 사전 설정된 사용기한에 대한 정보가 서로 대응되어 저장되어 있는 사용기한 정보 데이터베이스를 유지하는 단계, 상기 정품인증 확인 메시지가 상기 전자 단말로 전송되면, 상기 사용기한 정보 데이터베이스를 참조하여, 상기 제1 의약품에 대한 제1 사용기한을 확인한 후, 상기 정품인증 확인 메시지가 상기 전자 단말로 전송된 현재 시점으로부터 상기 제1 사용기한까지의 잔여기간을 확인하는 단계 및 상기 잔여기간이 확인되면, 상기 잔여기간에 대한 정보를 안내하는 잔여기간 안내 메시지를 생성하여 상기 전자 단말로 전송하는 단계를 더 포함할 수 있다.In addition, according to one embodiment of the present invention, the operating method of the drug activation confirmation server includes auxiliary identification numbers for each of the plurality of medicines and information on a preset expiration date for each of the plurality of medicines. Maintaining a database of expiration date information stored in correspondence with each other, when the activation confirmation message is transmitted to the electronic terminal, referring to the expiration date information database, confirming a first expiration date for the first drug, Checking the remaining period from the current point in time when the activation confirmation message is transmitted to the electronic terminal to the first expiration date, and if the remaining period is confirmed, a remaining period information message for guiding information on the remaining period It may further include generating and transmitting to the electronic terminal.

또한, 본 발명의 일실시예에 따르면, 상기 의약품 정품인증 확인 서버의 동작 방법은 상기 정품인증 확인 메시지가 상기 전자 단말로 전송되면, 상기 전자 단말로부터 상기 전자 단말의 현재 위치 정보를 수신하고, 상기 정품인증 확인 메시지가 상기 전자 단말로 전송된 현재 시점에 대한 시간 정보를 생성한 후, 상기 현재 위치 정보, 상기 시간 정보, 상기 제1 주 식별번호 및 상기 제1 보조 식별번호로 구성된 확인 이력 정보를 생성하는 단계 및 상기 확인 이력 정보가 생성되면, 상기 확인 이력 정보가 포함된 트랜잭션을 생성한 후, 블록체인 네트워크를 구성하고 있는 복수의 노드 장치들 중 어느 하나인 제1 노드 장치를 랜덤하게 선택하여, 상기 제1 노드 장치로, 상기 트랜잭션을 전송하면서, 상기 트랜잭션의 상기 블록체인 네트워크로의 등록 요청을 전송하는 단계를 더 포함할 수 있고, 이때, 상기 제1 노드 장치는 상기 의약품 정품인증 확인 서버로부터 상기 트랜잭션과 상기 등록 요청이 수신되면, 상기 제1 노드 장치의 메모리 상에 저장되어 있는 블록체인 데이터에 체인으로 연결된 이전 블록을 기초로, 상기 트랜잭션이 포함된 제1 블록을 생성하고, 상기 제1 블록을 상기 블록체인 데이터에 체인으로 연결함으로써, 상기 제1 블록에 대한 저장을 완료한 후, 상기 블록체인 네트워크를 통해 상기 제1 블록을, 상기 복수의 노드 장치들 중 상기 제1 노드 장치를 제외한 나머지 노드 장치들로 전파할 수 있다.In addition, according to one embodiment of the present invention, the operation method of the drug activation confirmation server receives the current location information of the electronic terminal from the electronic terminal when the activation confirmation message is transmitted to the electronic terminal, the After generating the time information for the current point in time when the activation confirmation message is transmitted to the electronic terminal, the confirmation history information composed of the current location information, the time information, the first primary identification number and the first auxiliary identification number Generating step and when the confirmation history information is generated, after generating a transaction including the confirmation history information, randomly selects a first node device that is any one of a plurality of node devices constituting the blockchain network , Sending a registration request to the blockchain network of the transaction while transmitting the transaction to the first node device, wherein the first node device is the medicine activation confirmation server. When the transaction and the registration request are received from, based on the previous block chained to the blockchain data stored on the memory of the first node device, a first block including the transaction is generated, and the first block is generated. After completing the storage of the first block by linking 1 block to the blockchain data in a chain, the first block, the first node device among the plurality of node devices, through the blockchain network. It can propagate to the rest of the node devices except for it.

이상, 도 3을 참조하여 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법은 도 1 내지 도 2를 이용하여 설명한 의약품 정품인증 확인 서버(110)의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.In the above, with reference to FIG. 3 , the operation method of the drug activation confirmation server for confirming whether or not the drug is a drug that has been activated based on a two-dimensional code according to an embodiment of the present invention has been described. Here, the operating method of the drug activation confirmation server for confirming whether or not the drug is an approved drug based on a two-dimensional code according to an embodiment of the present invention is a drug described with reference to FIGS. 1 and 2 . Since it may correspond to the configuration of the operation of the activation confirmation server 110, a detailed description thereof will be omitted.

본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.According to an embodiment of the present invention, a method of operating a drug activation confirmation server that checks whether a drug is a certified drug based on a two-dimensional code includes a storage medium for execution through combination with a computer. It can be implemented as a stored computer program.

또한, 본 발명의 일실시예에 따른 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다.In addition, the operation method of a drug activation confirmation server that performs confirmation on whether a drug is a drug that has been activated based on a two-dimensional code according to an embodiment of the present invention is a computer for executing through a combination with a computer. It may be implemented in the form of program instructions and recorded on a computer readable medium. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the medium may be those specially designed and configured for the present invention or those known and usable to those skilled in computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. - includes hardware devices specially configured to store and execute program instructions, such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, as well as machine language codes such as those produced by a compiler.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.As described above, the present invention has been described by specific details such as specific components and limited embodiments and drawings, but these are provided to help a more general understanding of the present invention, and the present invention is not limited to the above embodiments. , Those skilled in the art in the field to which the present invention belongs can make various modifications and variations from these descriptions.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Therefore, the spirit of the present invention should not be limited to the described embodiments, and it will be said that not only the claims to be described later, but also all modifications equivalent or equivalent to these claims belong to the scope of the present invention. .

110: 2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버
111: 의약품 정보 데이터베이스 112: 전송 요청부
113: 정품인증 확인부 114: 정품인증 확인 메시지 전송부
115: 보조 식별번호 추출부 116: 연산 결과 확인부
117: 확인 처리부 118: 사용기한 정보 데이터베이스
119: 잔여기간 확인부 120: 잔여기간 안내 메시지 전송부
121: 확인 이력 정보 생성부 122: 등록 요청부
100: 블록체인 네트워크
101, 102, 103, 104, 105, 106: 복수의 노드 장치들
130: 사용자
140: 전자 단말
110: Drug activation confirmation server that checks whether the drug is a drug that has been activated based on the two-dimensional code
111: drug information database 112: transmission request unit
113: activation confirmation unit 114: activation confirmation message transmission unit
115: auxiliary identification number extraction unit 116: calculation result confirmation unit
117: confirmation processing unit 118: expiration date information database
119: remaining period confirmation unit 120: remaining period information message transmission unit
121: confirmation history information generation unit 122: registration request unit
100: blockchain network
101, 102, 103, 104, 105, 106: multiple node devices
130: user
140: electronic terminal

Claims (14)

2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버에 있어서,
정품인증을 받은 의약품인 것으로 사전 지정된 복수의 의약품들 - 상기 복수의 의약품들 각각에는, 각 의약품을 식별하기 위한 n(n은 2 이상의 자연수임) 자릿수의 주 식별번호와 k(k는 2 이상의 자연수임) 자릿수의 보조 식별번호가 사전 할당되어 있음과 동시에, 각 의약품에 대한 주 식별번호와 보조 식별번호가 사전 설정된 토큰 생성 함수에 입력으로 인가되어 산출된 출력 값인 식별 토큰이 사전 할당되어 있고, 상기 복수의 의약품들 각각의 포장지에는, 각 의약품에 대한 주 식별번호 및 식별 토큰에 대한 정보가 삽입되어 있는 2차원 코드가 사전 인쇄되어 있음 - 각각에 대한 보조 식별번호와 상기 복수의 의약품들 각각에 대한 식별 토큰이 서로 대응되어 저장되어 있는 의약품 정보 데이터베이스;
상기 복수의 의약품들 중 어느 하나인 제1 의약품을 구매한 사용자의 전자 단말로부터, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인 요청이 수신되면, 상기 전자 단말로, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드에 삽입되어 있는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송을 요청하는 전송 요청부;
상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 제1 주 식별번호와 제1 식별 토큰이 수신되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 제1 식별 토큰을 기초로, 상기 의약품 정보 데이터베이스를 참조하여, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 정품인증 확인부; 및
상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하는 정품인증 확인 메시지 전송부
를 포함하고,
상기 토큰 생성 함수는
상기 복수의 의약품들 중 어느 하나의 의약품에 사전 할당된 n 자릿수의 주 식별번호와 k 자릿수의 보조 식별번호가 입력으로 인가되면, 입력으로 인가된 n 자릿수의 주 식별번호를 구성하는 n개의 숫자들을 성분으로 갖는 행벡터와, 입력으로 인가된 k 자릿수의 보조 식별번호를 구성하는 k개의 숫자들을 성분으로 갖는 행벡터 간의 크로네커 곱(Kronecker Product)을 연산하여 1 x nk 크기의 연산 행렬을 생성하고, 상기 연산 행렬을 구성하는 nk개의 성분들로 구성되는 데이터열을 생성한 후, 상기 데이터열을 사전 설정된 해시 함수에 입력으로 인가하여 산출된 해시 값을, 상기 어느 하나의 의약품에 대한 식별 토큰으로 산출하는 함수인 것을 특징으로 하는 의약품 정품인증 확인 서버.
In a drug activation confirmation server that performs confirmation on whether a drug is a drug that has been activated based on a two-dimensional code,
A plurality of medicines pre-designated as being certified medicines - In each of the plurality of medicines, a main identification number of n (n is a natural number of 2 or more) digits to identify each medicine and k (k is a natural number of 2 or more) At the same time, an auxiliary identification number of digits is pre-allocated, and an identification token, which is an output value calculated by applying the main identification number and auxiliary identification number for each drug as inputs to a preset token generation function, is pre-allocated, On the packaging of each of the plurality of medicines, a two-dimensional code in which information on the main identification number and identification token for each medicine is inserted is pre-printed - a secondary identification number for each medicine and information on each of the plurality of medicines. a drug information database in which identification tokens are stored corresponding to each other;
When a request for confirmation as to whether the first medicine is a certified medicine is received from the electronic terminal of the user who has purchased the first medicine, which is one of the plurality of medicines, to the electronic terminal, the first medicine a transmission requesting unit for requesting transmission of the main identification number and identification token for the first drug inserted in the two-dimensional code printed on the wrapping paper of the medicine;
In response to a request for transmission of the main identification number and identification token for the first medicine, as the two-dimensional code printed on the wrapping paper of the first medicine is scanned and recognized in the electronic terminal, from the electronic terminal, the first medicine When the first main identification number and the first identification token extracted from the two-dimensional code printed on the packaging of one medicine are received, based on the first main identification number and the first identification token received from the electronic terminal, a genuine authentication check unit that checks whether the first drug is a certified drug by referring to a drug information database; and
If it is confirmed that the first drug is a drug that has received activation, a activation confirmation message transmission unit for generating a activation confirmation message indicating that the first drug is a drug that has undergone activation and transmitting the activation confirmation message to the electronic terminal.
including,
The token generation function is
When an n-digit main identification number and a k-digit auxiliary identification number pre-assigned to any one of the plurality of medicines are applied as inputs, n numbers constituting the n-digit main identification number applied as inputs An operation matrix having a size of 1 x nk is generated by calculating a Kronecker product between a row vector having as components and a row vector having k numbers constituting the auxiliary identification number of k digits applied as input as components, After generating a data string composed of nk elements constituting the operation matrix, applying the data string as an input to a preset hash function to calculate the calculated hash value as an identification token for any one of the medicines Drug activation confirmation server, characterized in that the function.
삭제delete 제1항에 있어서,
상기 정품인증 확인부는
상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 상기 제1 주 식별번호와 상기 제1 식별 토큰이 수신되면, 상기 의약품 정보 데이터베이스로부터, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호를 추출하는 보조 식별번호 추출부;
상기 의약품 정보 데이터베이스로부터, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호로, 제1 보조 식별번호가 추출되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 의약품 정보 데이터베이스로부터 추출된 상기 제1 보조 식별번호를 상기 토큰 생성 함수에 입력으로 인가하였을 때 산출되는 연산 결과가, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 일치하는지 여부를 확인하는 연산 결과 확인부; 및
상기 연산 결과가 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 일치하는 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인하는 확인 처리부
를 포함하는 의약품 정품인증 확인 서버.
According to claim 1,
The authenticity verification unit
In response to a request for transmission of the main identification number and identification token for the first medicine, as the two-dimensional code printed on the wrapping paper of the first medicine is scanned and recognized in the electronic terminal, from the electronic terminal, the first medicine When the first main identification number and the first identification token extracted from the two-dimensional code printed on the packaging of one medicine are received, from the medicine information database, the same identification token as the first identification token received from the electronic terminal Secondary identification number extraction unit for extracting the auxiliary identification number stored in correspondence to;
When a first auxiliary identification number is extracted from the drug information database as an auxiliary identification number stored in correspondence with the same identification token as the first identification token received from the electronic terminal, the first auxiliary identification number received from the electronic terminal is extracted. Whether an operation result calculated when the main identification number and the first auxiliary identification number extracted from the drug information database are applied as inputs to the token generation function matches the first identification token received from the electronic terminal an operation result confirmation unit to check; and
If it is confirmed that the calculation result matches the first identification token received from the electronic terminal, a confirmation processing unit for confirming that the first drug is a drug that has undergone product activation.
A drug activation confirmation server comprising a.
제1항에 있어서,
상기 정품인증 확인 메시지 전송부는
상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하되, 상기 정품인증 확인 메시지를 사전 구축된 음성 합성 모델에 입력으로 인가하여 음성 합성을 수행함으로써, 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 생성한 후, 상기 전자 단말로 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 추가 전송하는 것을 특징으로 하는 의약품 정품인증 확인 서버.
According to claim 1,
The genuine authentication confirmation message transmission unit
If it is confirmed that the first drug is a drug that has received activation, a activation confirmation message indicating that the first drug is a drug that has undergone activation is generated and transmitted to the electronic terminal, and the activation confirmation message is pre-established. After generating synthesized voice data for the activation confirmation message by applying the synthesized voice model as an input and performing voice synthesis, synthesized voice data for the activation confirmation message is additionally transmitted to the electronic terminal. Drug activation confirmation server.
제1항에 있어서,
상기 복수의 의약품들 각각에 대한 보조 식별번호와, 상기 복수의 의약품들 각각에 대한 사전 설정된 사용기한에 대한 정보가 서로 대응되어 저장되어 있는 사용기한 정보 데이터베이스;
상기 정품인증 확인 메시지가 상기 전자 단말로 전송되면, 상기 사용기한 정보 데이터베이스를 참조하여, 상기 제1 의약품에 대한 제1 사용기한을 확인한 후, 상기 정품인증 확인 메시지가 상기 전자 단말로 전송된 현재 시점으로부터 상기 제1 사용기한까지의 잔여기간을 확인하는 잔여기간 확인부; 및
상기 잔여기간이 확인되면, 상기 잔여기간에 대한 정보를 안내하는 잔여기간 안내 메시지를 생성하여 상기 전자 단말로 전송하는 잔여기간 안내 메시지 전송부
를 더 포함하는 의약품 정품인증 확인 서버.
According to claim 1,
an expiration date information database in which supplementary identification numbers for each of the plurality of medicines and information on a preset expiration date for each of the plurality of medicines are stored in correspondence with each other;
When the activation confirmation message is transmitted to the electronic terminal, the first use-by date for the first medicinal product is checked by referring to the expiration date information database, and then the current time point at which the activation confirmation message is transmitted to the electronic terminal. a remaining period check unit for checking a remaining period from the period up to the first expiration date; and
When the remaining period is confirmed, a remaining period guide message transmission unit generating a remaining period guide message for guiding information on the remaining period and transmitting the remaining period guide message to the electronic terminal.
A drug activation confirmation server further comprising a.
제3항에 있어서,
상기 정품인증 확인 메시지가 상기 전자 단말로 전송되면, 상기 전자 단말로부터 상기 전자 단말의 현재 위치 정보를 수신하고, 상기 정품인증 확인 메시지가 상기 전자 단말로 전송된 현재 시점에 대한 시간 정보를 생성한 후, 상기 현재 위치 정보, 상기 시간 정보, 상기 제1 주 식별번호 및 상기 제1 보조 식별번호로 구성된 확인 이력 정보를 생성하는 확인 이력 정보 생성부; 및
상기 확인 이력 정보가 생성되면, 상기 확인 이력 정보가 포함된 트랜잭션을 생성한 후, 블록체인 네트워크를 구성하고 있는 복수의 노드 장치들 중 어느 하나인 제1 노드 장치를 랜덤하게 선택하여, 상기 제1 노드 장치로, 상기 트랜잭션을 전송하면서, 상기 트랜잭션의 상기 블록체인 네트워크로의 등록 요청을 전송하는 등록 요청부
를 더 포함하고,
상기 제1 노드 장치는
상기 의약품 정품인증 확인 서버로부터 상기 트랜잭션과 상기 등록 요청이 수신되면, 상기 제1 노드 장치의 메모리 상에 저장되어 있는 블록체인 데이터에 체인으로 연결된 이전 블록을 기초로, 상기 트랜잭션이 포함된 제1 블록을 생성하고, 상기 제1 블록을 상기 블록체인 데이터에 체인으로 연결함으로써, 상기 제1 블록에 대한 저장을 완료한 후, 상기 블록체인 네트워크를 통해 상기 제1 블록을, 상기 복수의 노드 장치들 중 상기 제1 노드 장치를 제외한 나머지 노드 장치들로 전파하는 것을 특징으로 하는 의약품 정품인증 확인 서버.
According to claim 3,
When the activation confirmation message is transmitted to the electronic terminal, current location information of the electronic terminal is received from the electronic terminal, and time information for a current point in time at which the activation confirmation message is transmitted to the electronic terminal is generated. , a confirmation history information generation unit for generating confirmation history information composed of the current location information, the time information, the first primary identification number and the first auxiliary identification number; and
When the confirmation history information is generated, after generating a transaction including the confirmation history information, a first node device that is any one of a plurality of node devices constituting a blockchain network is randomly selected, and the first node device is selected. A registration request unit for transmitting a registration request to the blockchain network of the transaction while transmitting the transaction to a node device.
Including more,
The first node device is
When the transaction and the registration request are received from the drug activation confirmation server, the first block including the transaction is based on the previous block chained to the blockchain data stored on the memory of the first node device. After completing the storage of the first block by generating and linking the first block to the blockchain data in a chain, the first block is selected from among the plurality of node devices through the blockchain network. Drug activation confirmation server, characterized in that for propagating to the remaining node devices other than the first node device.
2차원 코드를 기반으로 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 의약품 정품인증 확인 서버의 동작 방법에 있어서,
정품인증을 받은 의약품인 것으로 사전 지정된 복수의 의약품들 - 상기 복수의 의약품들 각각에는, 각 의약품을 식별하기 위한 n(n은 2 이상의 자연수임) 자릿수의 주 식별번호와 k(k는 2 이상의 자연수임) 자릿수의 보조 식별번호가 사전 할당되어 있음과 동시에, 각 의약품에 대한 주 식별번호와 보조 식별번호가 사전 설정된 토큰 생성 함수에 입력으로 인가되어 산출된 출력 값인 식별 토큰이 사전 할당되어 있고, 상기 복수의 의약품들 각각의 포장지에는, 각 의약품에 대한 주 식별번호 및 식별 토큰에 대한 정보가 삽입되어 있는 2차원 코드가 사전 인쇄되어 있음 - 각각에 대한 보조 식별번호와 상기 복수의 의약품들 각각에 대한 식별 토큰이 서로 대응되어 저장되어 있는 의약품 정보 데이터베이스를 유지하는 단계;
상기 복수의 의약품들 중 어느 하나인 제1 의약품을 구매한 사용자의 전자 단말로부터, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인 요청이 수신되면, 상기 전자 단말로, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드에 삽입되어 있는 상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송을 요청하는 단계;
상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 제1 주 식별번호와 제1 식별 토큰이 수신되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 제1 식별 토큰을 기초로, 상기 의약품 정보 데이터베이스를 참조하여, 상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 단계; 및
상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하는 단계
를 포함하고,
상기 토큰 생성 함수는
상기 복수의 의약품들 중 어느 하나의 의약품에 사전 할당된 n 자릿수의 주 식별번호와 k 자릿수의 보조 식별번호가 입력으로 인가되면, 입력으로 인가된 n 자릿수의 주 식별번호를 구성하는 n개의 숫자들을 성분으로 갖는 행벡터와, 입력으로 인가된 k 자릿수의 보조 식별번호를 구성하는 k개의 숫자들을 성분으로 갖는 행벡터 간의 크로네커 곱(Kronecker Product)을 연산하여 1 x nk 크기의 연산 행렬을 생성하고, 상기 연산 행렬을 구성하는 nk개의 성분들로 구성되는 데이터열을 생성한 후, 상기 데이터열을 사전 설정된 해시 함수에 입력으로 인가하여 산출된 해시 값을, 상기 어느 하나의 의약품에 대한 식별 토큰으로 산출하는 함수인 것을 특징으로 하는 의약품 정품인증 확인 서버의 동작 방법.
A method of operating a drug activation confirmation server that checks whether a drug is a drug that has been activated based on a two-dimensional code,
A plurality of medicines pre-designated as being certified medicines - In each of the plurality of medicines, a main identification number of n (n is a natural number of 2 or more) digits to identify each medicine and k (k is a natural number of 2 or more) At the same time, an auxiliary identification number of digits is pre-allocated, and an identification token, which is an output value calculated by applying the main identification number and auxiliary identification number for each drug as inputs to a preset token generation function, is pre-allocated, On the packaging of each of the plurality of medicines, a two-dimensional code in which information on the main identification number and identification token for each medicine is inserted is pre-printed - a secondary identification number for each medicine and information on each of the plurality of medicines. maintaining a drug information database in which identification tokens are stored in correspondence with each other;
When a request for confirmation as to whether the first medicine is a certified medicine is received from the electronic terminal of the user who has purchased the first medicine, which is one of the plurality of medicines, to the electronic terminal, the first medicine requesting transmission of a main identification number and an identification token for the first medicine inserted in the two-dimensional code printed on the wrapping paper of the medicine;
In response to a request for transmission of the main identification number and identification token for the first medicine, as the two-dimensional code printed on the wrapping paper of the first medicine is scanned and recognized in the electronic terminal, from the electronic terminal, the first medicine When the first main identification number and the first identification token extracted from the two-dimensional code printed on the packaging of one medicine are received, based on the first main identification number and the first identification token received from the electronic terminal, referring to a drug information database, confirming whether the first drug is a drug for which activation has been obtained; and
If it is confirmed that the first drug is a drug that has undergone activation, generating a activation confirmation message indicating that the first drug is a drug that has undergone activation, and transmitting the message to the electronic terminal.
including,
The token generation function is
When an n-digit main identification number and a k-digit auxiliary identification number pre-assigned to any one of the plurality of medicines are applied as inputs, n numbers constituting the n-digit main identification number applied as inputs An operation matrix having a size of 1 x nk is generated by calculating a Kronecker product between a row vector having as components and a row vector having k numbers constituting the auxiliary identification number of k digits applied as input as components, After generating a data string composed of nk elements constituting the operation matrix, applying the data string as an input to a preset hash function to calculate the calculated hash value as an identification token for any one of the medicines A method of operating a drug activation confirmation server, characterized in that it is a function.
삭제delete 제7항에 있어서,
상기 제1 의약품이 정품인증을 받은 의약품인지 여부에 대한 확인을 수행하는 단계는
상기 제1 의약품에 대한 주 식별번호 및 식별 토큰의 전송 요청에 대응하여, 상기 전자 단말에서, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드가 스캔되어 인식됨에 따라, 상기 전자 단말로부터, 상기 제1 의약품의 포장지에 인쇄된 2차원 코드로부터 추출된 상기 제1 주 식별번호와 상기 제1 식별 토큰이 수신되면, 상기 의약품 정보 데이터베이스로부터, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호를 추출하는 단계;
상기 의약품 정보 데이터베이스로부터, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 동일한 식별 토큰에 대응되어 저장되어 있는 보조 식별번호로, 제1 보조 식별번호가 추출되면, 상기 전자 단말로부터 수신된 상기 제1 주 식별번호와 상기 의약품 정보 데이터베이스로부터 추출된 상기 제1 보조 식별번호를 상기 토큰 생성 함수에 입력으로 인가하였을 때 산출되는 연산 결과가, 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 일치하는지 여부를 확인하는 단계; 및
상기 연산 결과가 상기 전자 단말로부터 수신된 상기 제1 식별 토큰과 일치하는 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인하는 단계
를 포함하는 의약품 정품인증 확인 서버의 동작 방법.
According to claim 7,
The step of confirming whether the first drug is a drug that has received activation is
In response to a request for transmission of the main identification number and identification token for the first medicine, as the two-dimensional code printed on the wrapping paper of the first medicine is scanned and recognized in the electronic terminal, from the electronic terminal, the first medicine When the first main identification number and the first identification token extracted from the two-dimensional code printed on the packaging of one medicine are received, from the medicine information database, the same identification token as the first identification token received from the electronic terminal Extracting an auxiliary identification number stored in correspondence with;
When a first auxiliary identification number is extracted from the drug information database as an auxiliary identification number stored in correspondence with the same identification token as the first identification token received from the electronic terminal, the first auxiliary identification number received from the electronic terminal is extracted. Whether an operation result calculated when the main identification number and the first auxiliary identification number extracted from the drug information database are applied as inputs to the token generation function matches the first identification token received from the electronic terminal checking; and
If it is confirmed that the calculation result matches the first identification token received from the electronic terminal, confirming that the first medicine is a medicine for which activation has been obtained.
Method of operating a drug activation confirmation server comprising a.
제7항에 있어서,
상기 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하는 단계는
상기 제1 의약품이 정품인증을 받은 의약품인 것으로 확인되면, 상기 제1 의약품이 정품인증을 받은 의약품임을 지시하는 정품인증 확인 메시지를 생성하여 상기 전자 단말로 전송하되, 상기 정품인증 확인 메시지를 사전 구축된 음성 합성 모델에 입력으로 인가하여 음성 합성을 수행함으로써, 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 생성한 후, 상기 전자 단말로 상기 정품인증 확인 메시지에 대한 합성 음성 데이터를 추가 전송하는 것을 특징으로 하는 의약품 정품인증 확인 서버의 동작 방법.
According to claim 7,
Generating the activation confirmation message and transmitting it to the electronic terminal
If it is confirmed that the first drug is a drug that has received activation, a activation confirmation message indicating that the first drug is a drug that has undergone activation is generated and transmitted to the electronic terminal, and the activation confirmation message is pre-established. After generating synthesized voice data for the activation confirmation message by applying the synthesized voice model as an input and performing voice synthesis, synthesized voice data for the activation confirmation message is additionally transmitted to the electronic terminal. Operation method of a drug activation confirmation server.
제7항에 있어서,
상기 복수의 의약품들 각각에 대한 보조 식별번호와, 상기 복수의 의약품들 각각에 대한 사전 설정된 사용기한에 대한 정보가 서로 대응되어 저장되어 있는 사용기한 정보 데이터베이스를 유지하는 단계;
상기 정품인증 확인 메시지가 상기 전자 단말로 전송되면, 상기 사용기한 정보 데이터베이스를 참조하여, 상기 제1 의약품에 대한 제1 사용기한을 확인한 후, 상기 정품인증 확인 메시지가 상기 전자 단말로 전송된 현재 시점으로부터 상기 제1 사용기한까지의 잔여기간을 확인하는 단계; 및
상기 잔여기간이 확인되면, 상기 잔여기간에 대한 정보를 안내하는 잔여기간 안내 메시지를 생성하여 상기 전자 단말로 전송하는 단계
를 더 포함하는 의약품 정품인증 확인 서버의 동작 방법.
According to claim 7,
maintaining an expiration date information database in which auxiliary identification numbers for each of the plurality of medicines and information on a preset expiration date for each of the plurality of medicines are stored in correspondence with each other;
When the activation confirmation message is transmitted to the electronic terminal, the first use-by date for the first medicinal product is checked by referring to the expiration date information database, and then the current time point at which the activation confirmation message is transmitted to the electronic terminal. checking the remaining period from the first use-by date to the first use-by date; and
If the remaining period is confirmed, generating a remaining period guide message for guiding information on the remaining period and transmitting the information to the electronic terminal.
A method of operating a drug activation confirmation server further comprising a.
제9항에 있어서,
상기 정품인증 확인 메시지가 상기 전자 단말로 전송되면, 상기 전자 단말로부터 상기 전자 단말의 현재 위치 정보를 수신하고, 상기 정품인증 확인 메시지가 상기 전자 단말로 전송된 현재 시점에 대한 시간 정보를 생성한 후, 상기 현재 위치 정보, 상기 시간 정보, 상기 제1 주 식별번호 및 상기 제1 보조 식별번호로 구성된 확인 이력 정보를 생성하는 단계; 및
상기 확인 이력 정보가 생성되면, 상기 확인 이력 정보가 포함된 트랜잭션을 생성한 후, 블록체인 네트워크를 구성하고 있는 복수의 노드 장치들 중 어느 하나인 제1 노드 장치를 랜덤하게 선택하여, 상기 제1 노드 장치로, 상기 트랜잭션을 전송하면서, 상기 트랜잭션의 상기 블록체인 네트워크로의 등록 요청을 전송하는 단계
를 더 포함하고,
상기 제1 노드 장치는
상기 의약품 정품인증 확인 서버로부터 상기 트랜잭션과 상기 등록 요청이 수신되면, 상기 제1 노드 장치의 메모리 상에 저장되어 있는 블록체인 데이터에 체인으로 연결된 이전 블록을 기초로, 상기 트랜잭션이 포함된 제1 블록을 생성하고, 상기 제1 블록을 상기 블록체인 데이터에 체인으로 연결함으로써, 상기 제1 블록에 대한 저장을 완료한 후, 상기 블록체인 네트워크를 통해 상기 제1 블록을, 상기 복수의 노드 장치들 중 상기 제1 노드 장치를 제외한 나머지 노드 장치들로 전파하는 것을 특징으로 하는 의약품 정품인증 확인 서버의 동작 방법.
According to claim 9,
When the activation confirmation message is transmitted to the electronic terminal, current location information of the electronic terminal is received from the electronic terminal, and time information for a current point in time at which the activation confirmation message is transmitted to the electronic terminal is generated. , generating confirmation history information consisting of the current location information, the time information, the first primary identification number, and the first auxiliary identification number; and
When the confirmation history information is generated, after generating a transaction including the confirmation history information, a first node device that is any one of a plurality of node devices constituting a blockchain network is randomly selected, and the first node device is selected. Transmitting, with a node device, a request for registration of the transaction to the blockchain network while transmitting the transaction.
Including more,
The first node device is
When the transaction and the registration request are received from the drug activation confirmation server, the first block including the transaction is based on the previous block chained to the blockchain data stored on the memory of the first node device. After completing the storage of the first block by generating and linking the first block to the blockchain data in a chain, the first block is selected from among the plurality of node devices through the blockchain network. A method of operating a drug activation confirmation server, characterized in that the propagation to the remaining node devices except for the first node device.
제7항, 제9항, 제10항, 제11항 또는 제12항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램을 기록한 컴퓨터 판독 가능 기록 매체.Claim 7, claim 9, claim 10, claim 11 or claim 12 of any one of the method through a combination with a computer to execute a computer program recorded on a computer-readable recording medium. 제7항, 제9항, 제10항, 제11항 또는 제12항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램.A computer program stored in a storage medium for executing the method of any one of claims 7, 9, 10, 11 or 12 through a combination with a computer.
KR1020210103863A 2021-03-25 2021-08-06 Genuine medicines certification verification server which performs verification of genuine certificated medicines based on two-dimensional codes, and the operating method thereof KR102565114B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020210038996 2021-03-25
KR20210038996 2021-03-25

Publications (2)

Publication Number Publication Date
KR20220133734A KR20220133734A (en) 2022-10-05
KR102565114B1 true KR102565114B1 (en) 2023-08-09

Family

ID=83597010

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210103863A KR102565114B1 (en) 2021-03-25 2021-08-06 Genuine medicines certification verification server which performs verification of genuine certificated medicines based on two-dimensional codes, and the operating method thereof

Country Status (1)

Country Link
KR (1) KR102565114B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016194758A (en) * 2015-03-31 2016-11-17 大日本印刷株式会社 Medicine authentication system, medicine authentication method and program
KR102116325B1 (en) * 2019-06-07 2020-05-28 허지미 Certification system for honest goods and transaction based on blockchain
KR102155855B1 (en) * 2020-02-24 2020-09-15 홍주표 Apparatus for discriminating counterfeit and method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120058650A (en) * 2010-08-30 2012-06-08 주식회사 어가람닷컴 Management system and method of general medicine through management code
KR102319744B1 (en) * 2018-12-06 2021-11-01 애니팬 주식회사 Anti-forgery system using QR code and blockchain network and method thereof
KR20200092194A (en) * 2019-01-24 2020-08-03 주식회사 하나은행 System and method for preventing forgery and illegal replacement of goods using blockchain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016194758A (en) * 2015-03-31 2016-11-17 大日本印刷株式会社 Medicine authentication system, medicine authentication method and program
KR102116325B1 (en) * 2019-06-07 2020-05-28 허지미 Certification system for honest goods and transaction based on blockchain
KR102155855B1 (en) * 2020-02-24 2020-09-15 홍주표 Apparatus for discriminating counterfeit and method thereof

Also Published As

Publication number Publication date
KR20220133734A (en) 2022-10-05

Similar Documents

Publication Publication Date Title
KR102479477B1 (en) Blockchain-based metaverse service operation server to operate the metaverse service that can provide the item matching the real product in the metaverse environment through interlocking with the two-dimensional code printed in the real product and the operating method thereof
KR102565114B1 (en) Genuine medicines certification verification server which performs verification of genuine certificated medicines based on two-dimensional codes, and the operating method thereof
KR102363064B1 (en) Precious metal goods genuine product certification server to perform genuine product certification for the precious metal goods based on a two-dimensional code and operating method thereof
KR102361231B1 (en) Mask genuine product certification server to perform genuine product certification for the mask based on a two-dimensional code and operating method thereof
KR102535682B1 (en) Web site confirmation server that performs confirmation of whether a web site is a normal web site based on the two-dimensional code and operating method thereof
KR102574299B1 (en) Certificate verification server that performs the verification of the authenticity for the certificate based on a two-dimensional code and operating method thereof
KR102574296B1 (en) Electronic contract processing server that processes electronic contracts between parties by utilizing the two-dimensional code and operating method thereof
KR102622454B1 (en) Agricultural products eco-friendly certification verification server verifying eco-friendly certificated agricultural products, based on two-dimensional code, and the operating method thereof
KR102559485B1 (en) Content certification verification server which performs verification of content which has been certified for copyright based on the two-dimensional code and the operating method thereof
KR102602213B1 (en) Electronic terminal apparatus that performs genuine product certification and additional information offer for the product based on two-dimensional code recognition and biometric information authentication and operating method thereof
KR102650176B1 (en) Card management server that supports to make it possible to process payment using a plastic card for payment on which a two-dimensional code is printed and operating method thereof
KR102545003B1 (en) Missing child prevention service providing server capable of providing missing child prevention service based on the two-dimensional code printed on baby accessories and operating method thereof
KR20220133736A (en) Regionally specialized product confirmation server that performs confirmation of whether a regionally specialized product is the regionally specialized product that has been genuinely authenticated based on the two-dimensional code, and operating method thereof
KR102508523B1 (en) Metaverse service server to operate the metaverse service that can provide the item matching the real product in the metaverse environment based on the two-dimensional code and the operating method thereof
KR20220125142A (en) Document providing server that can provide the electronic document for an official document that the two-dimensional code to prove that it is an official document issued by a public institution is inserted and operating method thereof
KR102302945B1 (en) Gold wealth management server that enables gold bar purchase by interlocking with a gold bar vending machine where multiple gold bars are stored based on gold and digital gold tokens, and operating method thereof
KR102604768B1 (en) Digital door lock unlock service server that supports to be able to perform unlock of the digital door lock based on the two-dimensional code issued to the digital door lock and operating method thereof
KR20230049872A (en) Assignments evaluation service server that supports to be able to conduct evaluation about students' result of assignments and operating method thereof
KR102602202B1 (en) Electronic terminal apparatus that can perform genuine product certification for the product based on augmented reality through the recognition of a two-dimensional code printed on the product and operating method thereof
KR20220125147A (en) Electronic product information providing server that can provide electronic product information to user based on the two-dimensional code printed on the electronic product and operating method thereof
KR20220125145A (en) Copy protection server that enables copy protection for paper documents that require copy protection through interworking with copy machine and operating method thereof
KR20220125144A (en) Leakage prevention service server which is able to provide service to prevent the leakage of printouts, and the operating method thereof
KR102389289B1 (en) Gold sales server for supporting purchase of gold with cashable points, and the operating method thereof
KR20220133750A (en) Image providing server for seal engraving that can provide the image for seal engraving that the two-dimensional code to verify the authenticity of the seal is included and operating method thereof
KR102352488B1 (en) Blockchain-based data management server that enables the storage and management of data through interlocking with the two-dimensional code inserted in the business card and operating method thereof

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right