[{"data":1,"prerenderedAt":417},["ShallowReactive",2],{"ofd-doc:\u002Fen\u002Fintegration\u002Fdata":3},{"id":4,"title":5,"body":6,"description":402,"extension":403,"keywords":404,"locale":409,"meta":410,"navigation":411,"order":132,"path":412,"section":413,"seo":414,"stem":415,"__hash__":416},"docs\u002Fintegration\u002Fdata.en.md","One fill-data contract",{"type":7,"value":8,"toc":396},"minimark",[9,14,23,27,38,97,101,120,340,354,358,379,392],[10,11,13],"h2",{"id":12},"select-the-target-template-first","Select the target template first",[15,16,17,18,22],"p",{},"Open 文件 → 导入 → 填写数据 for the current document. An integration selects a template revision and calls ",[19,20,21],"code",{},"GET \u002Fofd\u002Ftemplates\u002F{id}\u002Ffields"," for its scalar fields, detail groups and column keys. Display labels can change by organization. Use the stable keys for writing. If a template has no form controls, add and bind them in the editor first.",[10,24,26],{"id":25},"an-ordinary-office-form","An ordinary office form",[15,28,29,30,33,34,37],{},"For an incoming-mail register, bind the reference number and subject controls to ",[19,31,32],{},"incomingNumber"," and ",[19,35,36],{},"subject",". Two spreadsheet columns or two properties from an office system can produce the same request.",[39,40,45],"pre",{"className":41,"code":42,"language":43,"meta":44,"style":44},"language-json shiki shiki-themes github-light github-light github-dark","{ \"version\": 3, \"values\": { \"incomingNumber\": \"OA-0024\", \"subject\": \"Quarterly meeting\" } }\n","json","",[19,46,47],{"__ignoreMap":44},[48,49,52,56,60,63,66,69,72,75,78,80,84,86,89,91,94],"span",{"class":50,"line":51},"line",1,[48,53,55],{"class":54},"sVPnS","{ ",[48,57,59],{"class":58},"sUNQB","\"version\"",[48,61,62],{"class":54},": ",[48,64,65],{"class":58},"3",[48,67,68],{"class":54},", ",[48,70,71],{"class":58},"\"values\"",[48,73,74],{"class":54},": { ",[48,76,77],{"class":58},"\"incomingNumber\"",[48,79,62],{"class":54},[48,81,83],{"class":82},"s-HEn","\"OA-0024\"",[48,85,68],{"class":54},[48,87,88],{"class":58},"\"subject\"",[48,90,62],{"class":54},[48,92,93],{"class":82},"\"Quarterly meeting\"",[48,95,96],{"class":54}," } }\n",[10,98,100],{"id":99},"a-record-with-detail-rows","A record with detail rows",[15,102,103,104,107,108,111,112,115,116,119],{},"This synthetic lab record matches the downloads below. ",[19,105,106],{},"values"," holds document-wide values. ",[19,109,110],{},"repeats"," contains ordered detail rows. ",[19,113,114],{},"rowKeys"," identifies an existing row on subsequent imports. Medical records use ",[19,117,118],{},"context"," for patient and encounter identity. Ordinary business forms can omit medical context.",[39,121,123],{"className":41,"code":122,"language":43,"meta":44,"style":44},"{\n  \"version\": 3,\n  \"context\": { \"patientId\": \"SYN-P001\", \"encounterId\": \"0007\" },\n  \"values\": { \"patientNames\": \"合成甲\", \"reportNumber\": \"SYN-L01\" },\n  \"rowKeys\": { \"labItems\": \"sourceResultId\" },\n  \"repeats\": {\n    \"labItems\": [\n      { \"sourceResultId\": \"R001\", \"itemCode\": \"LAB-A\", \"numericResult\": \"0\", \"resultUnit\": \"mmol\u002FL\" },\n      { \"sourceResultId\": \"R002\", \"itemCode\": \"LAB-B\", \"numericResult\": \"3\", \"resultUnit\": \"mmol\u002FL\" }\n    ]\n  }\n}\n",[19,124,125,130,143,172,200,218,227,236,281,322,328,334],{"__ignoreMap":44},[48,126,127],{"class":50,"line":51},[48,128,129],{"class":54},"{\n",[48,131,133,136,138,140],{"class":50,"line":132},2,[48,134,135],{"class":58},"  \"version\"",[48,137,62],{"class":54},[48,139,65],{"class":58},[48,141,142],{"class":54},",\n",[48,144,146,149,151,154,156,159,161,164,166,169],{"class":50,"line":145},3,[48,147,148],{"class":58},"  \"context\"",[48,150,74],{"class":54},[48,152,153],{"class":58},"\"patientId\"",[48,155,62],{"class":54},[48,157,158],{"class":82},"\"SYN-P001\"",[48,160,68],{"class":54},[48,162,163],{"class":58},"\"encounterId\"",[48,165,62],{"class":54},[48,167,168],{"class":82},"\"0007\"",[48,170,171],{"class":54}," },\n",[48,173,175,178,180,183,185,188,190,193,195,198],{"class":50,"line":174},4,[48,176,177],{"class":58},"  \"values\"",[48,179,74],{"class":54},[48,181,182],{"class":58},"\"patientNames\"",[48,184,62],{"class":54},[48,186,187],{"class":82},"\"合成甲\"",[48,189,68],{"class":54},[48,191,192],{"class":58},"\"reportNumber\"",[48,194,62],{"class":54},[48,196,197],{"class":82},"\"SYN-L01\"",[48,199,171],{"class":54},[48,201,203,206,208,211,213,216],{"class":50,"line":202},5,[48,204,205],{"class":58},"  \"rowKeys\"",[48,207,74],{"class":54},[48,209,210],{"class":58},"\"labItems\"",[48,212,62],{"class":54},[48,214,215],{"class":82},"\"sourceResultId\"",[48,217,171],{"class":54},[48,219,221,224],{"class":50,"line":220},6,[48,222,223],{"class":58},"  \"repeats\"",[48,225,226],{"class":54},": {\n",[48,228,230,233],{"class":50,"line":229},7,[48,231,232],{"class":58},"    \"labItems\"",[48,234,235],{"class":54},": [\n",[48,237,239,242,244,246,249,251,254,256,259,261,264,266,269,271,274,276,279],{"class":50,"line":238},8,[48,240,241],{"class":54},"      { ",[48,243,215],{"class":58},[48,245,62],{"class":54},[48,247,248],{"class":82},"\"R001\"",[48,250,68],{"class":54},[48,252,253],{"class":58},"\"itemCode\"",[48,255,62],{"class":54},[48,257,258],{"class":82},"\"LAB-A\"",[48,260,68],{"class":54},[48,262,263],{"class":58},"\"numericResult\"",[48,265,62],{"class":54},[48,267,268],{"class":82},"\"0\"",[48,270,68],{"class":54},[48,272,273],{"class":58},"\"resultUnit\"",[48,275,62],{"class":54},[48,277,278],{"class":82},"\"mmol\u002FL\"",[48,280,171],{"class":54},[48,282,284,286,288,290,293,295,297,299,302,304,306,308,311,313,315,317,319],{"class":50,"line":283},9,[48,285,241],{"class":54},[48,287,215],{"class":58},[48,289,62],{"class":54},[48,291,292],{"class":82},"\"R002\"",[48,294,68],{"class":54},[48,296,253],{"class":58},[48,298,62],{"class":54},[48,300,301],{"class":82},"\"LAB-B\"",[48,303,68],{"class":54},[48,305,263],{"class":58},[48,307,62],{"class":54},[48,309,310],{"class":82},"\"3\"",[48,312,68],{"class":54},[48,314,273],{"class":58},[48,316,62],{"class":54},[48,318,278],{"class":82},[48,320,321],{"class":54}," }\n",[48,323,325],{"class":50,"line":324},10,[48,326,327],{"class":54},"    ]\n",[48,329,331],{"class":50,"line":330},11,[48,332,333],{"class":54},"  }\n",[48,335,337],{"class":50,"line":336},12,[48,338,339],{"class":54},"}\n",[15,341,342,348,349],{},[343,344,347],"a",{"href":345,"download":346},"\u002Fdownloads\u002Flaboratory-sample.xlsx","laboratory-sample.xlsx","Download the synthetic workbook"," · ",[343,350,353],{"href":351,"download":352},"\u002Fdownloads\u002Flaboratory-record.json","laboratory-record.json","Download the matching JSON",[10,355,357],{"id":356},"two-sources-one-workflow","Two sources, one workflow",[359,360,361,369],"ul",{},[362,363,364,368],"li",{},[365,366,367],"strong",{},"Excel","　Open the matching blank laboratory template. Select the worksheet, header row, patient and encounter columns. Map results to a detail group, select one record and review the proposed changes. Export the resulting JSON to test the same data through an API.",[362,370,371,374,375,378],{},[365,372,373],{},"Business system","　Build v3 JSON from the same field keys. Submit it to the template's ",[19,376,377],{},"preflight"," endpoint, then create a draft against the same revision. To update an existing draft, use its own preflight and fill endpoints with the draft revision.",[15,380,381,382,384,385,387,388],{},"Keep identifiers such as ",[19,383,168],{}," as strings and retain zero-valued results such as ",[19,386,268],{},". Review unmapped fields, row identities and conflicts before applying a change. ",[343,389,391],{"href":390},"\u002Fen\u002Fintegration\u002Fhttp","HTTP and revision handling",[393,394,395],"style",{},"html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":44,"searchDepth":132,"depth":132,"links":397},[398,399,400,401],{"id":12,"depth":132,"text":13},{"id":25,"depth":132,"text":26},{"id":99,"depth":132,"text":100},{"id":356,"depth":132,"text":357},"Use the same versioned JSON to fill scalar fields and detail rows from a spreadsheet or a business system.","md",[367,405,406,407,408,114],"HIS","JSON","version 3","字段","en",{},true,"\u002Fen\u002Fintegration\u002Fdata","Integration",{"title":5,"description":402},"integration\u002Fdata.en","R-WaVLNC8hPueqGcM_-v3iqHOKIEj_lz2xkFWsYsuPM",1795456058633]